Home
last modified time | relevance | path

Searched refs:buf_ev (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/kernel/tracing/pt_test/
Dpt_test.c46 uint64_t **buf_ev; in create_map() local
49 buf_ev = SAFE_MALLOC(2*sizeof(uint64_t *)); in create_map()
50 buf_ev[0] = NULL; in create_map()
51 buf_ev[1] = NULL; in create_map()
52 buf_ev[0] = SAFE_MMAP(NULL, INTEL_PT_MEMSIZE, PROT_READ | PROT_WRITE, in create_map()
55 pc = (struct perf_event_mmap_page *)buf_ev[0]; in create_map()
58 buf_ev[1] = SAFE_MMAP(NULL, bufsize, PROT_READ | PROT_WRITE, in create_map()
60 return buf_ev; in create_map()
80 static void del_map(uint64_t **buf_ev, long bufsize) in del_map() argument
82 if (buf_ev) { in del_map()
[all …]