• Home
  • Raw
  • Download

Lines Matching refs:thread_name

146 static char	*prof_thread_name_alloc(tsdn_t *tsdn, const char *thread_name);
1318 (tdata->thread_name != NULL) ? " " : "", in prof_tdata_dump_iter()
1319 (tdata->thread_name != NULL) ? tdata->thread_name : "")) { in prof_tdata_dump_iter()
1904 char *thread_name, bool active) { in prof_tdata_init_impl() argument
1920 tdata->thread_name = thread_name; in prof_tdata_init_impl()
1982 if (tdata->thread_name != NULL) { in prof_tdata_destroy_locked()
1983 idalloctm(tsd_tsdn(tsd), tdata->thread_name, NULL, NULL, true, in prof_tdata_destroy_locked()
2026 char *thread_name = (tdata->thread_name != NULL) ? in prof_tdata_reinit() local
2027 prof_thread_name_alloc(tsd_tsdn(tsd), tdata->thread_name) : NULL; in prof_tdata_reinit()
2031 return prof_tdata_init_impl(tsd, thr_uid, thr_discrim, thread_name, in prof_tdata_reinit()
2130 return (tdata->thread_name != NULL ? tdata->thread_name : ""); in prof_thread_name_get()
2134 prof_thread_name_alloc(tsdn_t *tsdn, const char *thread_name) { in prof_thread_name_alloc() argument
2138 if (thread_name == NULL) { in prof_thread_name_alloc()
2142 size = strlen(thread_name) + 1; in prof_thread_name_alloc()
2152 memcpy(ret, thread_name, size); in prof_thread_name_alloc()
2157 prof_thread_name_set(tsd_t *tsd, const char *thread_name) { in prof_thread_name_set() argument
2168 if (thread_name == NULL) { in prof_thread_name_set()
2171 for (i = 0; thread_name[i] != '\0'; i++) { in prof_thread_name_set()
2172 char c = thread_name[i]; in prof_thread_name_set()
2178 s = prof_thread_name_alloc(tsd_tsdn(tsd), thread_name); in prof_thread_name_set()
2183 if (tdata->thread_name != NULL) { in prof_thread_name_set()
2184 idalloctm(tsd_tsdn(tsd), tdata->thread_name, NULL, NULL, true, in prof_thread_name_set()
2186 tdata->thread_name = NULL; in prof_thread_name_set()
2189 tdata->thread_name = s; in prof_thread_name_set()