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);
Updated by Yannick Brosseau over 12 years ago
- Project changed from LTTng to LTTng-tools
Updated by David Goulet over 12 years ago
- Status changed from New to Confirmed
- Assignee set to David Goulet
- Priority changed from Normal to High
- Target version set to 2.0.x stable
Updated by David Goulet about 12 years ago
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Applied in changeset c7d620a2a00e1da14a0d06752b9055d9de6017b5.
Actions