Why omitting pid in the perf_event_open API #4673
Unanswered
0x161e-swei
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Not sure why it is omited in the first place. If you have such requirements, PR is welcome. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that in src/python/bcc/table.py, function
open_perf_event
does not expose thepid
parameter in the API. Similarly in src/cc/api/BPF.cc, functionopen_perf_event
does not expose thepid
parameter in the API. However, in the src/cc/libbpf.c source code,bpf_perf_open_event
offers thepid
in its parameters.What was the reason behind not exposing the
pid
to the bcc pyhton or cc API?Beta Was this translation helpful? Give feedback.
All reactions