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