]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing
authorNamhyung Kim <namhyung@kernel.org>
Sun, 27 Jun 2021 15:36:27 +0000 (08:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 Jun 2021 13:43:02 +0000 (15:43 +0200)
commit4ebb8648600c6015e3cf101629899c0627fdc95b
tree7ffb257f081eb1f6bad9f54c86635f01afbcc438
parent9b241a1c74508319d08f997e3d87887d3c53c7d7
bpf: Allow bpf_get_current_ancestor_cgroup_id for tracing

Allow the helper to be called from tracing programs. This is needed to
handle cgroup hiererachies in the program.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210627153627.824198-1-namhyung@kernel.org
kernel/trace/bpf_trace.c