tracing/function-graph-tracer: improve duration output
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 3 Dec 2008 01:32:12 +0000 (02:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 3 Dec 2008 08:09:42 +0000 (09:09 +0100)
commit166d3c7994d79ab3f78f420607283361ff5cce79
tree8c37b6de991adaec6cd87c55f9046e3a6593c7f9
parent11e84acc400921743cc8d488e4a265cd98a655c7
tracing/function-graph-tracer: improve duration output

Impact: better trace output of duration for long calls

The old duration output didn't exceeded 9999.999 us to fit the column
and the nanosecs were always 3 numbers. As Ingo suggested, it's better
to have the whole microseconds elapsed time and shift the nanosecs precision
if needed to fit the maximum 7 numbers. And usec need more number, the case
should be rare and important enough to break a bit the column alignment to
show it.

So, depending of the duration value, we now have these patterns:

    u.nnn us
   uu.nnn us
  uuu.nnn us
 uuuu.nnn us
 uuuuu.nn us
 uuuuuu.n us
 uuuuuuuu..... us

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_functions_graph.c