Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp575862pxk; Thu, 24 Sep 2020 12:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBVFUTT1xQhKtEHIhhv9v4YCLwziSSLjE/Oy7EOYB55N+KpGNMTseF1Bk2kbsBFcsEXF1w X-Received: by 2002:a05:6402:18d:: with SMTP id r13mr360280edv.267.1600976525567; Thu, 24 Sep 2020 12:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600976525; cv=none; d=google.com; s=arc-20160816; b=peU+mstXBzOCUASekk77VembnxwKibPReBYmFW8X1n1UaDUmcizgrcdtcA2fwuMYdE K3zf2NzfDOI1/IqVARduHH9Bqf3MW5jK3h//VBHMMtIO1F4wqtetVQsyBEYB/lEM0q4Z 692ossr6ybKeZnIS3BLNEpoK2AAWbwkXOQ0gGyzpBZXbbVSx34UzKUoH6JphYFVwRozd ZRSm1vYqMFP3qdSsUcLQD0BrFDWJVFSQOBIfbXdEgTEKeD8X2sa2zf/3W0s9svxHPBds TVrgOi6Yt1C/wWzwC9qF7NPUj5qjGyF6bKqH/MUoE0Ucnng23GUUxS2Ki9uEL6jACEFs lJGg== 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=DSqJxW9ZHj5Rtn+Jcc9USmA3vF3Da2CcQpuOTQwta4g=; b=vuW11IBSn0AGWG5mS4YD7IdRJXdl3qg9xXWEB5q2JVCKoviq+G/xGPzIAZCv9mUx0U DBBmyQiJ/1yHWsK68wcMhrqTX4m5+ktXkq518CmnTYWwX2D1Pk6XkhRJ+ieu94WsNB3G 2PwW/rYXe/l0Fr5RBG59XUIigm9mxYVoMEDmXRiu3EHx2+mfpYEFMDqlD1ay8BGm0B4R l9agxtb8oyTqbgSsI2Pe8PD5a7uhksQZS2Ss/qzj76ArDMQD58BHxa08flrruptDRb0Q JRtrG+yEnFJwpmGSLjI/OT3RjfmBou/65xLyITrXcx8bat8naktIiLVTvwrPbGMvJBbV 8NVw== 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 c15si273861eds.227.2020.09.24.12.41.42; Thu, 24 Sep 2020 12:42:05 -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 S1726281AbgIXTkN convert rfc822-to-8bit (ORCPT + 99 others); Thu, 24 Sep 2020 15:40:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:59624 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725208AbgIXTkN (ORCPT ); Thu, 24 Sep 2020 15:40:13 -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 EB3F92220D; Thu, 24 Sep 2020 19:40:11 +0000 (UTC) Date: Thu, 24 Sep 2020 15:40:09 -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: <20200924154009.4b45d56e@oasis.local.home> In-Reply-To: <20200924153517.73f5f257@oasis.local.home> 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> 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=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 Sep 2020 15:35:17 -0400 Steven Rostedt wrote: > > I'm ok with tracepoint_enabled(). However, I would have placed it in > > tracepoint.h rather than tracepoint-defs.h, and we should figure out > > why people complain that tracepoint.h is including headers too > > eagerly. > > I could see if it would work in tracepoints.h. > > It might. I was just being extra cautious. Well that blew up quick! Try using tracepoint.h in include/linux/page_ref.h and arch/x86/include/asm/msr.h and see what happens. CC arch/x86/kernel/asm-offsets.s In file included from /work/git/linux-trace.git/include/linux/srcu.h:20, from /work/git/linux-trace.git/include/linux/tracepoint.h:16, from /work/git/linux-trace.git/arch/x86/include/asm/msr.h:68, from /work/git/linux-trace.git/arch/x86/include/asm/processor.h:22, from /work/git/linux-trace.git/arch/x86/include/asm/cpufeature.h:5, from /work/git/linux-trace.git/arch/x86/include/asm/thread_info.h:53, from /work/git/linux-trace.git/include/linux/thread_info.h:38, from /work/git/linux-trace.git/arch/x86/include/asm/preempt.h:7, from /work/git/linux-trace.git/include/linux/preempt.h:78, from /work/git/linux-trace.git/include/linux/spinlock.h:51, from /work/git/linux-trace.git/include/linux/mmzone.h:8, from /work/git/linux-trace.git/include/linux/gfp.h:6, from /work/git/linux-trace.git/include/linux/slab.h:15, from /work/git/linux-trace.git/include/linux/crypto.h:20, from /work/git/linux-trace.git/arch/x86/kernel/asm-offsets.c:9: /work/git/linux-trace.git/include/linux/rcupdate.h: In function ‘rcu_read_lock_sched’: /work/git/linux-trace.git/include/linux/rcupdate.h:740:2: error: implicit declaration of function ‘preempt_disable’ [-Werror=implicit-function-declaration] 740 | preempt_disable(); | ^~~~~~~~~~~~~~~ /work/git/linux-trace.git/include/linux/rcupdate.h: In function ‘rcu_read_lock_sched_notrace’: /work/git/linux-trace.git/include/linux/rcupdate.h:750:2: error: implicit declaration of function ‘preempt_disable_notrace’; did you mean ‘paravirt_disable_iospace’? [-Werror=implicit-function-declaration] 750 | preempt_disable_notrace(); | ^~~~~~~~~~~~~~~~~~~~~~~ | paravirt_disable_iospace /work/git/linux-trace.git/include/linux/rcupdate.h: In function ‘rcu_read_unlock_sched’: /work/git/linux-trace.git/include/linux/rcupdate.h:765:2: error: implicit declaration of function ‘preempt_enable’ [-Werror=implicit-function-declaration] 765 | preempt_enable(); | ^~~~~~~~~~~~~~ /work/git/linux-trace.git/include/linux/rcupdate.h: In function ‘rcu_read_unlock_sched_notrace’: /work/git/linux-trace.git/include/linux/rcupdate.h:772:2: error: implicit declaration of function ‘preempt_enable_notrace’ [-Werror=implicit-function-declaration] 772 | preempt_enable_notrace(); | ^~~~~~~~~~~~~~~~~~~~~~ -- Steve