Lines Matching refs:comm

42 	struct comm *comm;  in thread__new()  local
60 comm = comm__new(comm_str, 0, false); in thread__new()
62 if (!comm) in thread__new()
65 list_add(&comm->list, &thread->comm_list); in thread__new()
83 struct comm *comm, *tmp_comm; in thread__delete() local
102 list_for_each_entry_safe(comm, tmp_comm, &thread->comm_list, list) { in thread__delete()
103 list_del_init(&comm->list); in thread__delete()
104 comm__free(comm); in thread__delete()
206 struct comm *thread__comm(const struct thread *thread) in thread__comm()
211 return list_first_entry(&thread->comm_list, struct comm, list); in thread__comm()
214 struct comm *thread__exec_comm(const struct thread *thread) in thread__exec_comm()
216 struct comm *comm, *last = NULL, *second_last = NULL; in thread__exec_comm() local
218 list_for_each_entry(comm, &thread->comm_list, list) { in thread__exec_comm()
219 if (comm->exec) in thread__exec_comm()
220 return comm; in thread__exec_comm()
222 last = comm; in thread__exec_comm()
240 struct comm *new, *curr = thread__comm(thread); in ____thread__set_comm()
276 char *comm = NULL; in thread__set_comm_from_proc() local
282 procfs__read_str(path, &comm, &sz) == 0) { in thread__set_comm_from_proc()
283 comm[sz - 1] = '\0'; in thread__set_comm_from_proc()
284 err = thread__set_comm(thread, comm, 0); in thread__set_comm_from_proc()
292 const struct comm *comm = thread__comm(thread); in __thread__comm_str() local
294 if (!comm) in __thread__comm_str()
297 return comm__str(comm); in __thread__comm_str()
315 const char *comm = thread__comm_str(thread); in thread__comm_len() local
316 if (!comm) in thread__comm_len()
318 thread->comm_len = strlen(comm); in thread__comm_len()
394 const char *comm = thread__comm_str(parent); in thread__fork() local
396 if (!comm) in thread__fork()
398 err = thread__set_comm(thread, comm, timestamp); in thread__fork()