aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2020-12-02 15:13:32 -0800
committerAndrii Nakryiko <[email protected]>2020-12-03 12:01:18 -0800
commitd6d418bd8f92aaa4c7c26d606188147c2ee0dae9 (patch)
treeed992bd637cd557b9fa76b204ef4a9ac01a6e7b6 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent9cf309c56f7910a81fbe053b6f11c3b1f0987b12 (diff)
libbpf: Cap retries in sys_bpf_prog_load
I've seen a situation, where a process that's under pprof constantly generates SIGPROF which prevents program loading indefinitely. The right thing to do probably is to disable signals in the upper layers while loading, but it still would be nice to get some error from libbpf instead of an endless loop. Let's add some small retry limit to the program loading: try loading the program 5 (arbitrary) times and give up. v2: * 10 -> 5 retires (Andrii Nakryiko) Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions