Lines Matching refs:libname
301 char *libname; member
321 lib_cache[i].libname = strdup(key); in read_cache1()
344 lib_cache[i].libname = strdup(key); in read_cache2()
419 static bool which_so_in_process(const char* libname, int pid, char* libpath) { in which_so_in_process() argument
423 const size_t search_len = strlen(libname) + strlen("/lib."); in which_so_in_process()
432 snprintf(search1, search_len + 1, "/lib%s.", libname); in which_so_in_process()
433 snprintf(search2, search_len + 1, "/lib%s-", libname); in which_so_in_process()
459 char *bcc_procutils_which_so(const char *libname, int pid) { in bcc_procutils_which_so() argument
460 const size_t soname_len = strlen(libname) + strlen("lib.so"); in bcc_procutils_which_so()
465 if (strchr(libname, '/')) in bcc_procutils_which_so()
466 return strdup(libname); in bcc_procutils_which_so()
468 if (pid && which_so_in_process(libname, pid, libpath)) in bcc_procutils_which_so()
479 snprintf(soname, soname_len + 1, "lib%s.so", libname); in bcc_procutils_which_so()
482 if (!strncmp(lib_cache[i].libname, soname, soname_len) && in bcc_procutils_which_so()