Message ID | 20221102183336.3120536-1-vschneid@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp72258wru; Wed, 2 Nov 2022 11:36:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6F5CV3ZFNPfw8lUMFO0iodXIiOtBvPPaLM0+SbyrwiH5YX5tLXQXEUDBvdKxu1cvfk90gV X-Received: by 2002:a17:907:7da9:b0:7ad:f381:b9f7 with SMTP id oz41-20020a1709077da900b007adf381b9f7mr9123847ejc.729.1667414195639; Wed, 02 Nov 2022 11:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667414195; cv=none; d=google.com; s=arc-20160816; b=eQJE3xll0K1hHIsIaqJ65SHsRBtxvQnrhEFdIjjcK3j5oU6VHtP0MdVuZBpM67QKCM EPeDP57hJlwaiVsPQCpnsKpyY623i/bT9PRHzx971dtQeCjYnSdoiNDXP5a8bMkzAKt0 sDn6jS4LXrl8YmRaX/oa5q+ViQJfpMj8GeetFU69gEmcbOaQlkFZQfsnlSOb/9JBs+Vm 5ZOLBWBrjDa0mb/dLc5pH1xBYN1wxoEekWi+qNPgc4ue0atBTIOiiv4WEFL8D9pF+qCQ EsJV5h/MwpIohV7W1YWaIn+CHA7BTWskXIJfF/CqIDsITJ4ifvtIkP3nU6MWPsVJgT8c OtwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iOwZQK5qeETgL3wqlfHaHMAHqEn7+FhbLCJ4P7hdM2o=; b=1IuPqQOc69nPoOmkfXXx68NJOiuyWV3p7noZlACwOg+DD7a7tcNcLgy/VWcuCz9SqO J2CEuotAo3v1AvBTpZs0pYQ/LYNU3wFkbkNIiDGGX07rv2QqdY1X4qp3LkMWNSvk4WrJ L0NIlRUeMalScC+ARWeVYle43ta4hDqtOvcDq49RhUm363NxDhZu07A3k8NjWDDsmhHf Pj5YB/UfCu09xoITmOFLqtal8kxeXbjv6Oek2bjaVfBwgeMkRSowK+T/8kxpLk+ZNPAT VoqUwRnoQ8hTNUV6PaVZgPMGQPJPrIqxM89s6KG2NWOcXrMTB5DhlWNjSC/V1Vk/1CtF mfVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AUtQ+S2x; 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=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a170906179300b0073d581b0906si13194724eje.278.2022.11.02.11.36.08; Wed, 02 Nov 2022 11:36:35 -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=@redhat.com header.s=mimecast20190719 header.b=AUtQ+S2x; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbiKBSfL (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Wed, 2 Nov 2022 14:35:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbiKBSfJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Nov 2022 14:35:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703922FFDD for <linux-kernel@vger.kernel.org>; Wed, 2 Nov 2022 11:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667414050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iOwZQK5qeETgL3wqlfHaHMAHqEn7+FhbLCJ4P7hdM2o=; b=AUtQ+S2xKMYXFQEbsiHOvNjJXSAp6C37S2qBKL7jBd6FLIOpe3Xpt8EOwn/MapnpV3KoGz wbp6F+nAso5uk7/tw/VzoSJN7NxnhOaLf9HvG7tmiP/32Q19yvivHxinRAU1iXTZQQa7ec EMgEsC0oM4WfuN/164eFobDdbhHvEtg= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-472-pdCgIrklML2H_P3P6EZf7w-1; Wed, 02 Nov 2022 14:34:09 -0400 X-MC-Unique: pdCgIrklML2H_P3P6EZf7w-1 Received: by mail-qk1-f199.google.com with SMTP id h8-20020a05620a284800b006b5c98f09fbso16163621qkp.21 for <linux-kernel@vger.kernel.org>; Wed, 02 Nov 2022 11:34:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iOwZQK5qeETgL3wqlfHaHMAHqEn7+FhbLCJ4P7hdM2o=; b=G1gUpNAgyBt4I3f2UvSWW3WRoSKjTlx62ZIv7HFNc38D9ZoAfoDCnvZMZqEObPEWeS 0h6RpQiaN6asw9REcpRxDOHnnYWILRrc28OcPbHcDPaeLg5SY6L7vS0gjNPoMPumJc4i vX5P3HO4V3w2YCaJt587vvf7E1Jvc0oOcnueUxq3SYjJZIElISEOv2GWTBM4dTeGjRlA 6DbLhKIPForwOcO3RhyzqVasfY5HA/Emf1sZSd6xXVYO9lpl/zlUvPmlzAD7QT4dO3tv bmmiA9tQiLcZSpq4b2zNgEGFMjLMOPodsDT3drUqAG14ruUnYx9t8tmuNYjv47kvB/jP NCMQ== X-Gm-Message-State: ACrzQf39Pj4APvCv9gdiBJghW3j9sal423gtjUC48u+xMk1EXNIUqKwy nrH0uHOzX0r5mFg+f+YvlCCSPjUU7eaRQFrNltRi1LcHrE2Gn6UJVP3PLng1phon2INbyF2AKe0 eRD7Pu1pj7Fuqqe+Cpsxvsv/l X-Received: by 2002:a05:622a:183:b0:3a5:4255:a0fe with SMTP id s3-20020a05622a018300b003a54255a0femr5122037qtw.441.1667414048629; Wed, 02 Nov 2022 11:34:08 -0700 (PDT) X-Received: by 2002:a05:622a:183:b0:3a5:4255:a0fe with SMTP id s3-20020a05622a018300b003a54255a0femr5122009qtw.441.1667414048423; Wed, 02 Nov 2022 11:34:08 -0700 (PDT) Received: from vschneid.remote.csb ([149.71.65.94]) by smtp.gmail.com with ESMTPSA id w187-20020a3794c4000000b006eed47a1a1esm8757820qkd.134.2022.11.02.11.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:34:06 -0700 (PDT) From: Valentin Schneider <vschneid@redhat.com> To: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, x86@kernel.org Cc: "Paul E. McKenney" <paulmck@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Juri Lelli <juri.lelli@redhat.com>, Daniel Bristot de Oliveira <bristot@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>, Frederic Weisbecker <frederic@kernel.org>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Marc Zyngier <maz@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Russell King <linux@armlinux.org.uk>, Nicholas Piggin <npiggin@gmail.com>, Guo Ren <guoren@kernel.org>, "David S. Miller" <davem@davemloft.net> Subject: [RFC PATCH v2 2/8] trace: Add trace_ipi_send_cpumask() Date: Wed, 2 Nov 2022 18:33:30 +0000 Message-Id: <20221102183336.3120536-1-vschneid@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221102182949.3119584-1-vschneid@redhat.com> References: <20221102182949.3119584-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748410507183881109?= X-GMAIL-MSGID: =?utf-8?q?1748410507183881109?= |
Series |
Generic IPI sending tracepoint
|
|
Commit Message
Valentin Schneider
Nov. 2, 2022, 6:33 p.m. UTC
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 takes a exports a target CPU, a callsite and a
callback.
Signed-off-by: Valentin Schneider <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 0be71dad6ec03..b1125dc27682c 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),