Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp605194pxk; Thu, 24 Sep 2020 13:35:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybFJ4oG+lkU0cZEUsUC+VNIH1hA8gsjceI0fFE+GqvVbtcj3/BwN7yM5uYceA53o3p5iNR X-Received: by 2002:a05:6402:17b6:: with SMTP id j22mr525870edy.377.1600979725049; Thu, 24 Sep 2020 13:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600979725; cv=none; d=google.com; s=arc-20160816; b=fkmlETRQ/P2TFWB0xN6Tss1JKN19v2mEWUao+m8OJN0YlMkZMjUy7nQniWj0ZAI8tf Yec8NHU0rQeh876/F1/SNUjZOzlWpu8r8bzC4r0SkoUmNRwF+KAgR97D7YkVlIXj4L6y KRYd6AJPYwAFqP6+i2rMUN7Vt6kFEAS6GoV0qpCNbg1rcZODDNhjtBCWuvGLCB+IMuRp 3EcAGuFafX3cHrV/1nh8Q8Curclva22nyCN970yTCHPXbxUdAwXwdj2FFi72acgoKgHX ezeNXK14hOzhmROQ3Fr5/Vu4GBViSKipE+U99GVRH0jABEmNe5Ys+UfVsaNxTah1pzf+ WZzg== 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=4p4bl3zFaUGB7CylvMv3cOf0XFfSrjaC3UE6+0r+04E=; b=suZr8dc9KK+b0lxCLYmY6PMMavmTYlfXLC76ekOQDoQrE9tBzClHM3zfrOjUOc4i60 Q5l6TXkoMSf9Iur0G1PiGBK5027Ke+JYrnjXx8TZZwwk1V3osywERwOBXtYJCNlWmSoH leOlJ2iwFnFDKcN6Ofgp88jwI6dv8eB6N6C55xtCvrW/p93yNyFNgHeEaukiXq9i3/ED wM2zgc0hJaDHzEBkQXajmNlsTWdkW93VylbTb20Xmx7KFtH1I7Wu+Q54tnm08hO12DfB 2m3CBHTIs628aD7TBSWJiKFBQWGGyuNRwCUVpz0nhTEQYSQWbmU/JlxPPmqvjNb0olAL jPPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si368701edq.395.2020.09.24.13.35.01; Thu, 24 Sep 2020 13:35:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726414AbgIXUdf (ORCPT + 99 others); Thu, 24 Sep 2020 16:33:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:39294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbgIXUdf (ORCPT ); Thu, 24 Sep 2020 16:33:35 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 658892399A; Thu, 24 Sep 2020 20:33:33 +0000 (UTC) Date: Thu, 24 Sep 2020 16:33:31 -0400 From: Steven Rostedt To: Mathieu Desnoyers Cc: linux-kernel , Yafang Shao , Axel Rasmussen , Andrew Morton , Vlastimil Babka , Michel Lespinasse , Daniel Jordan , Davidlohr Bueso , linux-mm , Ingo Molnar , Joonsoo Kim Subject: Re: [PATCH 1/2] tracepoints: Add helper to test if tracepoint is enabled in a header Message-ID: <20200924163331.0080b943@oasis.local.home> In-Reply-To: <1430794518.69084.1600979254425.JavaMail.zimbra@efficios.com> References: <20200924170928.466191266@goodmis.org> <20200924171846.993048030@goodmis.org> <2006335081.68212.1600969345189.JavaMail.zimbra@efficios.com> <20200924143025.58dc3c1f@gandalf.local.home> <166273261.68446.1600974510284.JavaMail.zimbra@efficios.com> <20200924153517.73f5f257@oasis.local.home> <221547373.69067.1600977935633.JavaMail.zimbra@efficios.com> <20200924161328.760f5e79@oasis.local.home> <1430794518.69084.1600979254425.JavaMail.zimbra@efficios.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; 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 Thu, 24 Sep 2020 16:27:34 -0400 (EDT) Mathieu Desnoyers wrote: > I'd be a bit more specific: so far, the msr.h use-case requires to include > directly tracepoint-defs.h and use a tracepoint_enabled() macro defined there. > > Other less "core" header use-cases could still include tracepoint.h, as long as > there is no circular dependency. Well, I'll keep tracepoint-defs.h for the msr.h case, and I could see if tracepoint.h is good enough for the other cases. But does it really matter, if we only need what is in tracepoint-defs.h? Why add something that may cause issues in the future? -- Steve