Skip to content

ftrace: Expose call graph depth as unsigned int

Ilya Leoshkevich linux-trace-kernel lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v11 patch 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ftrace: Fix type of ftrace_graph_ent_entry.depthkernel/trace/trace_entries.h+2 -20 replies
2/2ftrace: Expose call graph depth as unsigned intkernel/trace/trace_entries.h+6 -60 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] ftrace: Expose call graph depth as unsigned int

v1: https://lore.kernel.org/lkml/[email protected]/
v1 -> v2: Use unsigned int instead of int.
Add a follow-up patch that changes depth to unsigned int in all events.

Hi,

This series changes the type of depth in all call graph events to unsigned int.

Patch 1 fixes a size mismatch issue in ftrace_graph_ent_entry, which causes trace-cmd on 64-bit big-endian systems to output a lot of bogus spaces, rendering it unusable.

Patch 2 changes type of depth in all other events to unsigned int in order to better reflect its semantics: it can only be negative internally, but recorded values are always non-negative.

Best regards,
Ilya

Ilya Leoshkevich (2):
ftrace: Fix type of ftrace_graph_ent_entry.depth
ftrace: Expose call graph depth as unsigned int

 kernel/trace/trace_entries.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.49.0