diff options
author | Oleg Nesterov <[email protected]> | 2023-09-05 17:46:56 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-09-08 08:42:19 -0700 |
commit | 780aa8dfcb73f4703b1c4be11c21c8dca36502ad (patch) | |
tree | cd1914df315c0b10386433d457cb011e354b9522 /tools/perf/scripts/python/gecko.py | |
parent | 0ee9808b0a211ba1e572073c6afe5897f8300b9c (diff) |
bpf: task_group_seq_get_next: simplify the "next tid" logic
Kill saved_tid. It looks ugly to update *tid and then restore the
previous value if __task_pid_nr_ns() returns 0. Change this code
to update *tid and common->pid_visiting once before return.
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-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/gecko.py')
0 files changed, 0 insertions, 0 deletions