Feature #15


LTTng simple trace

Added by Matthew Khouzam over 12 years ago. Updated almost 9 years ago.

Target version:
Start date:
Due date:
02/10/2013 (over 11 years late)
% Done:


Estimated time:
0.00 h


Requesting a new command in lttng-tools
the name should be something like trace and the functionality should be similar to strace.
the syntax could be something like
lttng trace program_name program_args
let's say you instrumented ls, then lttng trace ls -l /dev would trace ls going through the directory.
The traces taken should be both kernel and UST unless otherwise specified.
The timestamps for user space and kernel space should be on the same base. (Offsets will make this unusable by most)
the command sequence internally could be as simple as
lttng create default_name; lttng enable-event -a -k ; lttng enable-event -a -u; lttng start; %program_name; lttng stop; lttng destroy;
If the person is not in the tracing group or root, the kernel trace should be unavailable with a warning. if the application is not instrumented, it should warn too. if the kernel and userspace tracer is not available, it should warn that too but still run.

These ideas are very open for discussion

Related issues 2 (0 open2 closed)

Blocked by LTTng - Feature #34: Flight-recorder modeResolved02/11/2012

Blocked by Babeltrace - Feature #31: Add "live" trace reading supportResolved02/11/2012

Actions #1

Updated by David Goulet over 12 years ago

  • Assignee set to David Goulet

This should most likely be available when babeltrace live tracing will work and the fligh recorder feature of lttng-ust.

Actions #2

Updated by David Goulet over 12 years ago

  • Status changed from New to Confirmed
  • Estimated time changed from 8.00 h to 0.00 h
Actions #3

Updated by Matthew Khouzam over 12 years ago

After discussing the feature may be poorly described, what I want is this.

Bob is a user
his ID is in the tracing group,
he wants to trace his hello world app
he types "lttng simpleTrace helloWorld"
the program is launched and executes
when it is finished executing, a trace of UST and the kernel are available to read.

Bob traced the program without knowledge of sessions or domains or even tracepoints.

Optional: Bob is so happy he tells his friends. He is awarded a small island in the azores as a reward for his awesomeness.

Actions #4

Updated by Yannick Brosseau over 12 years ago

So we should split this issue into the "strace-like" feature and the "simple command" feature.

Actions #5

Updated by Jérémie Galarneau almost 9 years ago

  • Assignee deleted (David Goulet)
  • Target version set to Wishlist

Also available in: Atom PDF