Root/
Source at commit 0de2b2b3be81048189a32f7a3d3ba0ba9ec817b6 created 11 years 11 months ago. By Maarten ter Huurne, MIPS: JZ4740: Fixed value for round robin constant. | |
---|---|
1 | /* |
2 | * Performance event callchain support - SuperH architecture code |
3 | * |
4 | * Copyright (C) 2009 Paul Mundt |
5 | * |
6 | * This file is subject to the terms and conditions of the GNU General Public |
7 | * License. See the file "COPYING" in the main directory of this archive |
8 | * for more details. |
9 | */ |
10 | #include <linux/kernel.h> |
11 | #include <linux/sched.h> |
12 | #include <linux/perf_event.h> |
13 | #include <linux/percpu.h> |
14 | #include <asm/unwinder.h> |
15 | #include <asm/ptrace.h> |
16 | |
17 | static int callchain_stack(void *data, char *name) |
18 | { |
19 | return 0; |
20 | } |
21 | |
22 | static void callchain_address(void *data, unsigned long addr, int reliable) |
23 | { |
24 | struct perf_callchain_entry *entry = data; |
25 | |
26 | if (reliable) |
27 | perf_callchain_store(entry, addr); |
28 | } |
29 | |
30 | static const struct stacktrace_ops callchain_ops = { |
31 | .stack = callchain_stack, |
32 | .address = callchain_address, |
33 | }; |
34 | |
35 | void |
36 | perf_callchain_kernel(struct perf_callchain_entry *entry, struct pt_regs *regs) |
37 | { |
38 | perf_callchain_store(entry, regs->pc); |
39 | |
40 | unwind_stack(NULL, regs, NULL, &callchain_ops, entry); |
41 | } |
42 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9