Skip to content

tracing/osnoise: Synchronization fixes

Crystal Wood linux-trace-kernel sashiko-reviews 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest10 patches 8 repliesIn review
  2. v610 patches 2 repliesSuperseded
  3. v5 posting 2/20 of 9 patches 0 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v5 posting 1/28 patches0 repliesSuperseded
v49 patches1 replySuperseded
v39 patches0 repliesSuperseded
v29 patches0 repliesSuperseded
v14 patches7 repliesSuperseded

Changes in v7 from the cover letter

- Fix temporary build break in patch 2, with a change in patch 1
- Other Sashiko-driven updates to patches 5 and 6

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10tracing/osnoise: Variable cleanupkernel/trace/trace_osnoise.c+32 -221 reply
2/10tracing/osnoise: start_kthread: Always check OSN_WORKLOADkernel/trace/trace_osnoise.c+7 -61 reply
3/10tracing/osnoise: Start all eligible cpus from hotplug workfnkernel/trace/trace_osnoise.c+6 -90 replies
4/10tracing/osnoise: Hold a ref on osn->kthreadkernel/trace/trace_osnoise.c+4 -130 replies
5/10tracing/osnoise: Per-cpu mutexes and fd detachmentDocumentation/trace/timerlat-tracer.rst kernel/trace/trace_osnoise.c+203 -1283 replies
6/10tracing/osnoise: Reset cleanupkernel/trace/trace_osnoise.c+61 -562 replies
7/10tracing/osnoise: kthreads: Verify CPU after migrate_disable()kernel/trace/trace_osnoise.c+18 -30 replies
8/10tracing/osnoise: Take trace_types_lock in timerlat_fd_openkernel/trace/trace_osnoise.c+10 -331 reply
9/10tracing/osnoise: Print taint message for timerlatkernel/trace/trace_osnoise.c+6 -00 replies
10/10tracing/osnoise: Refuse timerlat fd open if tracer inactivekernel/trace/trace_osnoise.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 00/10] tracing/osnoise: Synchronization fixes

Various improvements to synchronization in osnoise/timerlat.

v7:
- Fix temporary build break in patch 2, with a change in patch 1
- Other Sashiko-driven updates to patches 5 and 6

v6:
- Revived the "Always check OSN_WORKLOAD" and "Split out per-cpu variable resets" patches, with fixes, to address minor issues raised by Sashiko
- Other minor Sashiko-requseted fixes

https://lore.kernel.org/all/[email protected]/

v5:
- Removed "Split out per-cpu variable resets" due to Sashiko feedback about races with NMIs and other tracing hooks; the main motivation for that patch was problems with osn->sampling and tlat->thread, both of which are now explicitly cleared.

- Fixed some patch shuffling bugs in fd detachment that were revealed by dropping the reset patch

- Added "Start all eligible cpus from hotplug workfn"

- Removed "Always check OSN_WORKLOAD" which is no longer needed after the hotplug workfn patch

https://lore.kernel.org/all/[email protected]/

v4: fixed a problem with the v3 fix spotted by Sashiko

https://lore.kernel.org/all/[email protected]/

v3: make sure osn->sampling gets cleared on stop, even for non-workload osnoise (reported by Sashiko)

https://lore.kernel.org/all/[email protected]/

v2: addresses issues raised by Sashiko, as well as a few more problems discovered in additional testing.

https://lore.kernel.org/all/[email protected]/

v1: https://lore.kernel.org/all/[email protected]/

Crystal Wood (10):
tracing/osnoise: Variable cleanup
tracing/osnoise: start_kthread: Always check OSN_WORKLOAD tracing/osnoise: Start all eligible cpus from hotplug workfn tracing/osnoise: Hold a ref on osn->kthread tracing/osnoise: Per-cpu mutexes and fd detachment tracing/osnoise: Reset cleanup
tracing/osnoise: kthreads: Verify CPU after migrate_disable() tracing/osnoise: Take trace_types_lock in timerlat_fd_open tracing/osnoise: Print taint message for timerlat tracing/osnoise: Refuse timerlat fd open if tracer inactive

 Documentation/trace/timerlat-tracer.rst |   5 +-
 kernel/trace/trace_osnoise.c            | 497 ++++++++++++++----------
 2 files changed, 290 insertions(+), 212 deletions(-)
Signature · 1 line
2.56.0