]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib traceevent: Add API to read time information from kbuffer
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 2 Jul 2020 18:53:45 +0000 (14:53 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Jul 2020 11:30:10 +0000 (08:30 -0300)
commitab3f8477628979c23d49bc4f6ed00f517c0a39d1
tree8cdcf0a22efc8a2b6f673e18fedf71d32e67d027
parent2089474a325c85685a406d763dcfbee0dd971e35
tools lib traceevent: Add API to read time information from kbuffer

Add the functions kbuffer_subbuf_timestamp() and kbuffer_ptr_delta() to
get the timing data stored in the ring buffer that is used to produced
the time stamps of the records.

This is useful for tools like trace-cmd to be able to display the
content of the read data to understand why the records show the time
stamps that they do.

Link: http://lore.kernel.org/linux-trace-devel/20200625100516.365338-2-tz.stoyanov@gmail.com
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
[ Ported from trace-cmd.git ]
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lore.kernel.org/lkml/20200702185703.619656282@goodmis.org
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/kbuffer-parse.c
tools/lib/traceevent/kbuffer.h