]> git.baikalelectronics.ru Git - kernel.git/commit
perf: provide sysfs_show for struct perf_pmu_events_attr
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 30 Jan 2015 21:45:57 +0000 (13:45 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 2 Feb 2015 06:56:36 +0000 (17:56 +1100)
commit945dce0cf540d3fedc2a7d5972d5912211289446
treead01ab6039dec30b6e1180759b435f84cd2780b0
parent5fcb165f23f35f3df3d6df6493fa588aa24da508
perf: provide sysfs_show for struct perf_pmu_events_attr

(struct perf_pmu_events_attr) is defined in include/linux/perf_event.h,
but the only "show" for it is in x86 and contains x86 specific stuff.

Make a generic one for those of us who are just using the event_str.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
include/linux/perf_event.h
kernel/events/core.c