Lines Matching refs:comm
50 struct comm *comm; in thread__new() local
66 comm = comm__new(comm_str, 0, false); in thread__new()
67 if (!comm) in thread__new()
70 list_add(&comm->list, thread__comm_list(thread)); in thread__new()
96 struct comm *comm, *tmp_comm; in thread__delete() local
113 list_for_each_entry_safe(comm, tmp_comm, thread__comm_list(thread), list) { in thread__delete()
114 list_del_init(&comm->list); in thread__delete()
115 comm__free(comm); in thread__delete()
204 static struct comm *__thread__comm(struct thread *thread) in __thread__comm()
210 return list_first_entry(thread__comm_list(thread), struct comm, list); in __thread__comm()
213 struct comm *thread__comm(struct thread *thread) in thread__comm()
215 struct comm *res = NULL; in thread__comm()
223 struct comm *thread__exec_comm(struct thread *thread) in thread__exec_comm()
225 struct comm *comm, *last = NULL, *second_last = NULL; in thread__exec_comm() local
228 list_for_each_entry(comm, thread__comm_list(thread), list) { in thread__exec_comm()
229 if (comm->exec) { in thread__exec_comm()
231 return comm; in thread__exec_comm()
234 last = comm; in thread__exec_comm()
254 struct comm *new, *curr = __thread__comm(thread); in ____thread__set_comm()
290 char *comm = NULL; in thread__set_comm_from_proc() local
296 procfs__read_str(path, &comm, &sz) == 0) { in thread__set_comm_from_proc()
297 comm[sz - 1] = '\0'; in thread__set_comm_from_proc()
298 err = thread__set_comm(thread, comm, 0); in thread__set_comm_from_proc()
307 const struct comm *comm = __thread__comm(thread); in __thread__comm_str() local
309 if (!comm) in __thread__comm_str()
312 return comm__str(comm); in __thread__comm_str()
326 static int __thread__comm_len(struct thread *thread, const char *comm) in __thread__comm_len() argument
328 if (!comm) in __thread__comm_len()
330 thread__set_comm_len(thread, strlen(comm)); in __thread__comm_len()
341 const char *comm; in thread__comm_len() local
344 comm = __thread__comm_str(thread); in thread__comm_len()
345 comm_len = __thread__comm_len(thread, comm); in thread__comm_len()
417 const char *comm = thread__comm_str(parent); in thread__fork() local
419 if (!comm) in thread__fork()
421 err = thread__set_comm(thread, comm, timestamp); in thread__fork()