Hi I am using amazon linux and I dowloaded bcc as "Fedora - Binary" per
https://github.com/iovisor/bcc/blob/master/INSTALL.md.

But I got error "Failed to load BPF program kprobe__sys_clone" when I run
hello_world.py (see attached)

Can you pls shed some lights what s wrong with my settings?
thanks
Jeffrey

   1.

   OS version:
   uname -a
   Linux ip-172-31-1-170 4.4.23-31.54.amzn1.x86_64 #1
   <https://github.com/iovisor/bcc/issues/1> SMP Tue Oct 18 22:02:09 UTC
   2016 x86_64 x86_64 x86_64 GNU/Linux
   2.

   and my OS compilation flags are:
   grep BPF /boot/config-4.4.23-31.54.amzn1.x86_64
   CONFIG_BPF=y
   CONFIG_BPF_SYSCALL=y
   CONFIG_NETFILTER_XT_MATCH_BPF=m
   CONFIG_NET_CLS_BPF=m
   CONFIG_NET_ACT_BPF=m
   CONFIG_BPF_JIT=y
   CONFIG_HAVE_BPF_JIT=y
   CONFIG_BPF_EVENTS=y


   1. Errors got
   ./hello_world.py
   bpf: Invalid argument

Traceback (most recent call last):
File "./hello_world.py", line 11, in
BPF(text='int kprobe__sys_clone(void *ctx) { bpf_trace_printk("Hello,
World!\n"); return 0; }').trace_print()
File "/usr/lib/python2.7/site-packages/bcc/*init*.py", line 247, in *init*
self._trace_autoload()
File "/usr/lib/python2.7/site-packages/bcc/*init*.py", line 845, in
_trace_autoload
fn = self.load_func(func_name, BPF.KPROBE)
File "/usr/lib/python2.7/site-packages/bcc/*init*.py", line 290, in
load_func
raise Exception("Failed to load BPF program %s: %s" % (func_name, errstr))
Exception: Failed to load BPF program kprobe__sys_clone: Invalid argument
_______________________________________________
iovisor-dev mailing list
[email protected]
https://lists.iovisor.org/mailman/listinfo/iovisor-dev

Reply via email to