Project

General

Profile

Bug #260

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

Added by Danny Serres about 8 years ago. Updated almost 8 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);

#1

Updated by Yannick Brosseau about 8 years ago

  • Project changed from LTTng to LTTng-tools
#2

Updated by David Goulet about 8 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
#3

Updated by David Goulet almost 8 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF