Reading debug/tracing info
Vladimir Murzin
murzin.v at gmail.com
Sun Aug 21 01:16:43 EDT 2011
On 8/20/11, Prateek Sharma <prateek3.14 at gmail.com> wrote:
> Hello all,
> I am learning how to add static trace points via trace_events.
> I am seeing the trace using 'cat /sys/kernel/debug/tracing/trace' .
> Naturally the tracing buffer size is limited. My question is, what is the
> recommended way of reading trace data?
> Ive looked at perf record/report, but so far, i have only managed to get
> aggregated statistics, or complete dumps.
> What i need is just a way to collect all the trace output to one file.
> Basically i am using the trace events as a souped up printk (since i need
> to collect large amounts of traces).
> Do i need to use LTTng/viewer or something for this task?
>
> Thanks!
>
Hi Prateek!
Have a look at trace-cmd utility [1]. Hope you.find it useful
[1] http://lwn.net/Articles/410200/
More information about the Kernelnewbies
mailing list