Lines Matching refs:comm
192 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new()
194 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local
196 if (!comm) in comm__new()
199 comm->start = timestamp; in comm__new()
200 comm->exec = exec; in comm__new()
202 comm->comm_str = comm_strs__findnew(str); in comm__new()
203 if (!comm->comm_str) { in comm__new()
204 free(comm); in comm__new()
208 return comm; in comm__new()
211 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument
213 struct comm_str *new, *old = comm->comm_str; in comm__override()
220 comm->comm_str = new; in comm__override()
221 comm->start = timestamp; in comm__override()
223 comm->exec = true; in comm__override()
228 void comm__free(struct comm *comm) in comm__free() argument
230 comm_str__put(comm->comm_str); in comm__free()
231 free(comm); in comm__free()
234 const char *comm__str(const struct comm *comm) in comm__str() argument
236 return comm_str__str(comm->comm_str); in comm__str()