]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bus: arm-ccn: cpumask attribute
authorPawel Moll <pawel.moll@arm.com>
Thu, 16 Apr 2015 11:14:35 +0000 (12:14 +0100)
committerPawel Moll <pawel.moll@arm.com>
Fri, 1 May 2015 16:51:01 +0000 (17:51 +0100)
commitffa415245b8666c44ddfb5ba1bca5b940828ecdd
tree29e9b5563de91cd7fbea5108edaed7e0b132f013
parenta18f8e97fe69195823d7fb5c68a8d6565f39db4b
bus: arm-ccn: cpumask attribute

This patch adds a "cpumask" attribute to CCN's event_source class sysfs
directory. Perf user tool uses it to restrict events to the
processor(s) enumerated in this mask.

This patch provides a single CPU mask, making it possible to run "-a"
perf session (previously it would request the same CCN event, for
example cycle counter, on each available core and most likely fail).
Initially the mask is set to the CPU that happened to probe the driver,
but it will be changed when it is hot-un-plugged (active events are
migrated to another CPU then).

Example:

 Performance counter stats for 'system wide':

CPU0               2968148      cycles
CPU1               2236736      cycles
CPU2               1797968      cycles
CPU3               1831715      cycles
CPU1            1201850868      ccn/cycles/

       1.001241383 seconds time elapsed

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Documentation/arm/CCN.txt
drivers/bus/arm-ccn.c