[PATCH bpf-next v2 0/2] Implement mechanism to signal other threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This set implements a kfunc called bpf_send_signal_remote() that is similar
to sigqueue() as it can send a signal along with a cookie to a thread or
thread group.

The send_signal selftest has been updated to also test this new kfunc under
all contexts.

Changes in v2:
v1: https://lore.kernel.org/bpf/20240724113944.75977-1-puranjay@xxxxxxxxxx/
- Convert to a kfunc
- Add mechanism to send a cookie with the signal.

Puranjay Mohan (2):
  bpf: implement bpf_send_signal_remote() kfunc
  selftests/bpf: Augment send_signal test with remote signaling

 kernel/trace/bpf_trace.c                      |  78 +++++++++-
 .../selftests/bpf/prog_tests/send_signal.c    | 133 +++++++++++++-----
 .../bpf/progs/test_send_signal_kern.c         |  35 ++++-
 3 files changed, 207 insertions(+), 39 deletions(-)

-- 
2.40.1





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux