Re: [PATCH v5 3/3] tracing: Format non-nanosec times from tsc clock without a decimal point.

2012-10-11 Thread David Sharp
On Thu, Oct 11, 2012 at 1:43 PM, Steven Rostedt wrote: > On Mon, 2012-10-01 at 20:31 -0700, David Sharp wrote: > >> static int >> -lat_print_timestamp(struct trace_seq *s, u64 abs_usecs, >> - unsigned long rel_usecs) >> +lat_print_timestamp(struct trace_iterator *iter, u64 next_ts

Re: [PATCH v5 3/3] tracing: Format non-nanosec times from tsc clock without a decimal point.

2012-10-11 Thread Steven Rostedt
On Mon, 2012-10-01 at 20:31 -0700, David Sharp wrote: > static int > -lat_print_timestamp(struct trace_seq *s, u64 abs_usecs, > - unsigned long rel_usecs) > +lat_print_timestamp(struct trace_iterator *iter, u64 next_ts) > { > - return trace_seq_printf(s, " %4lldus%c: ", abs_u

[PATCH v5 3/3] tracing: Format non-nanosec times from tsc clock without a decimal point.

2012-10-01 Thread David Sharp
With the addition of the "tsc" clock, formatting timestamps to look like fractional seconds is misleading. Mark clocks as either in nanoseconds or not, and format non-nanosecond timestamps as decimal integers. Tested: $ cd /sys/kernel/debug/tracing/ $ cat trace_clock [local] global tsc $ echo sche