Re: [PATCH bpf-next] bpf: Fix bpf_prog_test_run_tracing for !CONFIG_NET

From
Alexei Starovoitov <hidden>
Date
2020-03-05 22:43:21
Also in
bpf, linux-security-module
Reply to
KP Singh, 2020-03-05
On Thu, Mar 05, 2020 at 11:01:27PM +0100, KP Singh wrote:
From: KP Singh <redacted>

test_run.o is not built when CONFIG_NET is not set and
bpf_prog_test_run_tracing being referenced in bpf_trace.o causes the
linker error:

ld: kernel/trace/bpf_trace.o:(.rodata+0x38): undefined reference to
 `bpf_prog_test_run_tracing'

Add a __weak function in bpf_trace.c to handle this.

Fixes: da00d2f117a0 ("bpf: Add test ops for BPF_PROG_TYPE_TRACING")
Signed-off-by: KP Singh <redacted>
Applied. Thanks
Thread (5 messages) 5 messages, 3 authors, last reply 2020-03-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help