Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2559955yba; Mon, 6 May 2019 08:02:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyty0oL13u/OwxeOHryriSK07yXtq9gVc80PJj4MDcZP6+tCFaQmVAOT8pGtOcLWVb8W5hU X-Received: by 2002:a17:902:e407:: with SMTP id ci7mr32516909plb.219.1557154921355; Mon, 06 May 2019 08:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557154921; cv=none; d=google.com; s=arc-20160816; b=acov7NE7/x1+shcl+6UBHMdmKfFffroxSjvpQXC9DRYT/2DLlE21dcfwRC7WKtsfiu y/ZVQs9o7KjTzvbwp0dtC1xolQh2MQMTaxemFL2lLuPqfUe0wNrJ5n3Qx1Kl9mjpkIor qMKBXQLv7cudRQ9RCLL+14Y0s02xtNkK0isguBcP5xS90EO5hpmjVcIqjiFCFbhAiD2b I51RyZaryh58+kFFQ+ofNuDeVLulGHzKTrllCbzSSNIhCBUUpGlosAoENnWiLbrzIvt0 pmP+6RUWBT2ZAeUTArKOJAK7vm3fBaC8x6rgiN480tJ/wJy8lVktHr6wIuap7nRQtbRy 7VNQ== 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=YXM/smc4T4umzI+jUxmU6lw4FcdkVlGJsep+uepH/XA=; b=JYxlqeTzGFNDwBAdo6U5MipyMQOPVtSk85oqrjcEeuIJknM/JSAC9ckxZtMOJFosNI fwr1LK9lImDfmhjizPKTKdibDYdmbt8E389iBvYIGYreUIDj3EHUy8lhIKyQAYofs+Zj 1H7NpnNZwmkGFsgbZ9h01+cUr1Gm/aUEp6M8GVzzItQ3aASvaz7DCCbwjKijtj+GGBRk 042mWwm0vLtaC9zuKOvw3kKTxOFoSUyqiWj1wTH8eW88dgy1gFJtYYTPJuGPJTpELnaQ 8rYDOmSV+G0e9D1ttK/UlZcQY5bTzrG8uPND9rcInVPwUJejUndTeWuo/EjfWSTKOiuJ WLyQ== 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 b2si14663415pls.279.2019.05.06.08.01.42; Mon, 06 May 2019 08:02:01 -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 S1727654AbfEFPAk (ORCPT + 99 others); Mon, 6 May 2019 11:00:40 -0400 Received: from foss.arm.com ([217.140.101.70]:52768 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728391AbfEFOmF (ORCPT ); Mon, 6 May 2019 10:42:05 -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 B88B4A78; Mon, 6 May 2019 07:42:04 -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 5E56F3F575; Mon, 6 May 2019 07:42:03 -0700 (PDT) Date: Mon, 6 May 2019 15:42:00 +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: <20190506144200.z4s63nm7untol2tr@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190506095239.08577b3e@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 09:52, Steven Rostedt wrote: > On Mon, 6 May 2019 11:08:59 +0200 > Peter Zijlstra wrote: > > > These functions really should be called trace_*() > > > > Also; I _really_ hate how fat they are. Why can't we do simple straight > > forward things like: > > > > trace_pelt_cfq(cfq); > > trace_pelt_rq(rq); > > trace_pelt_se(se); > > > > And then have the thing attached to the event do the fat bits like > > extract the path and whatnot. > > I'd like to avoid functions called "trace_*" that are not trace events. > It's getting confusing when I see a "trace_*()" function and then go > look for the corresponding TRACE_EVENT() just to find out that one does > not exist. > > sched_trace_*() maybe? 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? Thanks -- Qais Yousef