Lines Matching refs:map_addr
289 static int make_perf_map_file(string &path, unsigned long long map_addr) { in make_perf_map_file() argument
294 fprintf(file, "%llx 10 dummy_fn\n", map_addr); in make_perf_map_file()
295 fprintf(file, "%llx 10 right_next_door_fn\n", map_addr + 0x10); in make_perf_map_file()
338 static pid_t spawn_child(void *map_addr, bool own_pidns, bool own_mntns, in spawn_child() argument
347 /* stack grows down */ child_stack + STACK_SIZE, flags, (void*)map_addr); in spawn_child()
357 void *map_addr = mmap(NULL, map_sz, PROT_READ | PROT_EXEC, variable
359 REQUIRE(map_addr != MAP_FAILED);
365 child = spawn_child(map_addr, /* own_pidns */ false, false, perf_map_func);
371 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
377 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr + 0x10,
385 child = spawn_child(map_addr, /* own_pidns */ true, false, perf_map_func);
391 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
401 child = spawn_child(map_addr, /* own_pidns */ true, true,
408 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
417 child = spawn_child(map_addr, /* own_pidns */ true, true,
422 REQUIRE(make_perf_map_file(path, (unsigned long long)map_addr) == 0);
427 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
439 munmap(map_addr, map_sz);