Lines Matching refs:thread_name

130 static char	*prof_thread_name_alloc(tsdn_t *tsdn, const char *thread_name);
1308 (tdata->thread_name != NULL) ? " " : "", in prof_tdata_dump_iter()
1309 (tdata->thread_name != NULL) ? tdata->thread_name : "")) in prof_tdata_dump_iter()
1794 char *thread_name, bool active) in prof_tdata_init_impl() argument
1810 tdata->thread_name = thread_name; in prof_tdata_init_impl()
1878 if (tdata->thread_name != NULL) in prof_tdata_destroy_locked()
1879 idalloctm(tsd_tsdn(tsd), tdata->thread_name, NULL, true, true); in prof_tdata_destroy_locked()
1921 char *thread_name = (tdata->thread_name != NULL) ? in prof_tdata_reinit() local
1922 prof_thread_name_alloc(tsd_tsdn(tsd), tdata->thread_name) : NULL; in prof_tdata_reinit()
1926 return (prof_tdata_init_impl(tsd, thr_uid, thr_discrim, thread_name, in prof_tdata_reinit()
2026 return (tdata->thread_name != NULL ? tdata->thread_name : ""); in prof_thread_name_get()
2030 prof_thread_name_alloc(tsdn_t *tsdn, const char *thread_name) in prof_thread_name_alloc() argument
2035 if (thread_name == NULL) in prof_thread_name_alloc()
2038 size = strlen(thread_name) + 1; in prof_thread_name_alloc()
2046 memcpy(ret, thread_name, size); in prof_thread_name_alloc()
2051 prof_thread_name_set(tsd_t *tsd, const char *thread_name) in prof_thread_name_set() argument
2062 if (thread_name == NULL) in prof_thread_name_set()
2064 for (i = 0; thread_name[i] != '\0'; i++) { in prof_thread_name_set()
2065 char c = thread_name[i]; in prof_thread_name_set()
2070 s = prof_thread_name_alloc(tsd_tsdn(tsd), thread_name); in prof_thread_name_set()
2074 if (tdata->thread_name != NULL) { in prof_thread_name_set()
2075 idalloctm(tsd_tsdn(tsd), tdata->thread_name, NULL, true, true); in prof_thread_name_set()
2076 tdata->thread_name = NULL; in prof_thread_name_set()
2079 tdata->thread_name = s; in prof_thread_name_set()