Lines Matching refs:comm
57 self->comm = malloc(32);
58 if (self->comm)
59 snprintf(self->comm, 32, ":%d", self->pid);
68 free(self->comm);
72 int thread__set_comm(struct thread *self, const char *comm)
76 if (self->comm)
77 free(self->comm);
78 self->comm = strdup(comm);
79 err = self->comm == NULL ? -ENOMEM : 0;
90 if (!self->comm)
92 self->comm_len = strlen(self->comm);
100 return fprintf(fp, "Thread %d %s\n", self->pid, self->comm) +
154 if (self->comm)
155 free(self->comm);
156 self->comm = strdup(parent->comm);
157 if (!self->comm)