]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Fix outputting formats of x86-tsc and counter when use trace_clock
authorYoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Tue, 23 Apr 2013 01:32:39 +0000 (10:32 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 11 Jun 2013 17:58:46 +0000 (13:58 -0400)
commitb1442664ef68dae144d7c20723a1c94ecc456134
tree6a44f69cf8711a4853fc4e921e77cc64784fa9f9
parentd37886b89292e96b136ebcc9a269933f45695f50
tracing: Fix outputting formats of x86-tsc and counter when use trace_clock

Outputting formats of x86-tsc and counter should be a raw format, but after
applying the patch(581325a03a33a9137565717ac36e24cd015f60f1), the format was
changed to nanosec. This is because the global variable trace_clock_id was used.
When we use multiple buffers, clock_id of each sub-buffer should be used. Then,
this patch uses tr->clock_id instead of the global variable trace_clock_id.

[ Basically, this fixes a regression where the multibuffer code changed the
  trace_clock file to update tr->clock_id but the traces still use the old
  global trace_clock_id variable, negating the file's effect. The global
  trace_clock_id variable is obsolete and removed. - SR ]

Link: http://lkml.kernel.org/r/20130423013239.22334.7394.stgit@yunodevel
Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h