Skip to content

tracing/eventfs: Fixes for 6.8

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracing: Ensure visibility when inserting an element into tracing_mapkernel/trace/tracing_map.c+6 -10 replies
2/2eventfs: Save directory inodes in the eventfs_inode structurefs/tracefs/event_inode.c fs/tracefs/internal.h+15 -61 reply

Reviews trailers per patch

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

PatchTom ZanussiKees CookGeert Uytterhoeven
1/2A-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [for-linus][PATCH 0/2] tracing/eventfs: Fixes for 6.8

Tracing and eventfs fixes for 6.8:

- Fix histogram tracing_map insertion.
The tracing_map_insert copies the value into the elt variable and then assigns the elt to the entry value. But it is possible that the entry value becomes visible on other CPUs before the elt is fully initialized. This is fixed by adding a wmb() between the initialization of the elt variable and assigning it.

- Have eventfs directory have unique inode numbers. Having them be all the same proved to be a failure as the find application will think that the directories are causing loops, as it checks for directory loops via their inodes. Have the evenfs dir entries get their inodes assigned when they are referenced and then save them in the eventfs_inode structure.

Petr Pavlu (1):
tracing: Ensure visibility when inserting an element into tracing_map

Steven Rostedt (Google) (1):
eventfs: Save directory inodes in the eventfs_inode structure

----

 fs/tracefs/event_inode.c   | 14 +++++++++++---
 fs/tracefs/internal.h      |  7 ++++---
 kernel/trace/tracing_map.c |  7 ++++++-
 3 files changed, 21 insertions(+), 7 deletions(-)