]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Sysfs enumeration
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 17 Nov 2010 22:17:37 +0000 (23:17 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Dec 2010 10:36:43 +0000 (11:36 +0100)
commitc9f920b364e788f55e198af518c0db2a669ac0b1
tree1f6faf8a1ab60f3f9bfb26265c84c2725e6c4aaa
parent4997acc8f9f7d7abe2b4fa74d87638ab41d3f98c
perf: Sysfs enumeration

Simple sysfs emumeration of the PMUs.

Use a "event_source" bus, and add PMU devices using their name.

Each PMU device has a type attribute which contrains the value needed
for perf_event_attr::type to identify this PMU.

This is the minimal stub needed to start using this interface,
we'll consider extending the sysfs usage later.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Greg KH <gregkh@suse.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101117222056.316982569@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/perf_event.c