-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use funclatency #3752
Comments
python3 funclatency.py -p 7219 -u do_nanosleep |
You need to rebuild and install BCC. |
How to rebuild BCC? |
After rebuilding and installing bcc, I received the same error when running funclatency.py in Pycharm.
I used these commands to run funclatency.py as root in Pycharm: cp /usr/bin/python3 ~/python35-setcap If I start funclatency.py with sudo funclatency-bpfcc c: read from the terminal, it works. |
For someone who encountered the same error: #3911 (comment) may help |
/virtual/main.c:43:9: error: no member named 'atomic_increment' in 'struct avg_table_t'
avg.atomic_increment(lat, delta);
~~~ ^
/virtual/main.c:44:9: error: no member named 'atomic_increment' in 'struct avg_table_t'
avg.atomic_increment(cnt);
~~~ ^
/virtual/main.c:47:10: error: no member named 'atomic_increment' in 'struct dist_table_t'
dist.atomic_increment(bpf_log2l(delta));
~~~~ ^
3 errors generated.
Traceback (most recent call last):
File "funclatency.py", line 317, in
b = BPF(text=bpf_text)
File "/usr/lib/python3.6/site-packages/bcc/init.py", line 347, in init
raise Exception("Failed to compile BPF module %s" % (src_file or ""))
Exception: Failed to compile BPF module
The text was updated successfully, but these errors were encountered: