Re: [PATCH] perf: mmap_page capabilities and docs

From: Ingo Molnar
Date: Fri Mar 23 2012 - 04:47:22 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> Usage:
>
> gcc -finstrument-functions -o my_prog main.c
> LD_PRELOAD=profviz.so ./my_prog
>
> xdot prof.dot
> or
> dot -Tsvg prof.svg prof.dot
>
> The attached prof.svg it example output of:
>
> LD_PRELOAD=./profviz.so ./perf report

Nifty. Could we integrate this into 'perf profviz <myprog>' or
so [feel free to use a better sub-tool name - 'perf selfprof' ?]
and thus make it available to mere mortals as well?

'perf selfprof' could also warn about apps that were not built
with -finstrument-functions.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/