From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [PATCH v6 bpf-next 08/11] bpf: introduce BPF_RAW_TRACEPOINT Date: Wed, 28 Mar 2018 10:06:53 -0400 Message-ID: <20180328100653.3dad40b9@gandalf.local.home> References: <20180327024706.2064725-1-ast@fb.com> <20180327130211.284c8924@gandalf.local.home> <20180327131143.4b83534c@gandalf.local.home> <20180327145824.602dfdec@gandalf.local.home> <20180327170438.77c0f8fd@gandalf.local.home> <563f7fa0-5fea-00d3-1eb3-fa00d8cf7e29@fb.com> <430531879.1792.1522192417816.JavaMail.zimbra@efficios.com> <1513083686.1804.1522197852512.JavaMail.zimbra@efficios.com> <34b9892d-c091-7b83-d8e8-79c0ff813140@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Mathieu Desnoyers , "David S. Miller" , Daniel Borkmann , Linus Torvalds , Peter Zijlstra , netdev , kernel-team , linux-api , Kees Cook To: Alexei Starovoitov Return-path: Received: from mail.kernel.org ([198.145.29.99]:33306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752725AbeC1OG5 (ORCPT ); Wed, 28 Mar 2018 10:06:57 -0400 In-Reply-To: <34b9892d-c091-7b83-d8e8-79c0ff813140@fb.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 27 Mar 2018 17:51:55 -0700 Alexei Starovoitov wrote: > Turned out it was in init.data section and got poisoned. > this fixes it: > @@ -258,6 +258,7 @@ > LIKELY_PROFILE() \ > BRANCH_PROFILE() \ > TRACE_PRINTKS() \ > + BPF_RAW_TP() \ > TRACEPOINT_STR() > > /* > @@ -585,7 +586,6 @@ > *(.init.rodata) \ > FTRACE_EVENTS() \ > TRACE_SYSCALLS() \ > - BPF_RAW_TP() \ > KPROBE_BLACKLIST() \ > ERROR_INJECT_WHITELIST() \ > MEM_DISCARD(init.rodata) \ > > and it works :) > I will clean few other nits I found while debugging and respin. Getting it properly working was an exercise left to the reader ;-) Sorry about that, I did a bit of copy and paste to get it working, and copied from code that did things a bit differently, so I massaged it by hand, and doing it quickly as I had other things to work on. -- Steve