Skip to content

RFC Add support to record and display tgid of tasks

Joel Fernandes lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest4 patches 3 repliesIn review
  2. v2 RFC4 patches 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tracing: Remove unused declaration of trace_stop_cmdline_recordingkernel/trace/trace.c+0 -21 reply
2/4tracing: Add support for recording tgid of tasksinclude/linux/trace_events.h kernel/trace/trace.c kernel/trace/trace.h +2 more+217 -262 replies
3/4tracing: Add support for display of tgid in trace outputkernel/trace/trace.c kernel/trace/trace_output.c+31 -140 replies
4/4tracing/ftrace: Add support to record and display tgidkernel/trace/trace_functions.c+26 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchMichael Sartain
1/4
2/4T-b
3/4T-b
4/4T-b

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

Read the v3 thread

Cover letter [PATCH RFC v3 0/4] Add support to record and display tgid of tasks

Hi Steven, Ingo,

Here is a new patch series [1] with more improvements and fixes.

Android systrace viewer heavily depends on the tgid to group tasks. tgid is also useful for analyzing traces and generating analysis results for groups of tasks. Also Michael Sartain said he also has a need for it and helped test the series (I have added him to CC).

Following are the improvements in this series:
* Preserve existing API for existing callers
* Memory leak fix
* Improved trace output code

Looking forward to your thoughts about comments, thanks.

Joel Fernandes (4):
tracing: Remove unused declaration of trace_stop_cmdline_recording
tracing: Add support for recording tgid of tasks
tracing: Add support for display of tgid in trace output tracing/ftrace: Add support to record and display tgid

 include/linux/trace_events.h      |  12 +++-
 kernel/trace/trace.c              | 140 +++++++++++++++++++++++++++++++-------
 kernel/trace/trace.h              |   8 +++
 kernel/trace/trace_events.c       |  42 +++++++++++-
 kernel/trace/trace_functions.c    |  26 +++++++
 kernel/trace/trace_output.c       |   9 +++
 kernel/trace/trace_sched_switch.c |  79 +++++++++++++++++----
 7 files changed, 274 insertions(+), 42 deletions(-)

[1] https://www.mail-archive.com/[email protected]/msg1412260.html

Cc Steven Rostedt <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Michael Sartain <[email protected]>
Signature · 1 line
2.13.0.506.g27d5fe0cd-goog