diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2020-02-25 03:53:09 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2020-04-25 01:16:35 +0300 |
commit | 3147d8aaa03eac0e68742621e8f05323459aa37d (patch) | |
tree | 5bc54e45c09ee095940960592ad9cdad794f91ec /tools/perf/scripts/python/sctop.py | |
parent | 0fb5ce62c5920b6e0a8a061f2fe80e0403281e10 (diff) | |
download | linux-3147d8aaa03eac0e68742621e8f05323459aa37d.tar.xz |
proc: Use PIDTYPE_TGID in next_tgid
Combine the pid_task and thes test has_group_leader_pid into a single
dereference by using pid_task(PIDTYPE_TGID).
This makes the code simpler and proof against needing to even think
about any shenanigans that de_thread might get up to.
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions