summaryrefslogtreecommitdiffstats
path: root/arch/sh/oprofile/op_impl.h
Commit message (Collapse)AuthorAgeFilesLines
* sh: oprofile: Use perf-events oprofile backendMatt Fleming2010-10-111-33/+0
| | | | | | | | | | | | | | | Now that we've got a generic perf-events based oprofile backend we might as well make use of it seeing as SH doesn't do anything special with its oprofile backend. Also introduce a new CONFIG_HW_PERF_EVENTS symbol so that we can fallback to using the timer interrupt for oprofile if the CPU doesn't support perf events. Also, to avoid a section mismatch warning we need to annotate oprofile_arch_exit() with an __exit marker. Signed-off-by: Matt Fleming <matt@console-pimps.org> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Robert Richter <robert.richter@amd.com>
* sh: oprofile: Fix up count size mismatch for common impl.Paul Mundt2009-11-051-1/+1
| | | | | | | | | | This reduces the 'count' size in the common support structure to 32-bits so that it matches up with what oprofile is expecting. The SH7750 code was using a nasty oprofilefs hack to expose the 48-bit counter, although no other implementations were. Now that the offending driver has been killed off, it's possible to restore some semblance of sanity. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: oprofile: Refactor common setup code for multiple driver support.Paul Mundt2008-12-221-0/+33
This re-implements the old op_model_null code in to something more generic, where multiple drivers, backtrace, etc. can all be interfaced. Based largely on arch/mips/oprofile/common.c. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
OpenPOWER on IntegriCloud