Lines Matching refs:ut
56 struct utrace_rtld *ut = p;
60 switch (ut->event) {
62 mode = ut->refcnt;
63 fprintf(fp, "dlopen(%s, ", ut->name);
84 fprintf(fp, "%p = dlopen(%s) ref %d", ut->handle, ut->name,
85 ut->refcnt);
88 fprintf(fp, "dlclose(%p) (%s, %d)", ut->handle, ut->name,
89 ut->refcnt);
92 fprintf(fp, "dlclose(%p) finished", ut->handle);
95 fprintf(fp, "RTLD: loaded %p @ %p - %p (%s)", ut->handle,
96 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1,
97 ut->name);
100 fprintf(fp, "RTLD: unloaded %p @ %p - %p (%s)", ut->handle,
101 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1,
102 ut->name);
105 parent = ut->mapbase;
107 ut->handle, ut->name, ut->refcnt);
113 fprintf(fp, "RTLD: init %p for %p (%s)", ut->mapbase, ut->handle,
114 ut->name);
117 fprintf(fp, "RTLD: fini %p for %p (%s)", ut->mapbase, ut->handle,
118 ut->name);
121 fprintf(fp, "RTLD: dlsym(%p, %s)", ut->handle, ut->name);
124 fprintf(fp, "RTLD: %p = dlsym(%p, %s)", ut->mapbase, ut->handle,
125 ut->name);
128 fprintf(fp, "RTLD: error: %s\n", ut->name);
154 struct utrace_malloc *ut = p;
156 if (ut->p == (void *)(intptr_t)(-1))
158 else if (ut->s == 0)
159 fprintf(fp, "free(%p)", ut->p);
160 else if (ut->p == NULL)
161 fprintf(fp, "%p = malloc(%zu)", ut->r, ut->s);
163 fprintf(fp, "%p = realloc(%p, %zu)", ut->r, ut->p, ut->s);