Lines Matching refs:comm
188 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new()
190 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local
192 if (!comm) in comm__new()
195 comm->start = timestamp; in comm__new()
196 comm->exec = exec; in comm__new()
198 comm->comm_str = comm_strs__findnew(str); in comm__new()
199 if (!comm->comm_str) { in comm__new()
200 free(comm); in comm__new()
204 return comm; in comm__new()
207 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument
209 struct comm_str *new, *old = comm->comm_str; in comm__override()
216 comm->comm_str = new; in comm__override()
217 comm->start = timestamp; in comm__override()
219 comm->exec = true; in comm__override()
224 void comm__free(struct comm *comm) in comm__free() argument
226 comm_str__put(comm->comm_str); in comm__free()
227 free(comm); in comm__free()
230 const char *comm__str(const struct comm *comm) in comm__str() argument
232 return comm_str__str(comm->comm_str); in comm__str()