• Home
  • Raw
  • Download

Lines Matching +full:libelf +full:- +full:dev

8  * http://www.apache.org/licenses/LICENSE-2.0
56 char *libelf = bcc_procutils_which_so("elf", getpid()); variable
57 REQUIRE(libelf);
58 REQUIRE(libelf[0] == '/');
59 REQUIRE(string(libelf).find("libelf") != string::npos);
60 free(libelf);
81 TEST_CASE("file-backed mapping identification") {
85 CHECK(bcc_mapping_is_file_backed("/dev/zero") == 0);
124 return -1; in setup_tmp_mnts()
129 return -1; in setup_tmp_mnts()
144 return -1; in mntns_func()
151 return -1; in mntns_func()
156 return -1; in mntns_func()
159 strncpy(libpath, lm->l_name, 1024); in mntns_func()
168 return -1; in mntns_func()
175 return -1; in mntns_func()
181 return -1; in mntns_func()
190 return -1; in mntns_func()
273 const char *cmdfmt = "nm %s | grep \" %s$\" | cut -f 1 -d \" \"";
319 return tfm::format("/tmp/perf-%d.map", pid); in perf_map_path()
325 return -1; in make_perf_map_file()
337 return -1; in perf_map_func()
349 return -1; in perf_map_func_mntns()
353 return -1; in perf_map_func_mntns()
363 return -1; in perf_map_func_noop()
382 return -1; in spawn_child()
388 TEST_CASE("resolve symbols using /tmp/perf-pid.map", "[c_api]") {
391 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
395 pid_t child = -1;
430 unlink("/tmp/perf-1.map");
449 SECTION("separate pid and mount namespace, perf-map in host") {
497 search.name = "/some/other/path/tolibs/lib/libutil-2.26.so";
514 REQUIRE(res == -1);
517 SECTION("inode+dev match, names different") {
533 SECTION("inode+dev don't match, names same") {
538 search.name = "/some/other/path/tolibs/lib/libutil-2.26.so";
545 REQUIRE(res == -1);
553 search.name = "/some/other/path/tolibs/lib/libutil-2.26.so";
560 REQUIRE(res == -1);
568 search.name = "/some/other/path/tolibs/lib/libutil-2.26.so";
600 REQUIRE(global_addr == (search.start + local_addr - search.file_offset));