diff options
author | Kenny Yu <[email protected]> | 2022-01-24 10:54:01 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-01-24 19:59:27 -0800 |
commit | 376040e47334c6dc6a939a32197acceb00fe4acf (patch) | |
tree | 19b75a8c70bc27d8569ebdaf18079494a525bd82 /tools/testing/selftests/bpf/progs/bpf_iter_task.c | |
parent | b77fb25dcb342788d72ad7533163c34b8b823a1d (diff) |
bpf: Add bpf_copy_from_user_task() helper
This adds a helper for bpf programs to read the memory of other
tasks.
As an example use case at Meta, we are using a bpf task iterator program
and this new helper to print C++ async stack traces for all threads of
a given process.
Signed-off-by: Kenny Yu <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_iter_task.c')
0 files changed, 0 insertions, 0 deletions