Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4046948rwl; Tue, 28 Mar 2023 01:37:32 -0700 (PDT) X-Google-Smtp-Source: AK7set/NPRzZzBcRwDM/e/AS0Qz5W2KZiVuD/+c1LP6hviMAH1XQFSSS2TYtKKapta4CPJLjNRoV X-Received: by 2002:a05:6a20:3b04:b0:da:e7a5:3bee with SMTP id c4-20020a056a203b0400b000dae7a53beemr12934019pzh.39.1679992652302; Tue, 28 Mar 2023 01:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679992652; cv=none; d=google.com; s=arc-20160816; b=YPa2ayzpRzr6BRpWNXQcn345yMMdPDEI0kTcOBygmoEa2Ajkp9XrDqP3a+T+AmAQbU clQ22IZ7ypm2YeYYcXMcBYGZDPgW1Z+1oguCypMBouvWHFsTE+1E31BEuadeiO0ilAz5 MtEtpGUuHPdkRhKS6U1qZS7ses06Dz5xv/EEwmbEqvOvGoXU7ee9/tFWyRY3hPGTN2S1 Ro95vmOKo2gn0ga66uGTcGf1oOEZuzxFdawqBAp/lcJv3tZgM05LAw/clAIUCJqCQZFQ yBR9KMa5IDVc1fIXn/0B9wqS7hRXP4a6ierpR3PAAx/eDT4ZYa+C+sVBETD8Zy5GIB3R gkIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=/E9RThjQnYRZlTnSoG675hq3QmrBCr0LO6QzwA39mWg=; b=Nm+jSZBctHhQlX53HBZjnvOnmMA/vPX6Yq0KaaFQABt7ZXtSjCrzMfFWZtWO+BcXR9 YDEJVv8PY11xwZ7n9Y0jtqdCroXBpeBHSIzribkALUbJf/GB0Ukhc2eg7jxaYNXuvoIB INuHkSA6hjXg8oeZMqRAd2xAvmohZhlVjYPQCdGsZIbGroSGbIn89AiSl51HRC+aNyJY FPjqz1CNhMFpIlTEsZCXzp09GbHhRj6KK+LhfNFAsnYe/Sa7aX6hmQwpikMvlZpw36xd kNQot0Jb/d0vfqdeR9xsBaA1Shnhzdey2HmtDHNtXmUPueS7obLaI1qMBLXG7TqmrFur JFvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IUJuqqhl; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a056a00239300b005e06c0a9852si30435739pfc.179.2023.03.28.01.37.20; Tue, 28 Mar 2023 01:37:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IUJuqqhl; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbjC1IfO (ORCPT + 99 others); Tue, 28 Mar 2023 04:35:14 -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: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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/56eb0598c7a30c76009a082d3213486d6a013df0 Author: Valentin Schneider AuthorDate: Tue, 07 Mar 2023 14:35:52 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 callback. 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=%s (%s)", __get_bitmask(target_cpus), __entry->reason) ); +TRACE_EVENT(ipi_send_cpumask, + + TP_PROTO(const struct cpumask *cpumask, unsigned long callsite, void *callback), + + 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 = (void *)callsite; + __entry->callback = callback; + ), + + TP_printk("cpumask=%s callsite=%pS callback=%pS", + __get_cpumask(cpumask), __entry->callsite, __entry->callback) +); + DECLARE_EVENT_CLASS(ipi_handler, TP_PROTO(const char *reason),