diff options
author | Jonathan Lemon <bsd@fb.com> | 2020-12-18 19:50:31 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-12-24 02:04:53 +0100 |
commit | a61daaf351da7c8493f2586437617d60c24350b0 (patch) | |
tree | 423747adcf3211c9b13bef6bd7b165b03b315ff8 /include | |
parent | bpf: Save correct stopping point in file seq iteration (diff) | |
download | linux-a61daaf351da7c8493f2586437617d60c24350b0.tar.xz linux-a61daaf351da7c8493f2586437617d60c24350b0.zip |
bpf: Use thread_group_leader()
Instead of directly comparing task->tgid and task->pid, use the
thread_group_leader() helper. This helps with readability, and
there should be no functional change.
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201218185032.2464558-3-jonathan.lemon@gmail.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions