netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about bpf.test_progs.fail
@ 2018-03-12  1:52 lst
  2018-03-13 11:16 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: lst @ 2018-03-12  1:52 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, netdev

hi, I have a question need your help.

I get failure "libbpf: incorrect bpf_call opcode" when running below two 
cases on v4.16-rc3:
---------------------
test_l4lb_all();
     const char *file2 = "./test_l4lb_noinline.o";

test_xdp_noinline();
---------------------

and from the file test_libbpf.sh, it seems libbpf can't load noinline 
functions.
---------------------
# TODO: fix libbpf to load noinline functions
# [warning] libbpf: incorrect bpf_call opcode
#libbpf_open_file test_l4lb_noinline.o
---------------------

They all point to bpf_object__open(filename) at last.
Here(test_progs) test "test_l4lb_noinline.o" but test_libbpf.sh don't.

So, I guess there must be some setting (like certain kernel kconfig or 
compiling) to make the test work.

Can you tell me how can I make this test(test_progs) pass?

I shall appreciate a reply at your earliest convenience.

thanks,
Shaoting Lei

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-13 11:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12  1:52 question about bpf.test_progs.fail lst
2018-03-13 11:16 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).