From patchwork Tue Mar 28 08:34:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 75899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2059397vqo; Tue, 28 Mar 2023 01:37:11 -0700 (PDT) X-Google-Smtp-Source: AKy350b3Nz7Ftd7N4VTV/pExTyyUlTsRev6lE/Jvt0biHhgIw8KhhoZAEEWDL3zquqr9Kw+6myo5 X-Received: by 2002:a17:902:cec6:b0:19a:ad2f:2df9 with SMTP id d6-20020a170902cec600b0019aad2f2df9mr16082119plg.55.1679992630997; Tue, 28 Mar 2023 01:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679992630; cv=none; d=google.com; s=arc-20160816; b=klrt6je3bTe43UYIJj5TVqKt2U23Wy6mKZKJ1TTEmf77p6Eg3kkPqtJn+SmWkLQJiI 91rb8QjN8C4gGJJDYgtCXuj3md5Uak81cf49tL2fd5ncWO+/OvTKkve+UGDGlD1L4QSP 3GxEHxujnmkAr69nNf2GydFJafqKZ1+XyAY+U8+rPkgInX0Fxg4D+K3GD3T8NOZeDCn2 nSy7j0/qmq1TiPEluu22hO21mD7adyADpJYumeuFjvQ+3/CMfSwvEXcuxdEMtRjZV+4A 9bv+vANpX6Odpt1xJkzEYYEJDFdG3pHJ75Bl9b9lPZNWWDFMl3RoLwdzT66m4BmqmfDd 9/ig== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a170902d50c00b0019ce0f430bbsi30624546plg.476.2023.03.28.01.36.58; Tue, 28 Mar 2023 01:37:10 -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 S232390AbjC1IfO (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759722253796059812?= X-GMAIL-MSGID: =?utf-8?q?1761599953151682744?= 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),