Feature #15
openLTTng simple trace
0%
Description
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
Updated by David Goulet almost 13 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.
Updated by David Goulet almost 13 years ago
- Status changed from New to Confirmed
- Estimated time changed from 8.00 h to 0.00 h
Updated by Matthew Khouzam almost 13 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.
Updated by Yannick Brosseau almost 13 years ago
So we should split this issue into the "strace-like" feature and the "simple command" feature.
Updated by Jérémie Galarneau about 9 years ago
- Assignee deleted (
David Goulet) - Target version set to Wishlist