Project

General

Profile

Actions

Bug #988

closed

lttng -q option not functional

Added by john smith about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Jonathan Rajotte Julien
Target version:
Start date:
01/10/2016
Due date:
% Done:

100%

Estimated time:

Description

lttng -q (quiet) option doesn't work for stop, destroy, view commands (didn't test the rest of commands):
$ lttng -V
lttng (LTTng Trace Control) 2.7.0 - Herbe à Détourne

$ lttng stop x
Error: Session name not found
$ lttng -q stop x
Error: Session name not found

$ lttng destroy x
Error: Session name x not found
$ lttng -q destroy x
Error: Session name x not found

$ lttng create
Session auto-20160110-113725 created.
Traces will be written in /home/john/lttng-traces/auto-20160110-113725

$ lttng enable-event -a -u
All UST events are enabled in channel channel0
$ lttng start
Tracing started for session auto-20160110-113725
$ lttng stop
Waiting for data availability
Tracing stopped for session auto-20160110-113725
$ lttng view
Trace directory: /home/john/lttng-traces/auto-20160110-113725
[error] Cannot open any trace for reading.
[error] opening trace "/home/john/lttng-traces/auto-20160110-113725" for reading.
[error] none of the specified trace paths could be opened.

$ lttng -q view
[error] Cannot open any trace for reading.
[error] opening trace "/home/john/lttng-traces/auto-20160110-113725" for reading.
[error] none of the specified trace paths could be opened.

Actions #1

Updated by Jonathan Rajotte Julien about 8 years ago

  • Status changed from New to Feedback
  • Assignee set to Jonathan Rajotte Julien
  • Priority changed from Normal to Low
  • Target version set to 2.8

Hi

Here is a proposed fix [1] that will suppress most of the output you see.

[1] http://lists.lttng.org/pipermail/lttng-dev/2016-January/025424.html

Cheers!

Actions #2

Updated by Jonathan Rajotte Julien about 8 years ago

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

Applied in changeset tools|commit:017429025b3f27b7fdbd931a30f310869479f66e.

Actions

Also available in: Atom PDF