aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2020-01-15 11:44:51 -0800
committerAlexei Starovoitov <ast@kernel.org>2020-01-15 11:46:32 -0800
commit5640a771d7971412049d1934d2d030edfdd1c28e (patch)
treee68ec27387482ff400e4f7b7212eae6f6941e6ac /tools/lib/bpf/libbpf.c
parentxsk: Support allocations of large umems (diff)
parenttools/bpf: Add self tests for bpf_send_signal_thread() (diff)
downloadlinux-dev-5640a771d7971412049d1934d2d030edfdd1c28e.tar.xz
linux-dev-5640a771d7971412049d1934d2d030edfdd1c28e.zip
Merge branch 'bpf_send_signal_thread'
Yonghong Song says: ==================== Commit 8b401f9ed244 ("bpf: implement bpf_send_signal() helper") added helper bpf_send_signal() which permits bpf program to send a signal to the current process. The signal may send to any thread of the process. This patch implemented a new helper bpf_send_signal_thread() to send a signal to the thread corresponding to the kernel current task. This helper can simplify user space code if the thread context of bpf sending signal is needed in user space. Please see Patch #1 for details of use case and kernel implementation. Patch #2 added some bpf self tests for the new helper. Changelogs: v2 -> v3: - More simplification for skeleton codes by removing not-needed mmap code and redundantly created tracepoint link. v1 -> v2: - More description for the difference between bpf_send_signal() and bpf_send_signal_thread() in the uapi header bpf.h. - Use skeleton and mmap for send_signal test. ==================== Acked-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions