You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problems when using bpf_strncmp, I have a simple ebpf program using BCC, that program uses bpf_strncmp to compare the task name to a string.
So I do the following:
b.attach_raw_tracepoint(tp="sys_enter", fn_name="hello")
File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 1061, in attach_raw_tracepoint
fn = self.load_func(fn_name, BPF.RAW_TRACEPOINT)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 526, in load_func
raise Exception("Failed to load BPF program %s: %s" %
Exception: Failed to load BPF program b'hello': Permission denied
In the ebpf compiled code I have the following:
R3 type=fp expected=map_value
However, the bpf_strncmp takes char * as mentioned in the doc so I don't understand the problem
The text was updated successfully, but these errors were encountered:
Hello,
I'm having problems when using bpf_strncmp, I have a simple ebpf program using BCC, that program uses bpf_strncmp to compare the task name to a string.
So I do the following:
If I use this I get a permission denied error that I can't seem to understand while, if I use
strncmp
it works as expectedThe error:
In the ebpf compiled code I have the following:
However, the
bpf_strncmp
takes char * as mentioned in the doc so I don't understand the problemThe text was updated successfully, but these errors were encountered: