Hi,

Is perf stat supposed to start all specified counters simultaneously?

For example, in  the command:

perf stat -a -e rXXXX,rYYYY sleep 5

I would think that perf would configure for counting XXXX and YYYY,
and then start counting for both, so that the 2 events will have been
collected for the same amount of time.

However, looking at the perf code (and adding some logging) I see that
the first event counter is configured, then started before it then
configures and starts the 2nd event counter. Additionally, each time
it configures and starts, a global disable ("pmu_disable") is called.
So if you have many event specified, there would be a lot of starting
and stopping of all counters.

It seems like you would always want to start all the counters
simultaneously. Am I missing something? Or is there an option I can
specify to make that happen?

thanks,
chris
--
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