Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp664133pxb; Thu, 31 Mar 2022 14:19:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIxAKpO1Due+j3+LsFu9r2t4yvYqZAsK0Sth+gRYDQsLb93aZ2aIJcGEwwj0wOV8OAdmYI X-Received: by 2002:a17:906:d542:b0:6e4:7f59:3a13 with SMTP id cr2-20020a170906d54200b006e47f593a13mr6540026ejc.563.1648761572878; Thu, 31 Mar 2022 14:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648761572; cv=none; d=google.com; s=arc-20160816; b=WRVTam9eAIlsCfLhVLA4jhZ3G2HX8HYL9TwT3bRyb8qXC+zDOLNWpSh6NyukrULaX0 jYBrN8vI/YGx1jOmmQgXNg83gwpy8txuXaLoog2AhZPGXDbzl+si1WswtPuYnIDT7MnN KwuRbA03QCMLLDctXvPcXQXZfx5m0XvhnWtuvNRCXZwB49YxK7V5wmIoDOC9lKj6Z+Dk ECJ2fMHygqxlcnuYcBIyCCQmUmfTd2A6/5Dpv3zCjvfPvmKwhBGNpHDfy+Re9gAbSv+N mDHBQQ8ujllYM4r/UsVU47Pq9ud3yX1qg6WNvaTTdsrC+Akq8+b929fnnw4f402kpjPP 19aw== 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=FKFwbC7B9n8010bK7h0u2QgbARv6msvgvXd9Y03khkE=; b=MiEX9oBNoC6jD4+8y/FL1uqaLIFp+1UYf3MaHvHTtRZe+sbYysMAkNIheFWmo/9Zvl vLqwdpkUEzVJChbTqQKivDvn9Q6keVy9BXfsvokp8yyfh3FEjE3j1IwZZSaJW9XGHKoO 3g12pL9kfxqmppZUIYrvllMOJ6DHFWx69PnD3/3l2684uTzoUH3cNCp61WWjoyhwuoim uaVi3jBGmQb/v3A+kjbDRv8zXRUp4jTYIz+TLLJk+bmz26n35v2KvQB66dwQ8M1T5X+R sSQ/uCABHAWtMejDSU1650pPFFyJoMLicePdCirnDXgQWPFDle3B9Aa66wVfGXD/goor woWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v26-20020a170906339a00b006e093565393si411104eja.496.2022.03.31.14.19.07; Thu, 31 Mar 2022 14:19:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbiCaRT1 (ORCPT + 99 others); Thu, 31 Mar 2022 13:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiCaRT0 (ORCPT ); Thu, 31 Mar 2022 13:19:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E93DFD14; Thu, 31 Mar 2022 10:17:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 51C96B8218F; Thu, 31 Mar 2022 17:17:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C98DC34110; Thu, 31 Mar 2022 17:17:34 +0000 (UTC) Date: Thu, 31 Mar 2022 13:17:32 -0400 From: Steven Rostedt To: Mathieu Desnoyers Cc: Masahiro Yamada , linux-kernel , Beau Belgrave , Masami Hiramatsu , linux-trace-devel , bpf , netdev , Alexei Starovoitov , Linus Torvalds , Michal Marek , ndesaulniers , Linux Kbuild mailing list Subject: Re: [PATCH] tracing: do not export user_events uapi Message-ID: <20220331131732.5e2305ee@gandalf.local.home> In-Reply-To: <602770698.200731.1648742848915.JavaMail.zimbra@efficios.com> References: <20220330201755.29319-1-mathieu.desnoyers@efficios.com> <20220330162152.17b1b660@gandalf.local.home> <20220331081337.07ddf251@gandalf.local.home> <602770698.200731.1648742848915.JavaMail.zimbra@efficios.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Mar 2022 12:07:28 -0400 (EDT) Mathieu Desnoyers wrote: > diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_user.c > index 8b3d241a31c2..823d7b09dcba 100644 > --- a/kernel/trace/trace_events_user.c > +++ b/kernel/trace/trace_events_user.c > @@ -18,7 +18,7 @@ > #include > #include > #include > -#include > +#include > #include "trace.h" > #include "trace_dynevent.h" > > Including will continue to work even when the header is > moved to uapi in the future. Actually, when I thought of this, I was thinking more of: diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_user.c index 846c27bc7aef..0f3aa855cf72 100644 --- a/kernel/trace/trace_events_user.c +++ b/kernel/trace/trace_events_user.c @@ -18,7 +18,11 @@ #include #include #include +#ifdef CONFIG_COMPILE_TEST +#include +#else #include +#endif #include "trace.h" #include "trace_dynevent.h" That way, when we take it out of broken state, it will fail to compile, and remind us to put it back into the uapi directory. -- Steve