Home | History | Annotate | Download | only in unit

Lines Matching full:thread_name

25 mallctl_thread_name_set_impl(const char *thread_name, const char *func,
29 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name,
30 sizeof(thread_name)), 0,
33 mallctl_thread_name_get_impl(thread_name, func, line);
40 const char *thread_name;
48 thread_name = NULL;
49 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name,
50 sizeof(thread_name)), EFAULT,
52 thread_name);
55 thread_name = "hi\nthere";
56 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name,
57 sizeof(thread_name)), EFAULT,
59 thread_name);
68 &thread_name, sizeof(thread_name)), EPERM,
70 "thread.prof.name", thread_name);
83 char thread_name[16] = "";
86 malloc_snprintf(thread_name, sizeof(thread_name), "thread %u", thd_ind);
89 mallctl_thread_name_set(thread_name);
94 mallctl_thread_name_get(thread_name);
97 mallctl_thread_name_set(thread_name);