Lines Matching refs:comm

39 	struct comm *comm;  in thread__new()  local
57 comm = comm__new(comm_str, 0, false); in thread__new()
59 if (!comm) in thread__new()
62 list_add(&comm->list, &thread->comm_list); in thread__new()
79 struct comm *comm, *tmp_comm; in thread__delete() local
98 list_for_each_entry_safe(comm, tmp_comm, &thread->comm_list, list) { in thread__delete()
99 list_del(&comm->list); in thread__delete()
100 comm__free(comm); in thread__delete()
174 struct comm *thread__comm(const struct thread *thread) in thread__comm()
179 return list_first_entry(&thread->comm_list, struct comm, list); in thread__comm()
182 struct comm *thread__exec_comm(const struct thread *thread) in thread__exec_comm()
184 struct comm *comm, *last = NULL; in thread__exec_comm() local
186 list_for_each_entry(comm, &thread->comm_list, list) { in thread__exec_comm()
187 if (comm->exec) in thread__exec_comm()
188 return comm; in thread__exec_comm()
189 last = comm; in thread__exec_comm()
198 struct comm *new, *curr = thread__comm(thread); in ____thread__set_comm()
234 char *comm = NULL; in thread__set_comm_from_proc() local
240 procfs__read_str(path, &comm, &sz) == 0) { in thread__set_comm_from_proc()
241 comm[sz - 1] = '\0'; in thread__set_comm_from_proc()
242 err = thread__set_comm(thread, comm, 0); in thread__set_comm_from_proc()
250 const struct comm *comm = thread__comm(thread); in __thread__comm_str() local
252 if (!comm) in __thread__comm_str()
255 return comm__str(comm); in __thread__comm_str()
273 const char *comm = thread__comm_str(thread); in thread__comm_len() local
274 if (!comm) in thread__comm_len()
276 thread->comm_len = strlen(comm); in thread__comm_len()
355 const char *comm = thread__comm_str(parent); in thread__fork() local
357 if (!comm) in thread__fork()
359 err = thread__set_comm(thread, comm, timestamp); in thread__fork()