39 #define FT_CR_GPR(n) (FT_CR_X0 + (n)) 40 #define FT_CR_FPR(n) (FT_CR_GPR (31) + (n)) 121 #define AARCH64_NUM_FT_COLLECT_GREGS \ 122 (sizeof (aarch64_ft_collect_regmap) / sizeof(aarch64_ft_collect_regmap[0])) 128 const unsigned char *buf)
168 uintptr_t exec_base = getauxval (AT_PHDR);
173 exec_base = 0x400000;
175 pagesize = sysconf (_SC_PAGE_SIZE);
179 addr = exec_base - size;
182 addr &= ~(pagesize - 1);
185 for (; addr; addr -= pagesize)
188 res = mmap ((
void *) addr, size,
189 PROT_READ | PROT_WRITE | PROT_EXEC,
190 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
193 if ((uintptr_t) res == addr)
197 if (res != MAP_FAILED)
#define AARCH64_NUM_FT_COLLECT_GREGS
void * alloc_jump_pad_buffer(size_t size)
ULONGEST get_raw_reg(const unsigned char *raw_regs, int regnum)
const target_desc * aarch64_linux_read_description()
void initialize_low_tracepoint(void)
void perror_with_name(const char *string)
unsigned long long ULONGEST
static const int aarch64_ft_collect_regmap[]
void supply_register(struct regcache *regcache, int n, const void *buf)
const struct target_desc * get_ipa_tdesc(int idx)
void supply_fast_tracepoint_registers(struct regcache *regcache, const unsigned char *buf)