Lines Matching refs:machines

254 void machines__init(struct machines *machines)  in machines__init()  argument
256 machine__init(&machines->host, "", HOST_KERNEL_ID); in machines__init()
257 machines->guests = RB_ROOT_CACHED; in machines__init()
260 void machines__exit(struct machines *machines) in machines__exit() argument
262 machine__exit(&machines->host); in machines__exit()
266 struct machine *machines__add(struct machines *machines, pid_t pid, in machines__add() argument
269 struct rb_node **p = &machines->guests.rb_root.rb_node; in machines__add()
294 rb_insert_color_cached(&machine->rb_node, &machines->guests, leftmost); in machines__add()
299 void machines__set_comm_exec(struct machines *machines, bool comm_exec) in machines__set_comm_exec() argument
303 machines->host.comm_exec = comm_exec; in machines__set_comm_exec()
305 for (nd = rb_first_cached(&machines->guests); nd; nd = rb_next(nd)) { in machines__set_comm_exec()
312 struct machine *machines__find(struct machines *machines, pid_t pid) in machines__find() argument
314 struct rb_node **p = &machines->guests.rb_root.rb_node; in machines__find()
320 return &machines->host; in machines__find()
338 struct machine *machines__findnew(struct machines *machines, pid_t pid) in machines__findnew() argument
342 struct machine *machine = machines__find(machines, pid); in machines__findnew()
367 machine = machines__add(machines, pid, root_dir); in machines__findnew()
372 struct machine *machines__find_guest(struct machines *machines, pid_t pid) in machines__find_guest() argument
374 struct machine *machine = machines__find(machines, pid); in machines__find_guest()
377 machine = machines__findnew(machines, DEFAULT_GUEST_KERNEL_ID); in machines__find_guest()
381 void machines__process_guests(struct machines *machines, in machines__process_guests() argument
386 for (nd = rb_first_cached(&machines->guests); nd; nd = rb_next(nd)) { in machines__process_guests()
392 void machines__set_id_hdr_size(struct machines *machines, u16 id_hdr_size) in machines__set_id_hdr_size() argument
397 machines->host.id_hdr_size = id_hdr_size; in machines__set_id_hdr_size()
399 for (node = rb_first_cached(&machines->guests); node; in machines__set_id_hdr_size()
926 size_t machines__fprintf_dsos(struct machines *machines, FILE *fp) in machines__fprintf_dsos() argument
929 size_t ret = __dsos__fprintf(&machines->host.dsos.head, fp); in machines__fprintf_dsos()
931 for (nd = rb_first_cached(&machines->guests); nd; nd = rb_next(nd)) { in machines__fprintf_dsos()
945 size_t machines__fprintf_dsos_buildid(struct machines *machines, FILE *fp, in machines__fprintf_dsos_buildid() argument
949 size_t ret = machine__fprintf_dsos_buildid(&machines->host, fp, skip, parm); in machines__fprintf_dsos_buildid()
951 for (nd = rb_first_cached(&machines->guests); nd; nd = rb_next(nd)) { in machines__fprintf_dsos_buildid()
1238 int machines__create_guest_kernel_maps(struct machines *machines) in machines__create_guest_kernel_maps() argument
1250 machines__create_kernel_maps(machines, DEFAULT_GUEST_KERNEL_ID); in machines__create_guest_kernel_maps()
1278 machines__create_kernel_maps(machines, pid); in machines__create_guest_kernel_maps()
1287 void machines__destroy_kernel_maps(struct machines *machines) in machines__destroy_kernel_maps() argument
1289 struct rb_node *next = rb_first_cached(&machines->guests); in machines__destroy_kernel_maps()
1291 machine__destroy_kernel_maps(&machines->host); in machines__destroy_kernel_maps()
1297 rb_erase_cached(&pos->rb_node, &machines->guests); in machines__destroy_kernel_maps()
1302 int machines__create_kernel_maps(struct machines *machines, pid_t pid) in machines__create_kernel_maps() argument
1304 struct machine *machine = machines__findnew(machines, pid); in machines__create_kernel_maps()
3013 int machines__for_each_thread(struct machines *machines, in machines__for_each_thread() argument
3020 rc = machine__for_each_thread(&machines->host, fn, priv); in machines__for_each_thread()
3024 for (nd = rb_first_cached(&machines->guests); nd; nd = rb_next(nd)) { in machines__for_each_thread()