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 5405DC7EE21 for ; Thu, 4 May 2023 13:34:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbjEDNen (ORCPT ); Thu, 4 May 2023 09:34:43 -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 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) > +); > +