diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-25 20:05:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-25 20:05:40 -0400 |
commit | bdc6b758e443c21c39a14c075e5b7e01f095b37b (patch) | |
tree | 40b98b5abd501cc232f41af03eb078282d7a6327 /arch/arm/kernel | |
parent | c4a346002bc06046bc51910a7ade3a0c650c3d34 (diff) | |
parent | 0c9f790fcbdaf8cfb6dd7fb4e88fadf55082e37e (diff) |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf updates from Ingo Molnar:
"Mostly tooling and PMU driver fixes, but also a number of late updates
such as the reworking of the call-chain size limiting logic to make
call-graph recording more robust, plus tooling side changes for the
new 'backwards ring-buffer' extension to the perf ring-buffer"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (34 commits)
perf record: Read from backward ring buffer
perf record: Rename variable to make code clear
perf record: Prevent reading invalid data in record__mmap_read
perf evlist: Add API to pause/resume
perf trace: Use the ptr->name beautifier as default for "filename" args
perf trace: Use the fd->name beautifier as default for "fd" args
perf report: Add srcline_from/to branch sort keys
perf evsel: Record fd into perf_mmap
perf evsel: Add overwrite attribute and check write_backward
perf tools: Set buildid dir under symfs when --symfs is provided
perf trace: Only auto set call-graph to "dwarf" when syscalls are being traced
perf annotate: Sort list of recognised instructions
perf annotate: Fix identification of ARM blt and bls instructions
perf tools: Fix usage of max_stack sysctl
perf callchain: Stop validating callchains by the max_stack sysctl
perf trace: Fix exit_group() formatting
perf top: Use machine->kptr_restrict_warned
perf trace: Warn when trying to resolve kernel addresses with kptr_restrict=1
perf machine: Do not bail out if not managing to read ref reloc symbol
perf/x86/intel/p4: Trival indentation fix, remove space
...
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/perf_callchain.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/kernel/perf_callchain.c b/arch/arm/kernel/perf_callchain.c index 27563befa8a2..22bf1f64d99a 100644 --- a/arch/arm/kernel/perf_callchain.c +++ b/arch/arm/kernel/perf_callchain.c | |||
@@ -31,7 +31,7 @@ struct frame_tail { | |||
31 | */ | 31 | */ |
32 | static struct frame_tail __user * | 32 | static struct frame_tail __user * |
33 | user_backtrace(struct frame_tail __user *tail, | 33 | user_backtrace(struct frame_tail __user *tail, |
34 | struct perf_callchain_entry *entry) | 34 | struct perf_callchain_entry_ctx *entry) |
35 | { | 35 | { |
36 | struct frame_tail buftail; | 36 | struct frame_tail buftail; |
37 | unsigned long err; | 37 | unsigned long err; |
@@ -59,7 +59,7 @@ user_backtrace(struct frame_tail __user *tail, | |||
59 | } | 59 | } |
60 | 60 | ||
61 | void | 61 | void |
62 | perf_callchain_user(struct perf_callchain_entry *entry, struct pt_regs *regs) | 62 | perf_callchain_user(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs) |
63 | { | 63 | { |
64 | struct frame_tail __user *tail; | 64 | struct frame_tail __user *tail; |
65 | 65 | ||
@@ -75,7 +75,7 @@ perf_callchain_user(struct perf_callchain_entry *entry, struct pt_regs *regs) | |||
75 | 75 | ||
76 | tail = (struct frame_tail __user *)regs->ARM_fp - 1; | 76 | tail = (struct frame_tail __user *)regs->ARM_fp - 1; |
77 | 77 | ||
78 | while ((entry->nr < sysctl_perf_event_max_stack) && | 78 | while ((entry->nr < entry->max_stack) && |
79 | tail && !((unsigned long)tail & 0x3)) | 79 | tail && !((unsigned long)tail & 0x3)) |
80 | tail = user_backtrace(tail, entry); | 80 | tail = user_backtrace(tail, entry); |
81 | } | 81 | } |
@@ -89,13 +89,13 @@ static int | |||
89 | callchain_trace(struct stackframe *fr, | 89 | callchain_trace(struct stackframe *fr, |
90 | void *data) | 90 | void *data) |
91 | { | 91 | { |
92 | struct perf_callchain_entry *entry = data; | 92 | struct perf_callchain_entry_ctx *entry = data; |
93 | perf_callchain_store(entry, fr->pc); | 93 | perf_callchain_store(entry, fr->pc); |
94 | return 0; | 94 | return 0; |
95 | } | 95 | } |
96 | 96 | ||
97 | void | 97 | void |
98 | perf_callchain_kernel(struct perf_callchain_entry *entry, struct pt_regs *regs) | 98 | perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs) |
99 | { | 99 | { |
100 | struct stackframe fr; | 100 | struct stackframe fr; |
101 | 101 | ||