Switch __DECLARE_TRACE() to new notrace variant of SRCU-fast for v6.18
Get series with b4
b4 am b592a936-fd9e-4aef-a2af-9d40ae19511d@paulmck-laptopVersions newest first · linked by author and title
- v2 posting 2/26 patches 0 repliesNew
- v6 Latest6 patches 0 repliesNew
- v56 patches 0 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 6 patches | 6 replies | Superseded | |
| v3 | 4 patches | 13 replies | Superseded | |
| v2 posting 1/2 | 4 patches | 2 replies | Superseded | |
| v1 RFC | 4 patches | 0 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | srcu: Move rcu_is_watching() checks to srcu_read_{,un}lock_fast()include/ include/ | +4 | 0 replies | |
| 2/6 | srcu: Add srcu_read_lock_fast_notrace() and srcu_read_unlock_fast_notrace()include/ include/ | +28 | 0 replies | |
| 3/6 | srcu: Add guards for notrace variants of SRCU-fast readersinclude/ | +5 | 0 replies | |
| 4/6 | tracing: Guard __DECLARE_TRACE() use of __DO_TRACE_CALL() with SRCU-fastinclude/ include/ include/ +1 more | +28 | 0 replies | |
| 5/6 | srcu: Document __srcu_read_{,un}lock_fast() implicit RCU readersinclude/ | +27 | 0 replies | |
| 6/6 | srcu: Document srcu_flip() memory-barrier D relation to SRCU-fastkernel/ | +10 | 0 replies |
Reviews trailers per patch
3 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Joel Fernandes |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/6] Switch __DECLARE_TRACE() to new notrace variant of SRCU-fast for v6.18
Hello!
This is version 6 of a patch series creating a new notrace variant of SRCU-fast and introducing it to the __DECLARE_TRACE() macro in place of the current preemption disabling. This change enables preemption of BPF programs attached to tracepoints, as is required for runtime use of BPF in real-time systems.
The patches are as follows:
1. Move rcu_is_watching() checks to srcu_read_{,un}lock_fast().
2. Add srcu_read_lock_fast_notrace() and
srcu_read_unlock_fast_notrace().
3. Add guards for notrace variants of SRCU-fast readers.
4. Guard __DECLARE_TRACE() use of __DO_TRACE_CALL() with SRCU-fast.
5. Document __srcu_read_{,un}lock_fast() implicit RCU readers.
6. Document srcu_flip() memory-barrier D relation to SRCU-fast.
Changes since v5:
o Forward-port to v6.17-rc1.
Changes since v4:
o Remove the redundant "notrace" tags per Boqun Feng feedback.
o Disable preemption for perf and ftrace per Steven Rostedt
feedback, which addresses the kernel test robot reports provoked by earlier versions.
https://lore.kernel.org/all/45397494-544e-41c0-bf48-c66d213fce05@paulmck-laptop/
Changes since v3:
o Add "notrace" per Joel, Steven, and Matthew feedback.
o Upgrade explanatory comments and add new ones per Joel feedback.
https://lore.kernel.org/all/[email protected]/
Changes since v2:
o Posting standalone as opposed to a reply.
https://lore.kernel.org/all/3cecf6c9-b2ee-4f34-9d1b-ca4cfb8e56a7@paulmck-laptop/
Changes since RFC version:
o RFC patch 6/4 has been pulled into the shared RCU tree:
e88c632a8698 ("srcu: Add guards for SRCU-fast readers")o RFC patch 5/4 (which removed the now-unnecessary special boot-time
avoidance of SRCU) has been folded into patch 4/4 shown above, as suggested by Steven Rostedt.
https://lore.kernel.org/all/bb20a575-235b-499e-aa1d-70fe9e2c7617@paulmck-laptop/
Thanx, Paul
------------------------------------------------------------------------
b/include/linux/srcu.h | 4 +++ b/include/linux/srcutree.h | 2 - b/include/linux/tracepoint.h | 6 +++-- b/include/trace/perf.h | 2 + b/include/trace/trace_events.h | 2 + b/kernel/rcu/srcutree.c | 10 ++++++++ b/kernel/tracepoint.c | 21 +++++++++++++++++- include/linux/srcu.h | 30 ++++++++++++++++++++++++++ include/linux/srcutree.h | 47 ++++++++++++++++++++++++++--------------- 9 files changed, 102 insertions(+), 22 deletions(-)