Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp594670pxk; Thu, 24 Sep 2020 13:16:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoGNkzCX5YiXlj1n5JjiJIQkZSgyTz3qDJGboZzsMRP2TZcectPI1MdloQ15k+Jn/9sL9k X-Received: by 2002:a05:6402:1356:: with SMTP id y22mr553692edw.110.1600978568907; Thu, 24 Sep 2020 13:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600978568; cv=none; d=google.com; s=arc-20160816; b=JZnw0WLISh8UbQdSydvXYf8TaBUlgjExQI9VqPfkpxeLj2XMG5USv0DqFEBxPdzuWR xGTeDZ3PBAhRfa42SjS0TnF6RXJqO//gGDmNM3H9KMHv9ajq0aGhMhYcXK/+JbDFQfDI Co9nsyC2mZ8ZWP10EqaXJ+aJlgT6Gn1TS0evLkNwpVKYFISoTXF8HY/0m763baiKzORb BPLmJA4e1Yt1riWl0L35wgHqrZIw27qyBdxrWQTM9qlshr5tRHnC/DN9tnRIZZo58vs+ uUGc71xfK+jYAcqd30EfUBX5uQxfGidPbdhEDuMZOlPAU5iXzH5QXnWyTOKk2C0ObhxD DoEQ== 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=6TqzrHTTnCIZ5m1nr3763qXjsRz1Xifn5u+NppOkhM4=; b=wpLrVOztC9cBG/qsv7Xcw5r2nOtUxR8jltcJdP2AmcSwuJDz17BVWr67KcFUpk50Y3 zRM2dcsZa5JPRLJXsin7EbRiEUqLdKwdqteSxdb1uBKzayJOU6PEmCurvn44rK+Xyu8s KHabhlCZK8IF8TWxHJx913Cha3WXvPlw77e/EOmxhhszpA0nRAYrxMg4UMYjcuHHq9Yv lT0S4b/K3hMSZvGCu+9O5i337pkelsU4aLbiD/P1igSk65IbvlAEyvnVTsXoFGNrXYOF 1JjOxCLOvvCQxflIPVlsd8pu7IsswnYkZzE0CnnXlKlHEXG624UfKYE3YsR2K/zr/uiU Bt6A== 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 b6si420955eja.565.2020.09.24.13.15.45; Thu, 24 Sep 2020 13:16:08 -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 S1726350AbgIXUNd (ORCPT + 99 others); Thu, 24 Sep 2020 16:13:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:58220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725208AbgIXUNd (ORCPT ); Thu, 24 Sep 2020 16:13:33 -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 375BD23899; Thu, 24 Sep 2020 20:13:31 +0000 (UTC) Date: Thu, 24 Sep 2020 16:13:28 -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: <20200924161328.760f5e79@oasis.local.home> In-Reply-To: <221547373.69067.1600977935633.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> 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:05:35 -0400 (EDT) Mathieu Desnoyers wrote: > If headers which happens to be included by include/trace/events/ headers are > the issue, and they happen to only be needed by CREATE_TRACE_PROBES, then we > should consider wrapping those #include with #ifdef CREATE_TRACE_PROBES guards. Well, we are at a point you can't even use preempt_disable(). Whatever wants to use this tracepoint_enabled() macro, is going to have to include something that doesn't include tracepoint.h. -- Steve