Lines Matching refs:comm
17 self->comm = malloc(32); in thread__new()
18 if (self->comm) in thread__new()
19 snprintf(self->comm, 32, ":%d", self->pid); in thread__new()
28 free(self->comm); in thread__delete()
32 int thread__set_comm(struct thread *self, const char *comm) in thread__set_comm() argument
36 if (self->comm) in thread__set_comm()
37 free(self->comm); in thread__set_comm()
38 self->comm = strdup(comm); in thread__set_comm()
39 err = self->comm == NULL ? -ENOMEM : 0; in thread__set_comm()
50 if (!self->comm) in thread__comm_len()
52 self->comm_len = strlen(self->comm); in thread__comm_len()
60 return fprintf(fp, "Thread %d %s\n", self->pid, self->comm) + in thread__fprintf()
114 if (self->comm) in thread__fork()
115 free(self->comm); in thread__fork()
116 self->comm = strdup(parent->comm); in thread__fork()
117 if (!self->comm) in thread__fork()