diff options
| author | Maciej Fijalkowski <[email protected]> | 2019-02-01 22:42:30 +0100 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-02-01 23:37:51 +0100 |
| commit | 3b7a8ec2dec3e408288dbc80b8aef25df20ba119 (patch) | |
| tree | 234d9207292e271029c3615016f5625e05d3b5d0 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 50db9f0731889b9f3839cab5f44163733eb44f04 (diff) | |
samples/bpf: Check the prog id before exiting
Check the program id within the signal handler on polling xdp samples
that were previously converted to libbpf usage. Avoid the situation of
unloading the program that was not attached by sample that is exiting.
Handle also the case where bpf_get_link_xdp_id didn't exit with an error
but the xdp program was not found on an interface.
Reported-by: Michal Papaj <[email protected]>
Reported-by: Jakub Spizewski <[email protected]>
Signed-off-by: Maciej Fijalkowski <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions