summaryrefslogtreecommitdiff
path: root/drivers/misc/tegra-profiler/backtrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/tegra-profiler/backtrace.h')
-rw-r--r--drivers/misc/tegra-profiler/backtrace.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/misc/tegra-profiler/backtrace.h b/drivers/misc/tegra-profiler/backtrace.h
index abf28ebdacf6..233480436549 100644
--- a/drivers/misc/tegra-profiler/backtrace.h
+++ b/drivers/misc/tegra-profiler/backtrace.h
@@ -1,7 +1,7 @@
/*
* drivers/misc/tegra-profiler/backtrace.h
*
- * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -62,6 +62,9 @@ unsigned long
quadd_user_stack_pointer(struct pt_regs *regs);
unsigned long
+quadd_get_user_frame_pointer(struct pt_regs *regs);
+
+unsigned long
quadd_user_link_register(struct pt_regs *regs);
static inline int
@@ -79,4 +82,15 @@ validate_pc_addr(unsigned long addr, unsigned long nbytes)
return addr && addr < TASK_SIZE - nbytes;
}
+static inline int
+validate_stack_addr(unsigned long addr,
+ struct vm_area_struct *vma,
+ unsigned long nbytes)
+{
+ if (addr & 0x03)
+ return 0;
+
+ return is_vma_addr(addr, vma, nbytes);
+}
+
#endif /* __QUADD_BACKTRACE_H */