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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3CE50C4332F for ; Thu, 17 Nov 2022 14:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VZZWm6XMKPhJC3f7ASA+8FuYar+9V3oXaZ3/LGt5+nw=; b=K1XkXGAOM2N++i MsUd9lgjWRic1RWbiqqdOibMhzC12HpGbHCRbZoffsKgpxLXtYMh8G9puxot1rScCU1SJ8nzxcbDk RnJzJ4LML548UL1/3jkgCVWbGmcbKWDL3edVfD2Pl/hVdcWsawdC2iqxKdDOOZTr74lC5GtoeXCrL KpfotHquZzwiHJKKaLQapcqfpH29rK+DQwbDhtWBcerlDdxY0m0tfXri9wZ82FxxbGXIB/GH3xBWN 6AiCsDfLqaC9tbjHbcuNEN48uSn4jX/bCTNNtoI7mNFi+v6rO7U8lu4wtddXX9C0QGj6FaZs5v47J pK3PLSWKZ62AMt0p4xPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovfoY-00En6b-7s; Thu, 17 Nov 2022 14:24:26 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovfoD-00Emy1-Ds for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 14:24:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668695044; 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=EiyWF2bGgWI+mcYml0p3NT1eUHswn0yo8fN97sETrVTu0yNhR8B9fISPaU7QyJH/skF9+S g5l3gbBMW2kBvyKzEtuKkZoui8g6ZMh5oMWucmQ3QANBwlHB97EZ6X1Yt4rX+boerqHC2U 2WbHL7ExO/PAM0If3bHFiTYW/fkXcoQ= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-297-iKyMB7FHMlGA_o9G-uI9ug-1; Thu, 17 Nov 2022 09:24:01 -0500 X-MC-Unique: iKyMB7FHMlGA_o9G-uI9ug-1 Received: by mail-wm1-f70.google.com with SMTP id m34-20020a05600c3b2200b003cf549cb32bso2867365wms.1 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=CXdqdw5JQfOQ5CL4aVrckBaiHCwlkAlXv4H4b2VqFmpKoq0jRujULsevErtUNkZlbv sEcNANpBEv9VU+WSb+DQlwgMqFySq0i1y0Isd+V4GaDCehAc05d+BF+1CtVs0fst1/2R Rff9td6c898CWOKD5O1VklW/uDg7CQeTuflGexIMvngWGnCZN5xtn068JS8EQUo9Y1gO qeykKOD++ZbfjMmR8M0+yjPANHT+97+yyb1DuU0ACo5AY8AnQiiEjUoCzobT1oJBeOYl pCakDLpu8rBgad9c+TDP6bF+WKoLvazV75CMwO0PbUIxGbW1Zdyu+Yobt55QQWftL2k1 +5Ug== X-Gm-Message-State: ANoB5pmV+iNPTDwZ/v1CGC2Vxl0XLStiH7obxNqpjsHB107QJ7tujDxD wsDp8z1Al96q7Ik8YIzFNfGKjNQcev/Sz6I0fYMDDNz8tE/Dq9CIbzL1m52EWs67LA/r3KrXnr8 jbZbQZgmPzznW6l7r3GnUCN2GIRehZhQSmEM= X-Received: by 2002:a5d:58fb:0:b0:236:74c5:1b2d with SMTP id f27-20020a5d58fb000000b0023674c51b2dmr1616719wrd.14.1668695040746; 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221117_062405_620953_E13A371A X-CRM114-Status: GOOD ( 17.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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); >> +} _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel