summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCarlos Neira <cneirabustos@gmail.com>2020-03-04 23:41:56 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-03-13 03:33:11 +0300
commitb4490c5c4e023f09b7d27c9a9d3e7ad7d09ea6bf (patch)
tree2a1bcba2ff5a85b3fb0e0013b01ac25eef4cc6fa /scripts
parent1e2328e762548c7d17b7ba8ded9f409d05710dd1 (diff)
downloadlinux-b4490c5c4e023f09b7d27c9a9d3e7ad7d09ea6bf.tar.xz
bpf: Added new helper bpf_get_ns_current_pid_tgid
New bpf helper bpf_get_ns_current_pid_tgid, This helper will return pid and tgid from current task which namespace matches dev_t and inode number provided, this will allows us to instrument a process inside a container. Signed-off-by: Carlos Neira <cneirabustos@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20200304204157.58695-3-cneirabustos@gmail.com
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bpf_helpers_doc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/bpf_helpers_doc.py b/scripts/bpf_helpers_doc.py
index cebed6fb5bbb..c1e2b5410faa 100755
--- a/scripts/bpf_helpers_doc.py
+++ b/scripts/bpf_helpers_doc.py
@@ -435,6 +435,7 @@ class PrinterHelpers(Printer):
'struct bpf_fib_lookup',
'struct bpf_perf_event_data',
'struct bpf_perf_event_value',
+ 'struct bpf_pidns_info',
'struct bpf_sock',
'struct bpf_sock_addr',
'struct bpf_sock_ops',