Skip to contentSkip to conversation

tools/lib/traceevent: Add tep_get_event() in event-parse.h

PATCH New Tzvetomir Stoyanov (VMware) 1 participant 1 message Aug 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/lib/traceevent: Add tep_get_event() in event-parse.h

The tep_get_event() function is an official libtracevent API, described in the library man pages. However, it cannot be used by the library users because it is not declared in the event-parse.h file, where all libtracevent APIs are. The function declaration is added in event-parse.h file.

---
 tools/lib/traceevent/event-parse.h | 2 ++
 1 file changed, 2 insertions(+)
tools/lib/traceevent/event-parse.h +2 -0
index d438ee44289f..b77837f75a0d 100644
@@ -441,6 +441,8 @@ int tep_register_print_string(struct tep_handle *tep, const char *fmt,
 			      unsigned long long addr);
 bool tep_is_pid_registered(struct tep_handle *tep, int pid);
 
+struct tep_event *tep_get_event(struct tep_handle *tep, int index);
+
 #define TEP_PRINT_INFO		"INFO"
 #define TEP_PRINT_INFO_RAW	"INFO_RAW"
 #define TEP_PRINT_COMM		"COMM"
Signature · 1 line
2.21.0