Skip to content

tracing/mm: Fix suspicious rcu_dereference_check() usage warnings

Shreyas B. Prabhu lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/23 patches 7 repliesIn review
  2. v1 posting 1/23 patches 14 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing/mm: Don't trace kmem_cache_free on offline cpusinclude/trace/events/kmem.h+4 -20 replies
2/3tracing/mm: Don't trace mm_page_free on offline cpusinclude/trace/events/kmem.h+3 -10 replies
3/3tracing/mm: Don't trace mm_page_pcpu_drain on offline cpusinclude/trace/events/kmem.h+15 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPreeti U MurthySteven Rostedt
1/3R-b A-b
2/3R-b A-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RESEND 0/3] tracing/mm: Fix suspicious rcu_dereference_check() usage warnings

Since tracepoints use RCU for protection, they must not be called on offline cpus. Running with LOCKDEP enabled discovered few scenarios where trace points were called on offline cpus. These patches fix this by converting these trace events into conditonal trace events where condition is cpu_online(smp_processor_id())

Previous posting of the patchset can be found here:
https://lkml.org/lkml/2015/4/28/512

This resend CCs people who added/edited the trace events in question.

Shreyas B. Prabhu (3):
tracing/mm: Don't trace kmem_cache_free on offline cpus tracing/mm: Don't trace mm_page_free on offline cpus tracing/mm: Don't trace mm_page_pcpu_drain on offline cpus

 include/trace/events/kmem.h | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.3