On Sun, Apr 6, 2014 at 7:53 AM, Amit Margalit <[email protected]> wrote: > Hi, > > Once I have created a context, and successfully added a trace, is there a > way to determine which event IDs are present in the trace I just opened?
Have a look at bt_ctf_get_event_decl_list() in include/babeltrace/ctf/events.h This will return a list of struct bt_ctf_event_decl. The event ID is in bt_ctf_event_decl.parent.id. Regards, Jérémie > > Specifically, I would like to create a table linking event ID to its name, > without iterating the entire trace to find out... > > Is this possible? > > Thanks, > > Amit Margalit > IBM XIV - Storage Reinvented > XIV-NAS Development Team > Tel. 03-689-7774 > Fax. 03-689-7230 > _______________________________________________ > lttng-dev mailing list > [email protected] > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev > -- Jérémie Galarneau EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
