Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1142308rdb; Fri, 20 Oct 2023 09:28:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcbXHGwTWGfjdz3s1ePVCs8R18aI5nb2pxe4j/S+PV4eyHCACYDkhvR3PMOclJodWcgcQf X-Received: by 2002:a17:90b:8c:b0:27d:1aa:32b8 with SMTP id bb12-20020a17090b008c00b0027d01aa32b8mr8359945pjb.9.1697819330273; Fri, 20 Oct 2023 09:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697819330; cv=none; d=google.com; s=arc-20160816; b=RWpdxcgJrXmJUqHOOscXqbhVFT8VGoUVRbXphC+enfXUMMJA1hzRTbHGI67NTAdkhq toLsU2Aa2s7VQCWbxMPUdZFPzKR46KJTmD2t9Natp4Hf3k4o0L4thlwNZABDMpOf07bp PXbPQldWDH5Am8Zkhyraq4x0WW7LCnMWF4tX1vkoObg4sRYfVc1W2bcM7T5lJSVSWuBz 80Z87Qh5UAHcDM+8MJe+Go6awjt2Y+Dd1MA9Wz2DNpSBzj1r6hf/tqJZsVxke37z6n0p u8CPL2eIzVvdK8nDD8VxRztewLlhjOziVNBIUDzqE5s2BOXfxCA9cDib3Xcjqp+IRYx3 3x6w== 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=Y6os/LeX5J9aXO75ttDWd20Ss/K3S/pyr2o8B9CuVZk=; fh=Rokw9/rH1ndPW6wv1vobZRQt/xj60eZAa5jwuq3bSVk=; b=AXzBIguQGvsBIlHhY3+Y3vovWbCElCnZKpOAmKGrfxFVl7YlJnC031BxjH888pU2cQ 1+WRrmhklIz9s3HS8VQIYE6K1p9pxLzlpueL+O3434t5m9OmDGoSzQhe3LbWi86JZdMg nXSgMH2Kg1heEv1UNB1Sc6Rd+QaeVdKpMhR+/BAaqUIbyumK05uq5tDds1gkm4fSNq/y g2yBXeJhfFwWgh+jVvXEBGSoI1zX9dxVVvlxvpMt+bo5qrKdC+xk14igkWpRVxwEHsI2 NIa008IZc2R92w/Xe3QLX7JTDDIKi1WFuMZgs/YxV/fpxwzT0x5aZGp0DcUbvzCU7jIz H25A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m9-20020a654389000000b005acf1d3b2a2si2309927pgp.174.2023.10.20.09.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 09:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D420B82E17EE; Fri, 20 Oct 2023 09:28:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377853AbjJTQ2l (ORCPT + 99 others); Fri, 20 Oct 2023 12:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377777AbjJTQ2k (ORCPT ); Fri, 20 Oct 2023 12:28:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B58CA; Fri, 20 Oct 2023 09:28:38 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 056B9C433C7; Fri, 20 Oct 2023 16:28:36 +0000 (UTC) Date: Fri, 20 Oct 2023 12:28:33 -0400 From: Steven Rostedt To: Jeffrey Hugo Cc: Krishna chaitanya chundru , "Manivannan Sadhasivam" , "Masami Hiramatsu" , , , , , , , , , Subject: Re: [PATCH v2] bus: mhi: host: Add tracing support Message-ID: <20231020122833.647bbc49@gandalf.local.home> In-Reply-To: <9216f694-cce0-2b95-df34-e5b60538644a@quicinc.com> References: <20231013-ftrace_support-v2-1-6e893ce010b5@quicinc.com> <9216f694-cce0-2b95-df34-e5b60538644a@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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Fri, 20 Oct 2023 09:28:48 -0700 (PDT) On Fri, 20 Oct 2023 09:03:59 -0600 Jeffrey Hugo wrote: > > diff --git a/drivers/bus/mhi/host/init.c b/drivers/bus/mhi/host/init.c > > index f78aefd2d7a3..3afa90a204fd 100644 > > --- a/drivers/bus/mhi/host/init.c > > +++ b/drivers/bus/mhi/host/init.c > > @@ -20,6 +20,9 @@ > > #include > > #include "internal.h" > > > > +#define CREATE_TRACE_POINTS > > +#include > > This feels redundant to me. A few lines ago we included internal.h, and > internal.h includes trace/events/mhi_host.h It's not redundant. The #define CREATE_TRACE_POINTS enables the magic of creating the tracepoints and trace events via the TRACE_EVENT() macro. It should never be done in a header file, only in .c code! The header file include of trace headers are used for having access to the declarations of the functions. That is (trace_*()) in the code. -- Steve