Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1187611rdb; Fri, 1 Dec 2023 09:06:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlEr1CurvwaI8UOxIUs4Mt52DumiQZZJIF9kdzdR9L5MpUBwUGt21WmgPygttzoTC0XLLj X-Received: by 2002:a17:903:2303:b0:1d0:1e4:cd5a with SMTP id d3-20020a170903230300b001d001e4cd5amr19384496plh.3.1701450407000; Fri, 01 Dec 2023 09:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701450406; cv=none; d=google.com; s=arc-20160816; b=KNnD6pB0fOO415ctSy6htZD7OEvPO/RX0WkF6Rtsp4f16N5gp4WScXD/xMXFnGF423 AmFgzIsboF9jVUMPOhlORBtmyVlifa9GHTSm2IlSKXFa3RFQu0RFIVfmv23KugL+aX/V EHUkBJY3y6uthgpdjAaXAHw8mLM9PxwhwFQ6wS5GV+vfuf4QEUtXgYebZHpOplzRN/Bq YvNCBejBEtjkzsJ3Vfw0aa2E8QIjLuckvrg+ddVIxzR+k7qqZGzkVW0Zs9PDNcHo77Vv 9Rx6uNAcyPtAtktodyfgVE9NjGJrNfLh82XlhpjRZh2FyiJeCrdkkbNeaBXhGh5zZ7Cg hs7g== 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=dSh0QEQq08raA68Dg5VtL5ahUwlyg7FGQJYlrJhI5BI=; fh=Rokw9/rH1ndPW6wv1vobZRQt/xj60eZAa5jwuq3bSVk=; b=NqgEVU6hcy28BbzzVgclfifkv3UvdtD+Q0/jOyHf/Vmvi+dU3APbsyKoBymft4T4IY pNQah9Ri5qiRWieb2NxkqJwKls25oCC1YWJ3dSM2Sfz7vRwSZF6s8Sg0iBLP5hiYrJVQ bo6l87LRg0VSotIZQkKlzKbtezK7vxJkvoAHKURoMk64osKs83BM6uBKNhdXEJnfWGer RbDUiRUTsJ46UOZas2m72Wld+rjzdA7wi9DNLkuLj7LomCwbOSuZcvB+DDfPleEOm5CB 9MHuvEmh7uI6tOoKvyAHQc+o40AtW95JPAMPqv0qF60HJU1XvyxbAqmMpkCqkKpbXQYh bSBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n5-20020a170902d2c500b001cfd934bda4si3620192plc.473.2023.12.01.09.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 09:06:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1A8CE8129AF0; Fri, 1 Dec 2023 09:06:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229515AbjLARGU (ORCPT + 99 others); Fri, 1 Dec 2023 12:06:20 -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 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 09:06:31 -0800 (PST) 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