leds: trigger: legtrig-bpf: Add ledtrig-bpf trigger
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 2 repliesIn review
- v13 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Change kfunc to trigger based on LED name.
- Fix kfunc registration of BPF_PROG_TYPE_UNSPEC.
- Use new kfunc helpers off bpf-next branch.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | leds: trigger: legtrig-bpf: Add ledtrig-bpf triggerdrivers/ drivers/ drivers/ | +84 | 1 reply | |
| 2/3 | selftests/bpf: Add selftests for bpf led programstools/ tools/ | +33 | 0 replies | |
| 3/3 | leds: trigger: Add documentation for ledtrig-bpfDocumentation/ Documentation/ | +14 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] leds: trigger: legtrig-bpf: Add ledtrig-bpf trigger
This patch set adds a led trigger that interfaces with the bpf subsystem. It allows for BPF programs to control LED activity using bpf kfuncs. This functionality is useful in giving users a physical indication that a BPF program has performed an operation such as handling a packet or probe point.
V1: https://lore.kernel.org/bpf/[email protected]/
Changes in V2:
- Change kfunc to trigger based on LED name.
- Fix kfunc registration of BPF_PROG_TYPE_UNSPEC.
- Use new kfunc helpers off bpf-next branch.
Daniel Hodges (3):
leds: trigger: legtrig-bpf: Add ledtrig-bpf trigger selftests/bpf: Add selftests for bpf led programs
leds: trigger: Add documentation for ledtrig-bpf
Documentation/leds/index.rst | 1 + Documentation/leds/ledtrig-bpf.rst | 13 ++++ drivers/leds/trigger/Kconfig | 10 +++ drivers/leds/trigger/Makefile | 1 + drivers/leds/trigger/ledtrig-bpf.c | 73 +++++++++++++++++++ tools/testing/selftests/bpf/config | 1 + .../testing/selftests/bpf/progs/ledtrig_bpf.c | 32 ++++++++ 7 files changed, 131 insertions(+) create mode 100644 Documentation/leds/ledtrig-bpf.rst create mode 100644 drivers/leds/trigger/ledtrig-bpf.c create mode 100644 tools/testing/selftests/bpf/progs/ledtrig_bpf.c
Signature · 1 line
2.43.2