This source file includes following definitions.
- s390_backtrace
- oprofile_arch_init
- oprofile_arch_exit
1
2
3
4
5
6
7
8
9
10
11
12
13 #include <linux/oprofile.h>
14 #include <linux/init.h>
15 #include <asm/processor.h>
16 #include <asm/unwind.h>
17
18 static void s390_backtrace(struct pt_regs *regs, unsigned int depth)
19 {
20 struct unwind_state state;
21
22 unwind_for_each_frame(&state, current, regs, 0) {
23 if (depth-- == 0)
24 break;
25 oprofile_add_trace(state.ip);
26 }
27 }
28
29 int __init oprofile_arch_init(struct oprofile_operations *ops)
30 {
31 ops->backtrace = s390_backtrace;
32 return 0;
33 }
34
35 void oprofile_arch_exit(void)
36 {
37 }