]> git.baikalelectronics.ru Git - kernel.git/commit
libtraceevent: Round up in tep_print_event() time precision
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 19 Sep 2019 20:51:19 +0000 (16:51 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Sep 2019 12:51:42 +0000 (09:51 -0300)
commitec2dbd7d79dfaa6f9ce45028872945cdd1ced7a7
treef7e93ef9eb171a6a0b5606443e1acb584735cfe1
parent659f97d184818e7a14295c34f6bd3d01e060b19d
libtraceevent: Round up in tep_print_event() time precision

When testing the output of the old trace-cmd compared to the one that
uses the updated tep_print_event() logic, it was different in that the
time stamp precision in the old format would round up to the nearest
precision, where as the new logic truncates. Bring back the old method
of rounding up.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Tzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: linux trace devel <linux-trace-devel@vger.kernel.org>
Link: http://lore.kernel.org/lkml/20190919165119.5efa5de6@gandalf.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c