Project

General

Profile

Bug #618

lttng add-context does not work as advertised

Added by Daniel U. Thibault almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
08/13/2013
Due date:
% Done:

100%

Estimated time:

Description

As soon as named channels have been created, you can no longer add context to all channels:

$ lttng add-context --help
usage: lttng add-context -t TYPE [-k|-u] [OPTIONS]

If no channel is given (-c), the context is added to
all channels.

Otherwise the context is added only to the channel (-c).
[...]
$ lttng create toy
Session toy created.
Traces will be written in /home/daniel/lttng-traces/toy-20130813-162958
$ lttng enable-channel -k ch2
Kernel channel ch2 enabled for session toy
$ lttng enable-channel -k ch1
Kernel channel ch1 enabled for session toy
$ lttng add-context -k -t prio
Error: prio: Non-default channel exists within session: channel name needs to be specified with '-c name'
Warning: Some command(s) went wrong

Also available in: Atom PDF