cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

dwarf-regs.h (661B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _PERF_DWARF_REGS_H_
      3#define _PERF_DWARF_REGS_H_
      4
      5#ifdef HAVE_DWARF_SUPPORT
      6const char *get_arch_regstr(unsigned int n);
      7/*
      8 * get_dwarf_regstr - Returns ftrace register string from DWARF regnum
      9 * n: DWARF register number
     10 * machine: ELF machine signature (EM_*)
     11 */
     12const char *get_dwarf_regstr(unsigned int n, unsigned int machine);
     13#endif
     14
     15#ifdef HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET
     16/*
     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.
     20 */
     21int regs_query_register_offset(const char *name);
     22#endif
     23#endif