Lines Matching refs:dld
1944 dt_lib_depend_t *dld; in dt_lib_depend_add() local
1952 if ((dld = dt_zalloc(dtp, sizeof (dt_lib_depend_t))) == NULL) in dt_lib_depend_add()
1955 if ((dld->dtld_libpath = dt_alloc(dtp, MAXPATHLEN)) == NULL) { in dt_lib_depend_add()
1956 dt_free(dtp, dld); in dt_lib_depend_add()
1960 (void) strlcpy(dld->dtld_libpath, arg, end - arg + 2); in dt_lib_depend_add()
1961 if ((dld->dtld_library = strdup(arg)) == NULL) { in dt_lib_depend_add()
1962 dt_free(dtp, dld->dtld_libpath); in dt_lib_depend_add()
1963 dt_free(dtp, dld); in dt_lib_depend_add()
1967 dt_list_append(dlp, dld); in dt_lib_depend_add()
1972 dt_lib_depend_lookup(dt_list_t *dld, const char *arg) in dt_lib_depend_lookup() argument
1976 for (dldn = dt_list_next(dld); dldn != NULL; in dt_lib_depend_lookup()
1994 dt_lib_depend_t *dld, *dpld; in dt_lib_build_graph() local
1996 for (dld = dt_list_next(&dtp->dt_lib_dep); dld != NULL; in dt_lib_build_graph()
1997 dld = dt_list_next(dld)) { in dt_lib_build_graph()
1998 char *library = dld->dtld_library; in dt_lib_build_graph()
2000 for (dpld = dt_list_next(&dld->dtld_dependencies); dpld != NULL; in dt_lib_build_graph()
2008 dld->dtld_library, dpld->dtld_library); in dt_lib_build_graph()
2023 dt_topo_sort(dtrace_hdl_t *dtp, dt_lib_depend_t *dld, int *count) in dt_topo_sort() argument
2027 dld->dtld_start = ++(*count); in dt_topo_sort()
2029 for (dpld = dt_list_next(&dld->dtld_dependents); dpld != NULL; in dt_topo_sort()
2043 if ((new->dtld_library = strdup(dld->dtld_library)) == NULL) { in dt_topo_sort()
2048 new->dtld_start = dld->dtld_start; in dt_topo_sort()
2049 new->dtld_finish = dld->dtld_finish = ++(*count); in dt_topo_sort()
2061 dt_lib_depend_t *dld, *dpld, *dlda; in dt_lib_depend_sort() local
2072 for (dld = dt_list_next(&dtp->dt_lib_dep); dld != NULL; in dt_lib_depend_sort()
2073 dld = dt_list_next(dld)) { in dt_lib_depend_sort()
2074 if (dld->dtld_start == 0 && in dt_lib_depend_sort()
2075 dt_topo_sort(dtp, dld, &count) == -1) in dt_lib_depend_sort()
2084 for (dld = dt_list_next(&dtp->dt_lib_dep); dld != NULL; in dt_lib_depend_sort()
2085 dld = dt_list_next(dld)) { in dt_lib_depend_sort()
2086 for (dpld = dt_list_next(&dld->dtld_dependents); dpld != NULL; in dt_lib_depend_sort()
2092 if (dlda->dtld_finish > dld->dtld_finish) { in dt_lib_depend_sort()
2095 dld->dtld_library, dpld->dtld_library); in dt_lib_depend_sort()
2108 dt_lib_depend_t *dld, *dlda; in dt_lib_depend_free() local
2110 while ((dld = dt_list_next(&dtp->dt_lib_dep)) != NULL) { in dt_lib_depend_free()
2111 while ((dlda = dt_list_next(&dld->dtld_dependencies)) != NULL) { in dt_lib_depend_free()
2112 dt_list_delete(&dld->dtld_dependencies, dlda); in dt_lib_depend_free()
2117 while ((dlda = dt_list_next(&dld->dtld_dependents)) != NULL) { in dt_lib_depend_free()
2118 dt_list_delete(&dld->dtld_dependents, dlda); in dt_lib_depend_free()
2123 dt_list_delete(&dtp->dt_lib_dep, dld); in dt_lib_depend_free()
2124 dt_free(dtp, dld->dtld_library); in dt_lib_depend_free()
2125 dt_free(dtp, dld->dtld_libpath); in dt_lib_depend_free()
2126 dt_free(dtp, dld); in dt_lib_depend_free()
2129 while ((dld = dt_list_next(&dtp->dt_lib_dep_sorted)) != NULL) { in dt_lib_depend_free()
2130 dt_list_delete(&dtp->dt_lib_dep_sorted, dld); in dt_lib_depend_free()
2131 dt_free(dtp, dld->dtld_library); in dt_lib_depend_free()
2132 dt_free(dtp, dld); in dt_lib_depend_free()
2155 dt_lib_depend_t *dld; in dt_load_libs_dir() local
2179 for (dld = dt_list_next(&dtp->dt_lib_dep); dld != NULL; in dt_load_libs_dir()
2180 dld = dt_list_next(dld)) { in dt_load_libs_dir()
2181 end = strrchr(dld->dtld_library, '/'); in dt_load_libs_dir()
2188 if (dld != NULL) { in dt_load_libs_dir()
2191 dld->dtld_library); in dt_load_libs_dir()
2241 dt_lib_depend_t *dld; in dt_load_libs_sort() local
2251 for (dld = dt_list_next(&dtp->dt_lib_dep_sorted); dld != NULL; in dt_load_libs_sort()
2252 dld = dt_list_next(dld)) { in dt_load_libs_sort()
2254 if ((fp = fopen(dld->dtld_library, "r")) == NULL) { in dt_load_libs_sort()
2256 dld->dtld_library, strerror(errno)); in dt_load_libs_sort()
2260 dtp->dt_filetag = dld->dtld_library; in dt_load_libs_sort()
2271 dld->dtld_library, in dt_load_libs_sort()
2274 dld->dtld_loaded = B_TRUE; in dt_load_libs_sort()