[lttng-dev] Babeltrace API question - how can I determine event IDs that exist in a trace I opened?
Jérémie Galarneau
jeremie.galarneau at efficios.com
Mon Apr 7 10:10:53 EDT 2014
On Sun, Apr 6, 2014 at 7:53 AM, Amit Margalit <AMITM at il.ibm.com> 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
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list