Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp541451rwr; Thu, 4 May 2023 06:42:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+AVOOROY/wk61sGeC/E2EzED1wo6ls7xyL10xzC+IgTNXkD9K7lu6G4CHDR93IK/v5/lI X-Received: by 2002:a05:6a21:1704:b0:f5:e533:4dbf with SMTP id nv4-20020a056a21170400b000f5e5334dbfmr2157248pzb.55.1683207778112; Thu, 04 May 2023 06:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683207778; cv=none; d=google.com; s=arc-20160816; b=xtgaygBhOVagIp9aSNOipSI7Bv9TjNfeMEHYEM9K8W3W0THydAI4DX2eZnagOblrxT U1Gy7jwyi/GuDH9dWLmjykHCPpD3a4J0ySw8FiHB0+u9jBtJMM+UK2b6S6LBQrHdsTXO mTJZ+dggg5dECGNIzq7IYshJ5O00M7atqFhCA8K5Q4nH8Tb5NH98AZ5fke4XtzQd/p+I o2UINn8GdXOj743Qq7D0z28ayqJeltk7JPJrR/zKyU22EtrpjqU/HK0lX//Cx7LF1fz7 QGMbNIZ9EPkMRFbI9fCYHB9cTFxOKlAENui+j25yaqk182lMZwX2t4sGUNzdgY6Omabc IWLw== 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:subject:cc:to:from:date; bh=lTHA9olCCiZkH/teuRRg1hiDPXITkBusrz2V6b3vPpY=; b=NREcFzVhIBJiTShv+y7KkHWRu714dihEjLrSqyom1otALxUiTgXnZ3ZlE5u7ae2gnO syhdb5wXSibswr17xDe8z5XkQ/dwfa468yQloAdVIYmohyXgQDn9GFJ/3mll8rW3FkQ/ 7AmiVz3qfjYJ02qw0zNRbb78cNx9CJtiqoKZqjwydfJnbTxTw4YOy7EzzcZqx5Vb9mlZ hn4nYjuRNgidm395Nf+7bL7cYCFpgkl/bCxT0UcXV2Wl0Is0sf2VLLLscgOSX4u9sncI zdkpKG+yVPIvSNGp0dhvCl2cxfkgIasQqNASxXLiAHjsNy6Bs2EJBg7ndMS4eD9d/d+F /s5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 v10-20020a63f20a000000b00524ba7e95c3si36148793pgh.785.2023.05.04.06.42.46; Thu, 04 May 2023 06:42: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; 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 S230179AbjEDNem (ORCPT + 99 others); Thu, 4 May 2023 09:34:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbjEDNel (ORCPT ); Thu, 4 May 2023 09:34:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B9935B8; Thu, 4 May 2023 06:34:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8977360F4D; Thu, 4 May 2023 13:34:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97CB6C433D2; Thu, 4 May 2023 13:34:36 +0000 (UTC) Date: Thu, 4 May 2023 09:34:34 -0400 From: Steven Rostedt To: Valentin Schneider Cc: Peter Zijlstra , Leonardo =?UTF-8?B?QnLDoXM=?= , 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: <20230504093434.25f238b2@gandalf.local.home> In-Reply-To: References: <20230406075718.68672-1-leobras@redhat.com> <20230406095519.GG386572@hirez.programming.kicks-ass.net> <20230503145900.GC1689514@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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, 04 May 2023 12:59:41 +0100 Valentin Schneider wrote: > +TRACE_EVENT(csd_queue_cpu, > + > + TP_PROTO(const unsigned int cpu, Why the "const" ? -- Steve > + unsigned long callsite, > + smp_call_func_t func, > + call_single_data_t *csd), > + > + TP_ARGS(cpu, callsite, func, csd), > + > + TP_STRUCT__entry( > + __field(unsigned int, cpu) > + __field(void *, callsite) > + __field(void *, func) > + __field(void *, csd) > + ), > + > + TP_fast_assign( > + __entry->cpu = cpu; > + __entry->callsite = (void *)callsite; > + __entry->func = func; > + __entry->csd = csd; > + ), > + > + TP_printk("cpu=%u callsite=%pS func=%pS csd=%p", > + __entry->cpu, __entry->callsite, __entry->func, __entry->csd) > +); > +