|
@@ -105,3 +105,11 @@ trace_event__tp_format(const char *sys, const char *name)
|
|
|
|
|
|
return tp_format(sys, name);
|
|
return tp_format(sys, name);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+struct event_format *trace_event__tp_format_id(int id)
|
|
|
|
+{
|
|
|
|
+ if (!tevent_initialized && trace_event__init2())
|
|
|
|
+ return ERR_PTR(-ENOMEM);
|
|
|
|
+
|
|
|
|
+ return pevent_find_event(tevent.pevent, id);
|
|
|
|
+}
|