Re: Anyone working on ftrace function graph support on ARM?

Tim Bird
2009-03-24T21:03:49Z

Ingo Molnar wrote:
> * Tim Bird <tim.bird@am.sony.com> wrote:
>
>> My ultimate goal is to add function duration filtering, which is
>> one of the nicer features of KFT (an older tracer I used to
>> maintain out-of-mainline). With all the ftrace and ringbuffer
>> support already in mainline, this shouldn't be too hard, but I
>> need to start with basic graph support on ARM first.
>
> ah, function duration filtering - is that to only show functions
> which have a duration beyond a certain (runtime configurable) value?

Exactly. With KFT, you set a "mintime filter", and it removed from
the trace buffer any functions which were less than the threshhold.
This was not high cost, because you usually only removed the most
recently added function in the trace buffer.

This lets you focus on routines that last a long time. I used
it mainly to find long-duration routines in early boot.
The initcall tracer serves a similar purpose, but not at the
same granularity.

It greatly extends the length of time you can trace, before the
buffer fills up.
-- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================