Skip to content

tracing: export event trace and trace_marker

Tingwei Zhang linux-arm-kernel lkml 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v3 posting 4/46 patches 4 repliesSuperseded
  3. v3 posting 3/46 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v3 posting 2/46 patches2 repliesSuperseded
v3 posting 1/46 patches3 repliesSuperseded
v26 patches4 repliesSuperseded
v14 patches5 repliesSuperseded

Changes in v4 from the cover letter

Round up number of channels to power of 2. (Alex)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6stm class: ftrace: change dependency to TRACINGdrivers/hwtracing/stm/Kconfig+1 -10 replies
2/6tracing: add flag to control different tracesinclude/linux/trace.h kernel/trace/trace.c+24 -170 replies
3/6tracing: add trace_export support for event traceinclude/linux/trace.h kernel/trace/trace.c+135 -1250 replies
4/6tracing: add trace_export support for trace_markerinclude/linux/trace.h kernel/trace/trace.c+10 -00 replies
5/6stm class: ftrace: enable supported trace export flagdrivers/hwtracing/stm/ftrace.c+2 -00 replies
6/6stm class: ftrace: use different channel accroding to CPUdrivers/hwtracing/stm/ftrace.c+4 -10 replies

Reviews trailers per patch

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

PatchSteven Rostedt (VMware)Alexander Shishkin
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/6] tracing: export event trace and trace_marker

Ftrace has ability to export trace packets to other destination. Currently, only function trace can be exported. This series extends the support to event trace and trace_maker. STM is one possible destination to export ftrace. Use separate channel for each CPU to avoid mixing up packets from different CPUs together.

Change from v3:
Round up number of channels to power of 2. (Alex)

Change from v2:
Change flag definition to BIT(). (Steven)
Add comment in stm_ftrace_write() to clarify it's safe to use smp_processor_id() here since preempt is disabled. (Steven)

Change from v1:
All changes are suggested by Steven Rostedt.
User separate flag to control function trace, event trace and trace mark. Allocate channels according to num_possible_cpu() dynamically. Move ftrace_exports routines up so all ftrace can use them.

Tingwei Zhang (6):
stm class: ftrace: change dependency to TRACING
tracing: add flag to control different traces
tracing: add trace_export support for event trace
tracing: add trace_export support for trace_marker stm class: ftrace: enable supported trace export flag stm class: ftrace: use different channel accroding to CPU

 drivers/hwtracing/stm/Kconfig  |   2 +-
 drivers/hwtracing/stm/ftrace.c |   7 +-
 include/linux/trace.h          |   7 +
 kernel/trace/trace.c           | 270 ++++++++++++++++++---------------
 4 files changed, 159 insertions(+), 127 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project