Lines Matching refs:comm
32 struct comm *comm; in thread__new() local
50 comm = comm__new(comm_str, 0, false); in thread__new()
52 if (!comm) in thread__new()
55 list_add(&comm->list, &thread->comm_list); in thread__new()
68 struct comm *comm, *tmp; in thread__delete() local
76 list_for_each_entry_safe(comm, tmp, &thread->comm_list, list) { in thread__delete()
77 list_del(&comm->list); in thread__delete()
78 comm__free(comm); in thread__delete()
99 struct comm *thread__comm(const struct thread *thread) in thread__comm()
104 return list_first_entry(&thread->comm_list, struct comm, list); in thread__comm()
107 struct comm *thread__exec_comm(const struct thread *thread) in thread__exec_comm()
109 struct comm *comm, *last = NULL; in thread__exec_comm() local
111 list_for_each_entry(comm, &thread->comm_list, list) { in thread__exec_comm()
112 if (comm->exec) in thread__exec_comm()
113 return comm; in thread__exec_comm()
114 last = comm; in thread__exec_comm()
123 struct comm *new, *curr = thread__comm(thread); in __thread__set_comm()
148 const struct comm *comm = thread__comm(thread); in thread__comm_str() local
150 if (!comm) in thread__comm_str()
153 return comm__str(comm); in thread__comm_str()
160 const char *comm = thread__comm_str(thread); in thread__comm_len() local
161 if (!comm) in thread__comm_len()
163 thread->comm_len = strlen(comm); in thread__comm_len()
203 const char *comm = thread__comm_str(parent); in thread__fork() local
204 if (!comm) in thread__fork()
206 err = thread__set_comm(thread, comm, timestamp); in thread__fork()