aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/perf_event.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
index 2d0d29069275..f2da20fda02d 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
@@ -1613,8 +1613,6 @@ static const struct stacktrace_ops backtrace_ops = {
1613 .walk_stack = print_context_stack_bp, 1613 .walk_stack = print_context_stack_bp,
1614}; 1614};
1615 1615
1616#include "../dumpstack.h"
1617
1618static void 1616static void
1619perf_callchain_kernel(struct pt_regs *regs, struct perf_callchain_entry *entry) 1617perf_callchain_kernel(struct pt_regs *regs, struct perf_callchain_entry *entry)
1620{ 1618{
@@ -1736,22 +1734,6 @@ struct perf_callchain_entry *perf_callchain(struct pt_regs *regs)
1736 return entry; 1734 return entry;
1737} 1735}
1738 1736
1739void perf_arch_fetch_caller_regs(struct pt_regs *regs, unsigned long ip, int skip)
1740{
1741 regs->ip = ip;
1742 /*
1743 * perf_arch_fetch_caller_regs adds another call, we need to increment
1744 * the skip level
1745 */
1746 regs->bp = rewind_frame_pointer(skip + 1);
1747 regs->cs = __KERNEL_CS;
1748 /*
1749 * We abuse bit 3 to pass exact information, see perf_misc_flags
1750 * and the comment with PERF_EFLAGS_EXACT.
1751 */
1752 regs->flags = 0;
1753}
1754
1755unsigned long perf_instruction_pointer(struct pt_regs *regs) 1737unsigned long perf_instruction_pointer(struct pt_regs *regs)
1756{ 1738{
1757 unsigned long ip; 1739 unsigned long ip;