Lines Matching full:thread_name
130 static char *prof_thread_name_alloc(tsd_t *tsd, const char *thread_name);
1275 (tdata->thread_name != NULL) ? " " : "",
1276 (tdata->thread_name != NULL) ? tdata->thread_name : ""))
1724 char *thread_name, bool active)
1741 tdata->thread_name = thread_name;
1802 if (tdata->thread_name != NULL)
1803 idalloctm(tsd, tdata->thread_name, tcache, true, true);
1844 char *thread_name = (tdata->thread_name != NULL) ?
1845 prof_thread_name_alloc(tsd, tdata->thread_name) : NULL;
1849 return (prof_tdata_init_impl(tsd, thr_uid, thr_discrim, thread_name,
1950 return (tdata->thread_name != NULL ? tdata->thread_name : "");
1954 prof_thread_name_alloc(tsd_t *tsd, const char *thread_name)
1959 if (thread_name == NULL)
1962 size = strlen(thread_name) + 1;
1970 memcpy(ret, thread_name, size);
1975 prof_thread_name_set(tsd_t *tsd, const char *thread_name)
1986 if (thread_name == NULL)
1988 for (i = 0; thread_name[i] != '\0'; i++) {
1989 char c = thread_name[i];
1994 s = prof_thread_name_alloc(tsd, thread_name);
1998 if (tdata->thread_name != NULL) {
1999 idalloctm(tsd, tdata->thread_name, tcache_get(tsd, false),
2001 tdata->thread_name = NULL;
2004 tdata->thread_name = s;