Commit c8bc41e
libbpf: Support repeated legacy kprobes on same function
If repeated legacy kprobes on same function in one process,
libbpf will register using the same probe name and got -EBUSY
error. So append index to the probe name format to fix this
problem.
Co-developed-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Qiang Wang <wangqiang.wq.frank@bytedance.com>
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>1 parent 856ac8e commit c8bc41e
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9916 | 9916 | | |
9917 | 9917 | | |
9918 | 9918 | | |
9919 | | - | |
| 9919 | + | |
| 9920 | + | |
| 9921 | + | |
| 9922 | + | |
9920 | 9923 | | |
9921 | 9924 | | |
9922 | 9925 | | |
| |||
0 commit comments