On 5/30/13 11:26 PM, Andrew Davidoff wrote:
Hi,

I am getting started with perf and have a couple of questions.

* Does the version of perf being used need to be built from the source
for the running kernel, or is it supported to use a build from a newer
kernel source? I am currently running perf built from 3.9.4 kernel
sources on a machine running kernel 2.6.32.

In general, perf userspace from upstream can work with any kernel version. The only problem I can recall is 2.6.31 -- ie., upstream does not work with 2.6.31 and prior.


* I am getting event output with a specific `perf stat` invocation,
but when I run the same invocation under `perf record`, `perf report`
complains "The perf.data file has no samples". Why would that be? The
invocation looks like this:

perf record -e 
cache-misses,page-faults,minor-faults,major-faults,cpu-migrations,L1-dcache-load-misses,L1-dcache-store-misses,L1-icache-load-misses,LLC-load-misses,LLC-store-misses,dTLB-load-misses,dTLB-store-misses,iTLB-load-misses
-- {program} {arg} {arg} ... {arg}

add a -v and see if more info comes out.

perf script can be used to dump events.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to