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

perf_regs.h (533B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef ARCH_PERF_REGS_H
      3#define ARCH_PERF_REGS_H
      4
      5#include <stdlib.h>
      6#include <linux/types.h>
      7#define perf_event_arm_regs perf_event_arm64_regs
      8#include <asm/perf_regs.h>
      9#undef perf_event_arm_regs
     10
     11void perf_regs_load(u64 *regs);
     12
     13#define PERF_REGS_MASK	((1ULL << PERF_REG_ARM64_MAX) - 1)
     14#define PERF_REGS_MAX	PERF_REG_ARM64_MAX
     15#define PERF_SAMPLE_REGS_ABI	PERF_SAMPLE_REGS_ABI_64
     16
     17#define PERF_REG_IP	PERF_REG_ARM64_PC
     18#define PERF_REG_SP	PERF_REG_ARM64_SP
     19
     20#endif /* ARCH_PERF_REGS_H */