From nobody Mon May 6 12:39:15 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD458C76196 for ; Tue, 28 Mar 2023 08:35:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbjC1IfP (ORCPT ); Tue, 28 Mar 2023 04:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232336AbjC1Iew (ORCPT ); Tue, 28 Mar 2023 04:34:52 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A327744A2; Tue, 28 Mar 2023 01:34:50 -0700 (PDT) Date: Tue, 28 Mar 2023 08:34:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679992486; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/E9RThjQnYRZlTnSoG675hq3QmrBCr0LO6QzwA39mWg=; b=IUJuqqhlnP3tEQ+/KGWC8zQkSICUNHskF09If4hIVrnw6mxmbYa+eGuLsxnp37mc1vgU2/ 67bbnTZTHUWxoV0xI691b8b2/DO/qvdnQ7X0Aht2VUP7U20lMEjuFMQqCFFZKjEbC1B9Dg sjJKSOuSx0Xq34sRcivwQnGGZ9x6E1ZzfMtz7DOsnC3+cGccPWz4mLLE8IcuBBrngJHxbd ujyvucYTUj86nh7FQZWytv5o2Gp4IKV2Re1FoePDk++etqLd6f+oAjbsmfQAYIMxKRjja0 2PVINdDzA7bvbugUj2bBvMjis2SVb/gpbRmIqdHFBcs9AYoVgy1RgRxJbd6Zrw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679992486; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/E9RThjQnYRZlTnSoG675hq3QmrBCr0LO6QzwA39mWg=; b=HoxXlVL+D1rOoWtwlkrB+Fc0U4sdnW3ykp9ld0xuA5OcASd8P8FofIRlMzE69vKJi6LRFM COV67Vm/WEFv2FDQ== From: "tip-bot2 for Valentin Schneider" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] trace: Add trace_ipi_send_cpumask() Cc: Valentin Schneider , "Peter Zijlstra (Intel)" , "Steven Rostedt (Google)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230307143558.294354-2-vschneid@redhat.com> References: <20230307143558.294354-2-vschneid@redhat.com> MIME-Version: 1.0 Message-ID: <167999248655.5837.17253281331535612099.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the smp/core branch of tip: Commit-ID: 56eb0598c7a30c76009a082d3213486d6a013df0 Gitweb: https://git.kernel.org/tip/56eb0598c7a30c76009a082d3213486d6= a013df0 Author: Valentin Schneider AuthorDate: Tue, 07 Mar 2023 14:35:52=20 Committer: Peter Zijlstra CommitterDate: Fri, 24 Mar 2023 11:01:26 +01:00 trace: Add trace_ipi_send_cpumask() trace_ipi_raise() is unsuitable for generically tracing IPI sources due to its "reason" argument being an uninformative string (on arm64 all you get is "Function call interrupts" for SMP calls). Add a variant of it that exports a target cpumask, a callsite and a callbac= k. Signed-off-by: Valentin Schneider Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (Google) Link: https://lore.kernel.org/r/20230307143558.294354-2-vschneid@redhat.com --- include/trace/events/ipi.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/trace/events/ipi.h b/include/trace/events/ipi.h index 0be71da..b1125dc 100644 --- a/include/trace/events/ipi.h +++ b/include/trace/events/ipi.h @@ -35,6 +35,28 @@ TRACE_EVENT(ipi_raise, TP_printk("target_mask=3D%s (%s)", __get_bitmask(target_cpus), __entry->r= eason) ); =20 +TRACE_EVENT(ipi_send_cpumask, + + TP_PROTO(const struct cpumask *cpumask, unsigned long callsite, void *cal= lback), + + TP_ARGS(cpumask, callsite, callback), + + TP_STRUCT__entry( + __cpumask(cpumask) + __field(void *, callsite) + __field(void *, callback) + ), + + TP_fast_assign( + __assign_cpumask(cpumask, cpumask_bits(cpumask)); + __entry->callsite =3D (void *)callsite; + __entry->callback =3D callback; + ), + + TP_printk("cpumask=3D%s callsite=3D%pS callback=3D%pS", + __get_cpumask(cpumask), __entry->callsite, __entry->callback) +); + DECLARE_EVENT_CLASS(ipi_handler, =20 TP_PROTO(const char *reason),