aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2021-11-23 05:27:32 +0530
committerAndrii Nakryiko <[email protected]>2021-11-30 15:48:14 -0800
commit0270090d396a8e7e7f42adae13fdfa48ffb85144 (patch)
treec0dd5b0d7e0ee3bd07d2e6dea0f1cbf6e2a980ac /tools/perf/scripts/python/compaction-times.py
parentd4efb170861827290f7f571020001a60d001faaf (diff)
libbpf: Avoid double stores for success/failure case of ksym relocations
Instead, jump directly to success case stores in case ret >= 0, else do the default 0 value store and jump over the success case. This is better in terms of readability. Readjust the code for kfunc relocation as well to follow a similar pattern, also leads to easier to follow code now. Suggested-by: Alexei Starovoitov <[email protected]> Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions