summaryrefslogtreecommitdiff
path: root/tools/perf/util/include/dwarf-regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/include/dwarf-regs.h')
-rw-r--r--tools/perf/util/include/dwarf-regs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/util/include/dwarf-regs.h b/tools/perf/util/include/dwarf-regs.h
index 8f149655f..07c644ed6 100644
--- a/tools/perf/util/include/dwarf-regs.h
+++ b/tools/perf/util/include/dwarf-regs.h
@@ -5,4 +5,12 @@
const char *get_arch_regstr(unsigned int n);
#endif
+#ifdef HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET
+/*
+ * Arch should support fetching the offset of a register in pt_regs
+ * by its name. See kernel's regs_query_register_offset in
+ * arch/xxx/kernel/ptrace.c.
+ */
+int regs_query_register_offset(const char *name);
+#endif
#endif