Lines Matching refs:comm
42 struct comm *comm; in thread__new() local
61 comm = comm__new(comm_str, 0, false); in thread__new()
63 if (!comm) in thread__new()
66 list_add(&comm->list, &thread->comm_list); in thread__new()
84 struct comm *comm, *tmp_comm; in thread__delete() local
103 list_for_each_entry_safe(comm, tmp_comm, &thread->comm_list, list) { in thread__delete()
104 list_del_init(&comm->list); in thread__delete()
105 comm__free(comm); in thread__delete()
208 struct comm *thread__comm(const struct thread *thread) in thread__comm()
213 return list_first_entry(&thread->comm_list, struct comm, list); in thread__comm()
216 struct comm *thread__exec_comm(const struct thread *thread) in thread__exec_comm()
218 struct comm *comm, *last = NULL, *second_last = NULL; in thread__exec_comm() local
220 list_for_each_entry(comm, &thread->comm_list, list) { in thread__exec_comm()
221 if (comm->exec) in thread__exec_comm()
222 return comm; in thread__exec_comm()
224 last = comm; in thread__exec_comm()
242 struct comm *new, *curr = thread__comm(thread); in ____thread__set_comm()
278 char *comm = NULL; in thread__set_comm_from_proc() local
284 procfs__read_str(path, &comm, &sz) == 0) { in thread__set_comm_from_proc()
285 comm[sz - 1] = '\0'; in thread__set_comm_from_proc()
286 err = thread__set_comm(thread, comm, 0); in thread__set_comm_from_proc()
294 const struct comm *comm = thread__comm(thread); in __thread__comm_str() local
296 if (!comm) in __thread__comm_str()
299 return comm__str(comm); in __thread__comm_str()
317 const char *comm = thread__comm_str(thread); in thread__comm_len() local
318 if (!comm) in thread__comm_len()
320 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()