aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2022-11-21 02:56:10 +0530
committerAlexei Starovoitov <[email protected]>2022-11-20 15:38:28 -0800
commite181d3f143f7957a73c8365829249d8084602606 (patch)
tree0fed469c8031cfc1b2b14489c804b901f204eb0e /tools/perf/scripts/python/net_dropmonitor.py
parentefc1970d683fa7c53a2bc561d40436bf11a18dc0 (diff)
bpf: Disallow bpf_obj_new_impl call when bpf_mem_alloc_init fails
In the unlikely event that bpf_global_ma is not correctly initialized, instead of checking the boolean everytime bpf_obj_new_impl is called, simply check it while loading the program and return an error if bpf_global_ma_set is false. Suggested-by: Alexei Starovoitov <[email protected]> Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions