bpf: add bpf_send_signal_thread() helper
Status from this message: Applied. Thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesApplied
- v22 patches 1 replySuperseded
- v12 patches 4 repliesSuperseded
Changes in v3 from the cover letter
- More simplification for skeleton codes by removing not-needed mmap code and redundantly created tracepoint link.
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: add bpf_send_signal_thread() helperinclude/ kernel/ tools/ | +58 | 0 replies | |
| 2/2 | tools/bpf: add self tests for bpf_send_signal_thread()tools/ tools/ | +73 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Andrii Nakryiko |
|---|---|
| Series | A-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next v3 0/2] bpf: add bpf_send_signal_thread() helper
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.
Yonghong Song (2):
bpf: add bpf_send_signal_thread() helper tools/bpf: add self tests for bpf_send_signal_thread()
include/uapi/linux/bpf.h | 19 ++- kernel/trace/bpf_trace.c | 27 +++- tools/include/uapi/linux/bpf.h | 19 ++- .../selftests/bpf/prog_tests/send_signal.c | 128 +++++++----------- .../bpf/progs/test_send_signal_kern.c | 51 +++---- 5 files changed, 131 insertions(+), 113 deletions(-)
Signature · 1 line
2.17.1