]> asedeno.scripts.mit.edu Git - linux.git/commit
tracing: Add saved_tgids file to show cached pid to tgid mappings
authorMichael Sartain <mikesart@fastmail.com>
Thu, 6 Jul 2017 04:07:15 +0000 (22:07 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 6 Jul 2017 14:11:53 +0000 (10:11 -0400)
commit99c621d704cf1c4eb74c3c42e674edf3df64f92d
tree451419a4c1f2ea68d8b40dbcd17778406dce4281
parent69d71879d2cf67a381055f698a1d7def00dc4ed7
tracing: Add saved_tgids file to show cached pid to tgid mappings

Export the cached pid / tgid mappings in debugfs tracing saved_tgids file.
This allows user apps to translate the pids from a trace to their respective
thread group.

Example saved_tgids file with pid / tgid values separated by ' ':

  # cat saved_tgids
  1048 1048
  1047 1047
  7 7
  1049 1047
  1054 1047
  1053 1047

Link: http://lkml.kernel.org/r/20170630004023.064965233@goodmis.org
Link: http://lkml.kernel.org/r/20170706040713.unwkumbta5menygi@mikesart-cos
Reviewed-by: Joel Fernandes <joelaf@google.com>
Signed-off-by: Michael Sartain <mikesart@fastmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c