3 * Copyright IBM Corp. 2002, 2011
9 * @remark Copyright 2002-2011 OProfile authors
12 #include <linux/oprofile.h>
13 #include <linux/init.h>
14 #include <asm/processor.h>
16 static int __s390_backtrace(void *data, unsigned long address, int reliable)
18 unsigned int *depth = data;
23 oprofile_add_trace(address);
27 static void s390_backtrace(struct pt_regs *regs, unsigned int depth)
31 dump_trace(__s390_backtrace, &depth, NULL, regs->gprs[15]);
34 int __init oprofile_arch_init(struct oprofile_operations *ops)
36 ops->backtrace = s390_backtrace;
40 void oprofile_arch_exit(void)