From mboxrd@z Thu Jan 1 00:00:00 1970 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 67FC7C43219 for ; Thu, 17 Nov 2022 14:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240390AbiKQOZc (ORCPT ); Thu, 17 Nov 2022 09:25:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234614AbiKQOZL (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.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3915F7723F for ; Thu, 17 Nov 2022 06:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668695048; 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=I7lAKnmiMzsm4I0VdO6HdiRgIJ+6wS4h3qemQTfLBcxCBUCRXhVzE0PVffv00j6pu7eFnB oWp/IbtaZAHRnE3YrFYuooT9Tc1JLy/bXQYlzYE0bD3eRni03F5kZfDmeIWGUe6ZBiQhZ7 RU93GOKb/nxL/b34PG2yqUyBtk/H2gc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-599-UJhV4otzPkS5P9d4ekOJFQ-1; Thu, 17 Nov 2022 09:24:01 -0500 X-MC-Unique: UJhV4otzPkS5P9d4ekOJFQ-1 Received: by mail-wm1-f69.google.com with SMTP id x10-20020a05600c420a00b003cfa33f2e7cso715517wmh.2 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=e+YTDjFXlHOHFiFe1NsSaOiO3OcYnswh36UjY93GgNw2m9oDqqXTyavg2yYr/112dr HnyHlmKEh+KIeKxUmCXq0rQEmKvoCqa6lwOcVA7pOamswA3Rq1IX+f2AtJwy75QB8/A0 qoc0Bb1vMAu+/xSbM3gMHtEYFFEd2WmEjXHaK2xvNUbeqZolE9F/j7kXP0caqGSpig/z RmVVawoD9Sh1+xepTnCex70yOLTLgjah5Qjt76o9+9GTGQc9mgou9PuvhxLbsglU536G J4eVlLQrEQztp0kL9u8BLj/M177baQx2Q58v9Rh4qHXmP4TB9RW44tu5a7Xxm0fn0yBw hQuQ== X-Gm-Message-State: ANoB5pn0ciFlXquoE30orhRD2n0Db8eY+DHLOHW9DGNP0xx9FmnwO3JZ SXjJUDfAEoGKxHTZmek0XzxF+AwVF6QWD4AIQmctPa/AsENYuZbsfaLa1BFLVLFh+DYALt1V4kq OLnfLce7IsLsqpwC+mxTZMw== X-Received: by 2002:a5d:58fb:0:b0:236:74c5:1b2d with SMTP id f27-20020a5d58fb000000b0023674c51b2dmr1616710wrd.14.1668695040744; Thu, 17 Nov 2022 06:24:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7dCrVGloFO6BdNbsi4gADz4iCuS/nJ5b5vEmtvQw4WeirpWLMINwzrWmZ6QxU1sPuLDe40QQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-s390@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); >> +}