Home | History | Annotate | Download | only in util

Lines Matching refs:comm

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