metag: perf: prepare for use by oprofile
authorJames Hogan <james.hogan@imgtec.com>
Thu, 21 Feb 2013 15:34:59 +0000 (15:34 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 15 Mar 2013 13:20:19 +0000 (13:20 +0000)
commitf27086f5dcb0c7e9622f724d5279e4dfe4e844a2
tree2768182e4159e8c0a27c5b3eee8f8e03dc3d5efa
parent1fb4dc5c39af941d3abc597337e0ea776bfce0f2
metag: perf: prepare for use by oprofile

To allow our perf_events code to work with oprofile the PERF_TYPE_RAW
event type attribute is implemented, which allows the internal encoding
of events to be used externally (this requires some tweaks so that it
handles invalid event types more gracefully), and perf_pmu_name() is
adjusted to return metag_pmu->name instead of metag_pmu->pmu.name (which
is changed to "meta2").

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Robert Richter <rric@kernel.org>
Cc: oprofile-list@lists.sf.net
arch/metag/kernel/perf/perf_event.c