diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-08-13 14:53:34 +0300 |
---|---|---|
committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2024-10-31 04:59:42 +0300 |
commit | da93dd931baa921ee31796e0cd6402d995e1e4fc (patch) | |
tree | 534ea8bd7c33841eda46629f4254992f70e04dbd /tools/perf/scripts/python/task-analyzer.py | |
parent | ce7f27dcd7e7721527648e27908e5200d1a3e3b0 (diff) | |
download | linux-da93dd931baa921ee31796e0cd6402d995e1e4fc.tar.xz |
kprobes: Cleanup collect_one_slot() and __disable_kprobe()
If kip->nused is not zero, collect_one_slot() return false, otherwise do
a lot of linked list operations, reverse the processing order to make the
code if nesting more concise. __disable_kprobe() is the same as well.
Link: https://lore.kernel.org/all/20240813115334.3922580-4-ruanjinjie@huawei.com/
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions