Hi, Well, struct bt_ctf_event_decl is declared in events-internal.h, which is not installed with 'make-install', which means that this struct is an incomplete type in my code, and I cannot dereference it.
I'll try to provide a patch for a new API function that obtains this information. Amit Margalit IBM XIV - Storage Reinvented XIV-NAS Development Team Tel. 03-689-7774 Fax. 03-689-7230 From: Jérémie Galarneau <[email protected]> To: Amit Margalit/Israel/IBM@IBMIL Cc: lttng-dev <[email protected]> Date: 04/07/2014 05:10 PM Subject: Re: [lttng-dev] Babeltrace API question - how can I determine event IDs that exist in a trace I opened? Sent by: [email protected] 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
