1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PERF_DWARF_REGS_H_
3 #define _PERF_DWARF_REGS_H_
5 #ifdef HAVE_DWARF_SUPPORT
6 const char *get_arch_regstr(unsigned int n
);
8 * get_dwarf_regstr - Returns ftrace register string from DWARF regnum
9 * n: DWARF register number
10 * machine: ELF machine signature (EM_*)
12 const char *get_dwarf_regstr(unsigned int n
, unsigned int machine
);
15 #ifdef HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET
17 * Arch should support fetching the offset of a register in pt_regs
18 * by its name. See kernel's regs_query_register_offset in
19 * arch/xxx/kernel/ptrace.c.
21 int regs_query_register_offset(const char *name
);