• Home
  • Raw
  • Download

Lines Matching refs:REQUIRE

43   REQUIRE(c);
44 REQUIRE(string(c).compare("c") == 0);
49 REQUIRE(libm);
50 REQUIRE(libm[0] == '/');
51 REQUIRE(string(libm).find("libm.so") != string::npos);
57 REQUIRE(libelf);
58 REQUIRE(libelf[0] == '/');
59 REQUIRE(string(libelf).find("libelf") != string::npos);
65 REQUIRE(ld);
66 REQUIRE(ld[0] == '/');
72 REQUIRE(addr != 0x0ull); in _test_ksym()
96 REQUIRE(bcc_resolve_symname("c", "malloc", 0x0, 0, nullptr, &sym) == 0);
97 REQUIRE(string(sym.module).find("libc.so") != string::npos);
98 REQUIRE(sym.module[0] == '/');
99 REQUIRE(sym.offset != 0);
106 REQUIRE(bcc_resolve_symname("bcc", "bcc_procutils_which", 0x0, getpid(), nullptr, &sym) == 0);
107 REQUIRE(string(sym.module).find("libbcc.so") != string::npos);
108 REQUIRE(sym.module[0] == '/');
109 REQUIRE(sym.offset != 0);
205 REQUIRE(resolver);
208 REQUIRE(bcc_symcache_resolve(resolver, (uint64_t)&_a_test_function, &sym) ==
212 REQUIRE(string(this_exe) == sym.module);
215 REQUIRE(string("_a_test_function") == sym.name);
220 REQUIRE(libbcc);
223 REQUIRE(libbcc_fptr);
225 REQUIRE(bcc_symcache_resolve(resolver, (uint64_t)libbcc_fptr, &sym) == 0);
226 REQUIRE(string(sym.module).find("libbcc.so") != string::npos);
227 REQUIRE(string("bcc_resolve_symname") == sym.name);
232 REQUIRE(libc_fptr);
234 REQUIRE(bcc_symcache_resolve(resolver, (uint64_t)libc_fptr, &sym) == 0);
235 REQUIRE(sym.module);
236 REQUIRE(sym.module[0] == '/');
237 REQUIRE(string(sym.module).find("libc") != string::npos);
251 REQUIRE(cmd_scanf(cmd, "%lx", &exp_addr) == 0);
256 REQUIRE(cmd_scanf(cmd, "%lx", &sym_addr) == 0);
263 REQUIRE(sym_match);
271 REQUIRE(child > 0);
274 REQUIRE(resolver);
276 REQUIRE(bcc_symcache_resolve_name(resolver, "/tmp/libz.so.1", "zlibVersion",
278 REQUIRE(addr != 0);
359 REQUIRE(map_addr != MAP_FAILED);
366 REQUIRE(child > 0);
369 REQUIRE(resolver);
371 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
373 REQUIRE(sym.module);
374 REQUIRE(string(sym.module) == perf_map_path(child));
375 REQUIRE(string("dummy_fn") == sym.name);
377 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr + 0x10,
379 REQUIRE(sym.module);
380 REQUIRE(string(sym.module) == perf_map_path(child));
381 REQUIRE(string("right_next_door_fn") == sym.name);
386 REQUIRE(child > 0);
389 REQUIRE(resolver);
391 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
393 REQUIRE(sym.module);
395 REQUIRE(string(sym.module) == perf_map_path(1));
396 REQUIRE(string("dummy_fn") == sym.name);
403 REQUIRE(child > 0);
406 REQUIRE(resolver);
408 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
410 REQUIRE(sym.module);
412 REQUIRE(string(sym.module) == perf_map_path(1));
413 REQUIRE(string("dummy_fn") == sym.name);
419 REQUIRE(child > 0);
422 REQUIRE(make_perf_map_file(path, (unsigned long long)map_addr) == 0);
425 REQUIRE(resolver);
427 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
429 REQUIRE(sym.module);
431 REQUIRE(string(sym.module) == perf_map_path(child));
432 REQUIRE(string("dummy_fn") == sym.name);
446 REQUIRE(cpus.size() == num_cpus);