Lines Matching refs:libname
215 char *libname; member
235 lib_cache[i].libname = strdup(key); in read_cache1()
258 lib_cache[i].libname = strdup(key); in read_cache2()
333 static bool which_so_in_process(const char* libname, int pid, char* libpath) { in which_so_in_process() argument
337 const size_t search_len = strlen(libname) + strlen("/lib."); in which_so_in_process()
346 snprintf(search1, search_len + 1, "/lib%s.", libname); in which_so_in_process()
347 snprintf(search2, search_len + 1, "/lib%s-", libname); in which_so_in_process()
373 char *bcc_procutils_which_so(const char *libname, int pid) { in bcc_procutils_which_so() argument
374 const size_t soname_len = strlen(libname) + strlen("lib.so"); in bcc_procutils_which_so()
379 if (strchr(libname, '/')) in bcc_procutils_which_so()
380 return strdup(libname); in bcc_procutils_which_so()
382 if (pid && which_so_in_process(libname, pid, libpath)) in bcc_procutils_which_so()
393 snprintf(soname, soname_len + 1, "lib%s.so", libname); in bcc_procutils_which_so()
396 if (!strncmp(lib_cache[i].libname, soname, soname_len) && in bcc_procutils_which_so()