Project

General

Profile

Actions

Bug #260

closed

Unspotted error in lttng_list_events when looking for events in Kernel domain when there are only in UST domain

Added by Danny Serres almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
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

Also available in: Atom PDF