Actions
Bug #260
closedUnspotted error in lttng_list_events when looking for events in Kernel domain when there are only in UST domain
Start date:
06/07/2012
Due date:
% Done:
100%
Estimated time:
Description
If there is a session with only UST events and lttng_list_events is called in the Kernel domain, it will return 0 and will kill all sessions instead of returning an error code.
This should be changed to return an error code such as -39 (Kernel channel not found).
Here's an example to clarify:
For an existing session "bla" with only UST events, the following code will return no error (0) and destroy all current sessions:
struct lttng_domain d;
d.type=LTTNG_DOMAIN_KERNEL;
struct lttng_domain *dom = &d;
struct lttng_handle *h = lttng_create_handle("bla", dom);
struct lttng_event **ev;
return lttng_list_events(h,"channel0", ev);
Actions