Lines Matching refs:comm

46 		struct comm *comm;  in thread__new()  local
61 comm = comm__new(comm_str, 0, false); in thread__new()
62 if (!comm) in thread__new()
65 list_add(&comm->list, thread__comm_list(thread)); in thread__new()
91 struct comm *comm, *tmp_comm; in thread__delete() local
108 list_for_each_entry_safe(comm, tmp_comm, thread__comm_list(thread), list) { in thread__delete()
109 list_del_init(&comm->list); in thread__delete()
110 comm__free(comm); in thread__delete()
199 struct comm *thread__comm(struct thread *thread) in thread__comm()
204 return list_first_entry(thread__comm_list(thread), struct comm, list); in thread__comm()
207 struct comm *thread__exec_comm(struct thread *thread) in thread__exec_comm()
209 struct comm *comm, *last = NULL, *second_last = NULL; in thread__exec_comm() local
211 list_for_each_entry(comm, thread__comm_list(thread), list) { in thread__exec_comm()
212 if (comm->exec) in thread__exec_comm()
213 return comm; in thread__exec_comm()
215 last = comm; in thread__exec_comm()
233 struct comm *new, *curr = thread__comm(thread); in ____thread__set_comm()
269 char *comm = NULL; in thread__set_comm_from_proc() local
275 procfs__read_str(path, &comm, &sz) == 0) { in thread__set_comm_from_proc()
276 comm[sz - 1] = '\0'; in thread__set_comm_from_proc()
277 err = thread__set_comm(thread, comm, 0); in thread__set_comm_from_proc()
285 const struct comm *comm = thread__comm(thread); in __thread__comm_str() local
287 if (!comm) in __thread__comm_str()
290 return comm__str(comm); in __thread__comm_str()
304 static int __thread__comm_len(struct thread *thread, const char *comm) in __thread__comm_len() argument
306 if (!comm) in __thread__comm_len()
308 thread__set_comm_len(thread, strlen(comm)); in __thread__comm_len()
319 const char *comm; in thread__comm_len() local
322 comm = __thread__comm_str(thread); in thread__comm_len()
323 comm_len = __thread__comm_len(thread, comm); in thread__comm_len()
397 const char *comm = thread__comm_str(parent); in thread__fork() local
399 if (!comm) in thread__fork()
401 err = thread__set_comm(thread, comm, timestamp); in thread__fork()