Re: [perf] howto switch from pfmon
From: Brice Goglin
Date: Tue Jun 23 2009 - 10:20:59 EST
Ingo Molnar wrote:
> You can also do a profile with such events:
> perf record -f -e r1000ffe0 ./hackbench 10
> and look at it via 'perf report'.
I am not sure what the perf.data profile file contains but 'perf report'
only shows percentages. Is there a way to get a 'perf stat'-like output
from 'perf report'? Or maybe just have a -f option in 'perf stat' to
send the output into a file (with the PID in the name).
By the way, there's a typo in the description in
tools/perf/Documentation/perf-report.txt, you want s/via perf report/via
> [ Note, there's no need to specify any --follow-* flags as that is
> implicit in 'perf'. (and you'll probably also notice that perf
> stat is a lot faster at following fast-forking or
> context-switching workloads than is pfmon, because it's not ptrace
> based.) ]
What about threads? I didn't find any way to get per-thread counters.
Ideally, I'd like to be able to see no perf-related output on
stdout/stderr at runtime, and later have a look at per-thread counters
like 'perf stat' does at runtime.
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/