diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-12-06 03:24:15 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-12-09 17:50:26 +0300 |
commit | 636666a1c73313a0cc9a0a6671c29e2d6ebe16fb (patch) | |
tree | 656ac1ddb331d8b00bce7898d7609907db809d40 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2ff913ab3f472321ac1931b663314edd6c211a0c (diff) | |
download | linux-636666a1c73313a0cc9a0a6671c29e2d6ebe16fb.tar.xz |
uprobes: Decouple return_instance list traversal and freeing
free_ret_instance() has two unrelated responsibilities: actually
cleaning up return_instance's resources and freeing memory, and also
helping with utask->return_instances list traversal by returning the
next alive pointer.
There is no reason why these two aspects have to be mixed together, so
turn free_ret_instance() into void-returning function and make callers
do list traversal on their own.
We'll use this simplification in the next patch that will guarantee that
to-be-freed return_instance isn't reachable from utask->return_instances
list.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20241206002417.3295533-3-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions