mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
00e6c92304
Add OProfile support for metag, using the perf backend, and falling back to generic timer based sampling if perf counter interrupt support is disabled. The oprofile code prepends "metag/" to the perf pmu name to give "metag/meta2" which is more consistent with other oprofile arch names. The backtrace code makes use of <asm/stacktrace.h> for kernel backtracing, and a simple frame pointer walk for userland backtracing. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Robert Richter <rric@kernel.org> Cc: oprofile-list@lists.sf.net
6 lines
152 B
C
6 lines
152 B
C
#ifndef _METAG_OPROFILE_BACKTRACE_H
|
|
#define _METAG_OPROFILE_BACKTRACE_H
|
|
|
|
void metag_backtrace(struct pt_regs * const regs, unsigned int depth);
|
|
|
|
#endif
|