Re: How to dump trace buffer at boot stage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 04/10/2014 10:44 PM, Steven Rostedt wrote:
On Thu, 27 Mar 2014 14:14:44 +0800
wyang <w90p710@xxxxxxxxx> wrote:

Hi guys,

I ran into a issue that the msleep(10) does not return promptly at boot
stage, kernel would take amount of time to boot up. since I wanna trace
timer at boot stage,
so I enabled a trace event via command line such as
"trace_event=timer:*", but unfortunately the kernel did not boot
successfully, so is there any method to
dump the trace event to console while kernel cannot boot up sucessfully?

Hi, I would have replied earlier, but I was traveling when you sent
this.

Can you modify the kernel? If so, you can add ftrace_dump(DUMP_ALL);
anywhere in the kernel. It will dump the ftrace buffer to console when
it is hit.

Steve,

Thanks for your response, I could modify my kernel, I would try it. Thank you again.

Wei

But this is a good reminder. I should add the function:dump filter
ability to the command line.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux