Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp666611rwr; Thu, 4 May 2023 08:07:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51xQkBhSLU3Lo56WGtfnbQtuSjlR/z+4vqnWb17ADcy6rlcwrfXyebtplVSX01WfFwLBdK X-Received: by 2002:a17:902:ec87:b0:1a6:ebc1:c54c with SMTP id x7-20020a170902ec8700b001a6ebc1c54cmr4998607plg.1.1683212878306; Thu, 04 May 2023 08:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683212878; cv=none; d=google.com; s=arc-20160816; b=c/Wh7VMlbi+1KVGoo3s69otI/jsJ9KJRn04w6I3DjDs3FSWaE3j19JOFoaNcCQ+oUd FwXSjk6e4n3d/RCleuBnSvfwfPcOm9VhHppljieyiSc872JivHUuu3feQ/m/JUdCZwyx zx8NWUiur95GYjs3s2oKkXvPgvPVcP+a2WNDAedTEW/IIRNO66d97Ogr/5FuXMWerxfb F+v4quIx8Ky7tved6D3bdulzSXHznsLfKYpaOZEp9CC8gdwYHE/RF1ROw7PapnNNsu2J pJj+I4/i11FmYw7hdAEccipLMAw/eiwlGLIav93gfubo245w3MoRHyQGzhOZQ77KhlEq r/1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=J9lcuz0U78xiVesYVTRvv8JVCKEh3ZCKl4adkGMz7q8=; b=VJSOXkvW2d/0nGm8RyKoYmecoNVil0hnQd9ELUW6fYp+tb6JbXQ/ugmjpOHPWLYbub rzTIF3JoYPjHjjqfpy9muqDH6x+DXDx6P6WOvEYfrJ2rVuJyTsBsyzvep3MGwioR21OH koXl70/fZlqgh2iUB5awFjXJGj0Hw3Wb10hOmpRBstDCha2M/aTlnlzJWIdFD4EE1Vrx 2NbkoNeWPkOmTXpS3KetvvXRtNKM8EPJ9bVquL78AYmxsJ15UC6SelzjkJF+GMX7OypE bOeLeIiI00X2fTQOAufOk/e84NXkb9gF+xvn3nN3i9l8hAgncwBBW22h1p0IX7HfFtO+ OKUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=A3tkeyDT; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p15-20020a170902b08f00b001ab0e4c0218si5893565plr.140.2023.05.04.08.07.28; Thu, 04 May 2023 08:07:58 -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=@infradead.org header.s=casper.20170209 header.b=A3tkeyDT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbjEDPCq (ORCPT + 99 others); Thu, 4 May 2023 11:02:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjEDPCZ (ORCPT ); Thu, 4 May 2023 11:02:25 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80EB740F2; Thu, 4 May 2023 08:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=J9lcuz0U78xiVesYVTRvv8JVCKEh3ZCKl4adkGMz7q8=; b=A3tkeyDTbxVkt6nED1FtXwR7g1 zZTYBRWgzTAAp9BZC1qV19RLdqwHus5AQdNJk4QDytJqfu0d3fusfZd6tmpLHnup1qMzIq1UrlO3r jA6uWCDheYZh0N1afd4u6dydMh83H4G0C7c0LyDOr1Qr40sZHIjHkJkow0b886Qh4GbbmeqrET+yC BKxh99Ux1Z2HW5bHnTcfrJMEd9lz//bcPqHa45Sgaoqw9q3Kc56na7ZITUjHj87fDXB5OTA+CPbNJ Z7SX69si5EG372gxmdBynOePTt2mscU8e3Oeylz4MD/j1jNX9ZkD6PiiSxjMnfY1tl6QpLBO6zlfn g1uP3SFA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1puaSJ-00AhL6-Rb; Thu, 04 May 2023 15:01:16 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 00C7B3003CF; Thu, 4 May 2023 17:01:13 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D677D2407F43F; Thu, 4 May 2023 17:01:13 +0200 (CEST) Date: Thu, 4 May 2023 17:01:13 +0200 From: Peter Zijlstra To: Valentin Schneider Cc: Leonardo =?iso-8859-1?Q?Br=E1s?= , Steven Rostedt , Masami Hiramatsu , Thomas Gleixner , Yury Norov , "Paul E. McKenney" , Sebastian Andrzej Siewior , Nadav Amit , Zhen Lei , Chen Zhongjin , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Marcelo Tosatti , Daniel Bristot de Oliveira Subject: Re: [RFC PATCH 1/1] smp: Add tracepoints for functions called with smp_call_function*() Message-ID: <20230504150113.GB1744142@hirez.programming.kicks-ass.net> References: <20230406075718.68672-1-leobras@redhat.com> <20230406095519.GG386572@hirez.programming.kicks-ass.net> <20230503145900.GC1689514@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Thu, May 04, 2023 at 12:59:41PM +0100, Valentin Schneider wrote: > With that said, I suppose this could still be helpful for e.g. osnoise to > hook into and point the finger at which CPU/context sent the problematic > IPI. Or more generally, as Leonardo suggested, to measure CSD IPI delivery > times. > > One thing though is that trace_ipi_send_cpu*() is not used solely for > CSD's, cf. irq_work_raise() or smp_send_reschedule(). We might want to > split that into e.g. trace_csd_queue_cpu*() + trace_ipi_send*(). > > Something like so... > Yeah, looks about right I suppose.. it generates more events, but given we need the csd that's inevitable.