]> Git Repo - linux.git/commit
bpf: Add task and task/file iterator targets
authorYonghong Song <[email protected]>
Sat, 9 May 2020 17:59:11 +0000 (10:59 -0700)
committerAlexei Starovoitov <[email protected]>
Sun, 10 May 2020 00:05:26 +0000 (17:05 -0700)
commiteaaacd23910f2d7c4b22d43f591002cc217d294b
treed7c73d5da65294b3049c8c121a7486994de226a1
parent138d0be35b141e09f6b267c6ae4094318d4e4491
bpf: Add task and task/file iterator targets

Only the tasks belonging to "current" pid namespace
are enumerated.

For task/file target, the bpf program will have access to
  struct task_struct *task
  u32 fd
  struct file *file
where fd/file is an open file for the task.

Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
kernel/bpf/Makefile
kernel/bpf/task_iter.c [new file with mode: 0644]
This page took 0.053762 seconds and 4 git commands to generate.