diff options
author | Yonghong Song <yhs@fb.com> | 2018-04-29 08:28:08 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-04-29 18:45:53 +0300 |
commit | c195651e565ae7f41a68acb7d4aa7390ad215de1 (patch) | |
tree | b11a7c5682239958cc2089fbbb95f626df7b5b7c /arch/powerpc/boot | |
parent | 5f4126327494c189767ca64b222abadb07c55e3d (diff) | |
download | linux-c195651e565ae7f41a68acb7d4aa7390ad215de1.tar.xz |
bpf: add bpf_get_stack helper
Currently, stackmap and bpf_get_stackid helper are provided
for bpf program to get the stack trace. This approach has
a limitation though. If two stack traces have the same hash,
only one will get stored in the stackmap table,
so some stack traces are missing from user perspective.
This patch implements a new helper, bpf_get_stack, will
send stack traces directly to bpf program. The bpf program
is able to see all stack traces, and then can do in-kernel
processing or send stack traces to user space through
shared map or bpf_perf_event_output.
Acked-by: Alexei Starovoitov <ast@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/powerpc/boot')
0 files changed, 0 insertions, 0 deletions