Lines Matching refs:comm
19 self->comm = malloc(32); in thread__new()
20 if (self->comm) in thread__new()
21 snprintf(self->comm, 32, ":%d", self->tid); in thread__new()
30 free(self->comm); in thread__delete()
34 int thread__set_comm(struct thread *self, const char *comm) in thread__set_comm() argument
38 if (self->comm) in thread__set_comm()
39 free(self->comm); in thread__set_comm()
40 self->comm = strdup(comm); in thread__set_comm()
41 err = self->comm == NULL ? -ENOMEM : 0; in thread__set_comm()
51 if (!self->comm) in thread__comm_len()
53 self->comm_len = strlen(self->comm); in thread__comm_len()
61 return fprintf(fp, "Thread %d %s\n", thread->tid, thread->comm) + in thread__fprintf()
76 if (self->comm) in thread__fork()
77 free(self->comm); in thread__fork()
78 self->comm = strdup(parent->comm); in thread__fork()
79 if (!self->comm) in thread__fork()