Re: Is it possible to use ftrace to measure secondary CPU bootup time

From: Steven Rostedt
Date: Wed Jul 26 2017 - 17:21:07 EST


On Mon, 24 Jul 2017 21:40:24 +0000
"Brandt, Todd E" <todd.e.brandt@xxxxxxxxx> wrote:

> Function graph tracing is indeed the target, as its the basis of the bootgraph
> tool. However, kprobes would work just as well. What's the difference in effort
> between enabling kprobes for early boot vs function graph trace?
>

Hmm, good question. But then again, if you are only worried about
timings, tracing functions and looking at how long the next function
happens after the one you are interested in, should give you a good
idea of how long that function took.

If there is more interest, I could spend some time seeing if I can get
function graph tracing working early.

-- Steve