I have tried using kernprof; What kernprof can do is list
out the routine-wise performance event counts for a given workload.
I use it with benchmark runs using a script to start and stop profiling
and run the tests in between
something like
kernprof -r
kernprof -b -c all -d pmc -a 0x0020024
urtesttobeexecuted
kernprof -e
Event above "0x0020024" is L2_LINES_IN for P6 family
I've used this to measure cache effects with smp friendly counters,
But for lockmetering, this would not be as good as having cache event
measurements built into lockmeter .......
-Kiran
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/