From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Desnoyers Subject: Re: [PATCH bpf-next] bpf, tracing: unbreak lttng Date: Mon, 26 Mar 2018 18:30:07 -0400 (EDT) Message-ID: <1523827268.612.1522103407744.JavaMail.zimbra@efficios.com> References: <20180326220845.678423-1-ast@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Daniel Borkmann , Linus Torvalds , Peter Zijlstra , rostedt , netdev , kernel-team , linux-api To: Alexei Starovoitov Return-path: Received: from mail.efficios.com ([167.114.142.138]:53984 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbeCZWaJ (ORCPT ); Mon, 26 Mar 2018 18:30:09 -0400 In-Reply-To: <20180326220845.678423-1-ast@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: ----- On Mar 26, 2018, at 6:08 PM, Alexei Starovoitov ast@kernel.org wrote: [...] > > #ifdef CONFIG_TRACEPOINTS > -void * > -for_each_kernel_tracepoint(void *(*fct)(struct tracepoint *tp, void *priv), > +void > +for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv), > void *priv); > +struct tracepoint *kernel_tracepoint_find_by_name(const char *name); > #else > -static inline void * > -for_each_kernel_tracepoint(void *(*fct)(struct tracepoint *tp, void *priv), > +static inline void > +for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv), > void *priv) > { > return NULL; > } This patch is not reverting to the old code properly. It introduces a static inline void function that returns NULL. Please compile-test with CONFIG_TRACEPOINTS=n before submitting a patch involving tracepoints. But this patch should not even be needed in the first place, because it partially reverts changes that were introduced in the bpf-next tree without any Acked-by from the tracing maintainers. I don't see any need to obfuscate the git log of tracepoint.{c,h}. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com