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 #1

Updated by Yannick Brosseau almost 12 years ago

  • Project changed from LTTng to LTTng-tools
Actions #2

Updated by David Goulet almost 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
Actions #3

Updated by David Goulet over 11 years ago

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

Also available in: Atom PDF