Lines Matching refs:sym
70 static void _test_ksym(const char *sym, uint64_t addr, void *_) { in _test_ksym() argument
71 if (!strcmp(sym, "startup_64")) in _test_ksym()
94 struct bcc_symbol sym; variable
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);
100 bcc_procutils_free(sym.module);
104 struct bcc_symbol sym; variable
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);
110 bcc_procutils_free(sym.module);
202 struct bcc_symbol sym; variable
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);
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);
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);
243 bool sym_match = (string("strtok") == sym.name);
250 sprintf(cmd, cmdfmt, sym.module, "strtok");
255 sprintf(cmd, cmdfmt, sym.module, sym.name);
361 struct bcc_symbol sym; variable
372 &sym) == 0);
373 REQUIRE(sym.module);
374 REQUIRE(string(sym.module) == perf_map_path(child));
375 REQUIRE(string("dummy_fn") == sym.name);
378 &sym) == 0);
379 REQUIRE(sym.module);
380 REQUIRE(string(sym.module) == perf_map_path(child));
381 REQUIRE(string("right_next_door_fn") == sym.name);
392 &sym) == 0);
393 REQUIRE(sym.module);
395 REQUIRE(string(sym.module) == perf_map_path(1));
396 REQUIRE(string("dummy_fn") == sym.name);
409 &sym) == 0);
410 REQUIRE(sym.module);
412 REQUIRE(string(sym.module) == perf_map_path(1));
413 REQUIRE(string("dummy_fn") == sym.name);
428 &sym) == 0);
429 REQUIRE(sym.module);
431 REQUIRE(string(sym.module) == perf_map_path(child));
432 REQUIRE(string("dummy_fn") == sym.name);