android_kernel_sony_sdm845/include/uapi
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yonghong Song a89bce52d5 UPSTREAM: 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 be
delivered to any threads in the process.

We found a use case where sending the signal to the current
thread is more preferable.
  - A bpf program will collect the stack trace and then
    send signal to the user application.
  - The user application will add some thread specific
    information to the just collected stack trace for
    later analysis.

If bpf_send_signal() is used, user application will need
to check whether the thread receiving the signal matches
the thread collecting the stack by checking thread id.
If not, it will need to send signal to another thread
through pthread_kill().

This patch proposed a new helper bpf_send_signal_thread(),
which sends the signal to the thread corresponding to
the current kernel task. This way, user space is guaranteed that
bpf_program execution context and user space signal handling
context are the same thread.

Change-Id: Ie441a5e269cddad5b7786848d3891f6d863f20c7
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200115035002.602336-1-yhs@fb.com
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:26 +07:00
..
asm-generic BACKPORT: bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type 2026-05-15 17:59:13 +07:00
drm drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI 2021-09-27 05:59:33 -07:00
linux UPSTREAM: bpf: Add bpf_send_signal_thread() helper 2026-05-15 17:59:26 +07:00
media msm: vidc: add delta QP support for P and B frames in ROI 2021-01-26 22:32:47 -08:00
miniISP media: platform: Altek AL6100 driver release 2019-07-24 20:25:30 +08:00
misc uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30
mtd uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30
rdma Kbuild : Use no-export-headers to avoid exporting headers 2020-04-09 16:08:34 +05:30
scsi uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30
sound Merge branch 'android-4.9-q' of https://android.googlesource.com/kernel/common into lineage-20 2023-01-19 15:42:12 +01:00
video Kbuild : Use no-export-headers to avoid exporting headers 2020-04-09 16:08:34 +05:30
xen uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30