Lines Matching refs:comm
107 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new()
109 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local
111 if (!comm) in comm__new()
114 comm->start = timestamp; in comm__new()
115 comm->exec = exec; in comm__new()
117 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new()
118 if (!comm->comm_str) { in comm__new()
119 free(comm); in comm__new()
123 return comm; in comm__new()
126 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument
128 struct comm_str *new, *old = comm->comm_str; in comm__override()
135 comm->comm_str = new; in comm__override()
136 comm->start = timestamp; in comm__override()
138 comm->exec = true; in comm__override()
143 void comm__free(struct comm *comm) in comm__free() argument
145 comm_str__put(comm->comm_str); in comm__free()
146 free(comm); in comm__free()
149 const char *comm__str(const struct comm *comm) in comm__str() argument
151 return comm->comm_str->str; in comm__str()