diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2023-09-05 18:46:56 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-09-08 18:42:19 +0300 |
| commit | 780aa8dfcb73f4703b1c4be11c21c8dca36502ad (patch) | |
| tree | cd1914df315c0b10386433d457cb011e354b9522 /scripts/gdb/linux/symbols.py | |
| parent | 0ee9808b0a211ba1e572073c6afe5897f8300b9c (diff) | |
| download | linux-780aa8dfcb73f4703b1c4be11c21c8dca36502ad.tar.xz | |
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 <oleg@redhat.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20230905154656.GA24950@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions
