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 D5F27C4167B for ; Fri, 1 Dec 2023 17:06:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378681AbjLARGV (ORCPT ); Fri, 1 Dec 2023 12:06:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjLARGU (ORCPT ); Fri, 1 Dec 2023 12:06:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FAE29A for ; Fri, 1 Dec 2023 09:06:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F7B2C433C9; Fri, 1 Dec 2023 17:06:24 +0000 (UTC) Date: Fri, 1 Dec 2023 12:06:48 -0500 From: Steven Rostedt To: Jeffrey Hugo Cc: Krishna chaitanya chundru , "Manivannan Sadhasivam" , "Masami Hiramatsu" , , , , , , , , , Subject: Re: [PATCH v5] bus: mhi: host: Add tracing support Message-ID: <20231201120648.795ea00c@gandalf.local.home> In-Reply-To: <15c0130a-1a4b-c08b-714b-05166f48d23b@quicinc.com> References: <20231127-ftrace_support-v5-1-eb67daead4f1@quicinc.com> <15c0130a-1a4b-c08b-714b-05166f48d23b@quicinc.com> X-Mailer: Claws Mail 3.19.1 (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 Fri, 1 Dec 2023 10:01:33 -0700 Jeffrey Hugo wrote: > > +DECLARE_EVENT_CLASS(mhi_process_event_ring, > > + > > + TP_PROTO(const char *name, void *rp, __le64 ptr, > > + __le32 dword0, __le32 dword1), > > + > > + TP_ARGS(name, rp, ptr, dword0, dword1), > > + > > + TP_STRUCT__entry( > > + __string(name, name) > > + __field(__le32, dword0) > > + __field(__le32, dword1) > > + __field(int, state) > > + __field(__le64, ptr) > > + __field(void *, rp) > > + ), > > + > > + TP_fast_assign( > > + __assign_str(name, name); > > + __entry->rp = rp; > > + __entry->ptr = ptr; > > + __entry->dword0 = dword0; > > + __entry->dword1 = dword1; > > + __entry->state = MHI_TRE_GET_EV_STATE((struct mhi_ring_element *)entry->rp); > > "entry"? > Also, you have the "rp" that was passed into the trace, why not just > directly use that? Agreed. -- Steve