Skip to contentSkip to conversation

kernel-shark: Adopt modifications in the API of libtracecmd

PATCH New Yordan Karadzhov (VMware) 1 participant 1 message Feb 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-shark: Adopt modifications in the API of libtracecmd

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.

---
 src/libkshark-tepdata.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/libkshark-tepdata.c +1 -1
index d4be052..d29e98b 100644
@@ -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;
 
Signature · 1 line
2.25.1