]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/perf/util/perf_regs.h
perf record: Allow mixing --user-regs with --call-graph=dwarf
[linux.git] / tools / perf / util / perf_regs.h
index cb9c246c89623cffa76393aa900e97ac2d750915..47fe34e5f7d5bed647e37537b39c583879abcb14 100644 (file)
@@ -29,12 +29,16 @@ uint64_t arch__user_reg_mask(void);
 #ifdef HAVE_PERF_REGS_SUPPORT
 #include <perf_regs.h>
 
+#define DWARF_MINIMAL_REGS ((1ULL << PERF_REG_IP) | (1ULL << PERF_REG_SP))
+
 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
 
 #else
 #define PERF_REGS_MASK 0
 #define PERF_REGS_MAX  0
 
+#define DWARF_MINIMAL_REGS PERF_REGS_MASK
+
 static inline const char *perf_reg_name(int id __maybe_unused)
 {
        return NULL;