Lines Matching refs:comm
42 struct comm *comm; in thread__new() local
62 comm = comm__new(comm_str, 0, false); in thread__new()
64 if (!comm) in thread__new()
67 list_add(&comm->list, &thread->comm_list); in thread__new()
85 struct comm *comm, *tmp_comm; in thread__delete() local
104 list_for_each_entry_safe(comm, tmp_comm, &thread->comm_list, list) { in thread__delete()
105 list_del_init(&comm->list); in thread__delete()
106 comm__free(comm); in thread__delete()
209 struct comm *thread__comm(const struct thread *thread) in thread__comm()
214 return list_first_entry(&thread->comm_list, struct comm, list); in thread__comm()
217 struct comm *thread__exec_comm(const struct thread *thread) in thread__exec_comm()
219 struct comm *comm, *last = NULL, *second_last = NULL; in thread__exec_comm() local
221 list_for_each_entry(comm, &thread->comm_list, list) { in thread__exec_comm()
222 if (comm->exec) in thread__exec_comm()
223 return comm; in thread__exec_comm()
225 last = comm; in thread__exec_comm()
243 struct comm *new, *curr = thread__comm(thread); in ____thread__set_comm()
279 char *comm = NULL; in thread__set_comm_from_proc() local
285 procfs__read_str(path, &comm, &sz) == 0) { in thread__set_comm_from_proc()
286 comm[sz - 1] = '\0'; in thread__set_comm_from_proc()
287 err = thread__set_comm(thread, comm, 0); in thread__set_comm_from_proc()
295 const struct comm *comm = thread__comm(thread); in __thread__comm_str() local
297 if (!comm) in __thread__comm_str()
300 return comm__str(comm); in __thread__comm_str()
318 const char *comm = thread__comm_str(thread); in thread__comm_len() local
319 if (!comm) in thread__comm_len()
321 thread->comm_len = strlen(comm); in thread__comm_len()
395 const char *comm = thread__comm_str(parent); in thread__fork() local
397 if (!comm) in thread__fork()
399 err = thread__set_comm(thread, comm, timestamp); in thread__fork()