Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2716599yba; Mon, 6 May 2019 10:24:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4SmYOdog85jZO/PEmZ/5+jIqrGfu42r5gCmPBiIx3WSpWfHAOpMyZxnodb8X0cPdoxPqg X-Received: by 2002:a17:902:b193:: with SMTP id s19mr34573201plr.17.1557163486041; Mon, 06 May 2019 10:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557163486; cv=none; d=google.com; s=arc-20160816; b=n/SfnVJlMk0CyAY9CBctu9pVrUmGRW6xV81P5Ot7AO+Yzwcu56Mu4PJy8pFAlTPbPI m2TeteF2q8grcZ9CNQff1WV9jnG0pK43GMqnBhttmdxBOaoHL8dQYToD7tSDfZYSEWNR LW5LEPHKrRsrqFh04OooA+U7In7eF/MAkxY6RiCbTjs8nWCQlSfq5BI7LoLXnYW+vOYO KKLdId0AH9paACdlwYr8OrH6NUhB8MkowpQ28vyAS06e22FxL1P0d+cC0GCWG4H/F+zS vW+4TmjC+spTUIZmc+CnM2xj8fZpw8/468j/SToMfW6B+vvUliMHtZpH9E+hJPwTd0XF nuUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MFe1VLCp3vgJMdSeTOH5mlyzTOqcmE7ilqqK/sBP2Rs=; b=a4PtcFzDs+Qt5zXc2/hSXq9f0UT4h5QZ7z/yL30h/oqsmqW5gFfC731N2sXiAu8xe4 d9IfzRU3bmcjXXPvnRZgvjl12Ie6Cjt8BfAMHrzBlGtjnu2iDtGzhzxkjJqDpHNcaWdt 9NSJTbpo2L4G0UDNdlK3BdRGVFZjv+dmIcBNxLDz9bsqdITi9LkcQ6wES2eesk6fCxMx GOlg0CQCk7aNIWLo1PoaTbKnSHiAWrGy7pt3dWU9GImHyWLk6POJfJixjSH1M5lcOs9c C1SEOJVKtTfrX57wEoLD9hkutmjq1ZaBGuHguf9SSeXi7rdecO7uVwMPUNClkRr1EVld NdOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t30si14350481pgk.496.2019.05.06.10.24.29; Mon, 06 May 2019 10:24:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbfEFRXl (ORCPT + 99 others); Mon, 6 May 2019 13:23:41 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56778 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726407AbfEFRXl (ORCPT ); Mon, 6 May 2019 13:23:41 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 97678374; Mon, 6 May 2019 10:23:40 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.194.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3FBF13F575; Mon, 6 May 2019 10:23:39 -0700 (PDT) Date: Mon, 6 May 2019 18:23:36 +0100 From: Qais Yousef To: Steven Rostedt Cc: Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, Pavankumar Kondeti , Sebastian Andrzej Siewior , Uwe Kleine-Konig Subject: Re: [PATCH 4/7] sched: Add sched_load_rq tracepoint Message-ID: <20190506172336.cxbfwasv7rfegbi3@e107158-lin.cambridge.arm.com> References: <20190505115732.9844-1-qais.yousef@arm.com> <20190505115732.9844-5-qais.yousef@arm.com> <20190506090859.GK2606@hirez.programming.kicks-ass.net> <20190506095239.08577b3e@gandalf.local.home> <20190506144200.z4s63nm7untol2tr@e107158-lin.cambridge.arm.com> <20190506104618.2fa49e13@gandalf.local.home> <20190506153317.fv73wpdwsn7xcyc4@e107158-lin.cambridge.arm.com> <20190506120119.12d98042@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190506120119.12d98042@gandalf.local.home> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/06/19 12:01, Steven Rostedt wrote: > On Mon, 6 May 2019 16:33:17 +0100 > Qais Yousef wrote: > > > On 05/06/19 10:46, Steven Rostedt wrote: > > > On Mon, 6 May 2019 15:42:00 +0100 > > > Qais Yousef wrote: > > > > > > > I can control that for the wrappers I'm introducing. But the actual tracepoint > > > > get the 'trace_' part prepended automatically by the macros. > > > > > > > > ie DECLARE_TRACE(pelt_rq, ...) will automatically generate a function called > > > > trace_pelt_se(...) > > > > > > > > Or am I missing something? > > > > > > No trace comes from the trace points. > > Re-reading that line, I see I totally didn't express what I meant :-p > > > > > If you want I can do something like below to help create a distinction. It is > > none enforcing though. > > > > diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h > > index 9c3186578ce0..f654ced20045 100644 > > --- a/include/linux/tracepoint.h > > +++ b/include/linux/tracepoint.h > > @@ -232,6 +232,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p) > > */ > > #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ > > extern struct tracepoint __tracepoint_##name; \ > > + static inline void tp_##name(proto) __alias(trace_##name); \ > > static inline void trace_##name(proto) \ > > { \ > > if (static_key_false(&__tracepoint_##name.key)) \ > > > > > > Another option is to extend DECLARE_TRACE() to take a new argument IS_TP and > > based on that select the function name. This will be enforcing but I will have > > to go fixup many places. > > > > Of course 'TP' can be replaced with anything more appealing. > > No no no, I meant to say... > > "No that's OK. The "trace_" *is* from the trace points, and trace > events build on top of them." I did have to stare at the original statement for a bit :-) This makes more sense now. Thanks for the clarification. -- Qais Yousef