diff mbox series

kernel-shark: Adopt modifications in the API of libtracecmd

Message ID 20210211120805.423085-1-y.karadz@gmail.com (mailing list archive)
State Accepted
Commit 6dde872d097c5ead6bcecf1d35905a63313b24cb
Headers show
Series kernel-shark: Adopt modifications in the API of libtracecmd | expand

Commit Message

Yordan Karadzhov Feb. 11, 2021, 12:08 p.m. UTC
New flag parameter has been added to tracecmd_open_head() to control
how the trace file is opened and parsed. A corresponding change at
the caller side is needed as well.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 src/libkshark-tepdata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/libkshark-tepdata.c b/src/libkshark-tepdata.c
index d4be052..d29e98b 100644
--- a/src/libkshark-tepdata.c
+++ b/src/libkshark-tepdata.c
@@ -1587,7 +1587,7 @@  int kshark_tep_init_input(struct kshark_data_stream *stream)
 	tep_plugin_add_option("ftrace:parent", "1");
 	tep_plugin_add_option("ftrace:indent", "0");
 
-	input = tracecmd_open_head(stream->file);
+	input = tracecmd_open_head(stream->file, 0);
 	if (!input)
 		return -EEXIST;