Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2126631rwb; Thu, 17 Nov 2022 06:56:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Z/kuk9rW+oL1tnQhPYtwYe2s6AanGRAo3zAgs5PPvrzfOsWA4lG9zeTHJPjRWwCgi+ya9 X-Received: by 2002:a17:907:9010:b0:7ad:ba48:7e7c with SMTP id ay16-20020a170907901000b007adba487e7cmr2437040ejc.443.1668696997462; Thu, 17 Nov 2022 06:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668696997; cv=none; d=google.com; s=arc-20160816; b=tZUebJS2JMv90JfGyl8adZIUgvUZjJ81XKam+zQsMzd8qEzqGt8TqCatHtAK+1Ozmh ghSwzlvRuqeT4bKJ27i4WUeJsXqe8lh/x+9q5M9Ke0EYoNyj7094nH66cuMZuoaM7Amb UFsF3535tu73PnndRUhArvQ2LcCQ8k2ECdA4x7ewxnipzJtIAWhUHKSJJuaSipUAipjD YqR1NoecnvcIgePMj8RJz/RM2vKn+4Eb6zMM05qGEgidsoPq85749zp2E9ujYXUb+xrZ qvjDbC3pzoEcVBQqQV+8ZwB5n5XbZcExKYO0g3pS2FOCOSDS54DKONBZM+QYAjptXtEv 6S0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=Ero3Dop74ZUrxw/cst3yMxEJhDrRdAAQvlUsX3escHg=; b=bmdVLFg13BMe8h4LCgvLJnkmcF5tSkbgVsI060YaxElZvN5S3wV5Jy6Ze8H8X+xbjh o4eWXaW2j6cjYM94zELm09w+8wy8FQnKckcHCY5LyC6O45+6fH/h/sTStOlr/TE1MQJz 42gPe+vnrAEe8y8mtOE78ChzcwkgTMwpSIgz40nVK9hvepMb/2Y7n81isoZBU/Hg6bET XovyUSz9sJHTyDJEZ1+HtMU3UlRsTLvP7HJxAsARPN9YsVuxIbtgTxLOPCnFKkvXPogH nT1utivHt4m0an5J9EnEtS9eYXmV+rg3i+Bp8qeFb7xM6K/Mtr5Dp9Gaecf8EdNMrcIF ijEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KgjWlvtC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a05640242cb00b004679f8aaa2fsi1183843edc.370.2022.11.17.06.56.14; Thu, 17 Nov 2022 06:56:37 -0800 (PST) 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=KgjWlvtC; 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 S240396AbiKQOZd (ORCPT + 93 others); Thu, 17 Nov 2022 09:25:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240369AbiKQOZL (ORCPT ); Thu, 17 Nov 2022 09:25:11 -0500 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 9655F7721D for ; Thu, 17 Nov 2022 06:24:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668695043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ero3Dop74ZUrxw/cst3yMxEJhDrRdAAQvlUsX3escHg=; b=KgjWlvtCKJUHs+tKAAL/SCLIigkCVUC7V242kw6Lq8Z3W//ZjUhguA8g/h8LwqO7AAsS8R /8xe45O5qev6v8hLRYmygDKTB2aEyPX/5PHpx/wk7Gn1MaMQ8JOZNkSOnlNuY2Q4IYVsp8 iT09hQDK5hg5e1ej3uuQVSaPknxhZaw= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-640-TXb42kr5Pwyo05WNin-WLQ-1; Thu, 17 Nov 2022 09:24:01 -0500 X-MC-Unique: TXb42kr5Pwyo05WNin-WLQ-1 Received: by mail-wm1-f71.google.com with SMTP id c126-20020a1c3584000000b003cfffcf7c1aso609768wma.0 for ; Thu, 17 Nov 2022 06:24:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ero3Dop74ZUrxw/cst3yMxEJhDrRdAAQvlUsX3escHg=; b=19MHCLB5SPklGvLPsMZvZTWq2FLK4q//Xo+wnyLfQUhB6RUILF2hxDR67PDXK1LEd/ Gma78Gkdxurguj/ywzMvaY9BsZZ8t295T9z6cNiORwQDmwkt5wCqrMnkewfWGDLYYSJh PK8t3dy/YiL/s7A7IuCEVS+RhtSwrOJYaTUGsotSSjMaazq7+SO6nvO7r+xmymnLUUcw XNXaa5BWFmR4+yafxkWM/yZs17rsmB/Oh5foqAY+nlyDo1kVk8zXaBrZ9VMA1ECAFCqa GwDXXP4UMuu538x4ehgqKJg1zY4w+EXUMCMAfKVZ4eE+FyZ7kiPxxZt1IC4psypchelE PhXg== X-Gm-Message-State: ANoB5pn3b6Kg/Lk9RXF/9ScTSL0rZfbDc7CSaAw4byoVT0lyRQWOiZOB ot/HxmcRLpv2XZwiOFVIHgVuBSEE4MSBUxRp+caP9Zrthy/+zUV4u77EEu6vB/5bRfeYMkEQLK/ JOcMdVVmSwWhcV0m2wtdHSp07 X-Received: by 2002:a5d:58fb:0:b0:236:74c5:1b2d with SMTP id f27-20020a5d58fb000000b0023674c51b2dmr1616722wrd.14.1668695040746; Thu, 17 Nov 2022 06:24:00 -0800 (PST) X-Received: by 2002:a5d:58fb:0:b0:236:74c5:1b2d with SMTP id f27-20020a5d58fb000000b0023674c51b2dmr1616704wrd.14.1668695040586; Thu, 17 Nov 2022 06:24:00 -0800 (PST) Received: from vschneid.remote.csb ([154.57.232.159]) by smtp.gmail.com with ESMTPSA id t11-20020adff60b000000b0022e035a4e93sm1096445wrp.87.2022.11.17.06.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 06:23:59 -0800 (PST) From: Valentin Schneider To: Peter Zijlstra Cc: 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, "Paul E. McKenney" , Steven Rostedt , Thomas Gleixner , Sebastian Andrzej Siewior , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Frederic Weisbecker , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Marc Zyngier , Mark Rutland , Russell King , Nicholas Piggin , Guo Ren , "David S. Miller" Subject: Re: [RFC PATCH v2 4/8] smp: Trace IPIs sent via arch_send_call_function_ipi_mask() In-Reply-To: References: <20221102182949.3119584-1-vschneid@redhat.com> <20221102183336.3120536-3-vschneid@redhat.com> Date: Thu, 17 Nov 2022 14:23:55 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.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: X-Mailing-List: linux-kernel@vger.kernel.org On 17/11/22 10:08, Peter Zijlstra wrote: > On Wed, Nov 02, 2022 at 06:33:32PM +0000, Valentin Schneider wrote: >> This simply wraps around the arch function and prepends it with a >> tracepoint, similar to send_call_function_single_ipi(). >> >> Signed-off-by: Valentin Schneider >> --- >> kernel/smp.c | 9 ++++++++- >> 1 file changed, 8 insertions(+), 1 deletion(-) >> >> diff --git a/kernel/smp.c b/kernel/smp.c >> index e2ca1e2f31274..c4d561cf50d45 100644 >> --- a/kernel/smp.c >> +++ b/kernel/smp.c >> @@ -160,6 +160,13 @@ void __init call_function_init(void) >> smpcfd_prepare_cpu(smp_processor_id()); >> } >> >> +static inline void > > Given the use of _RET_IP_, I would strongly recommend you use > __always_inline. > Noted, thanks >> +send_call_function_ipi_mask(const struct cpumask *mask) >> +{ >> + trace_ipi_send_cpumask(mask, _RET_IP_, func); > > What's func? > A rebase fail... That's only plugged in later. >> + arch_send_call_function_ipi_mask(mask); >> +}