aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2024-01-04 08:57:44 -0800
committerAlexei Starovoitov <[email protected]>2024-01-04 10:18:14 -0800
commit9ddf872b47e3ac8f27dbfc4a4737a976c7588de6 (patch)
tree3cbc51ba9cbb22d6bcb1deb127146fadf31c260e /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentc040e902b07e946ff73e81d4abb4347d2c0b6044 (diff)
bpf: Remove unnecessary cpu == 0 check in memalloc
After merging the patch set [1] to reduce memory usage for bpf_global_percpu_ma, Alexei found a redundant check (cpu == 0) in function bpf_mem_alloc_percpu_unit_init() ([2]). Indeed, the check is unnecessary since c->unit_size will be all NULL or all non-NULL for all cpus before for_each_possible_cpu() loop. Removing the check makes code less confusing. [1] https://lore.kernel.org/all/[email protected]/ [2] https://lore.kernel.org/all/[email protected]/ Signed-off-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions