Lines Matching full:machine
8 #include "machine.h"
78 static struct machine *setup_fake_machine(struct machines *machines) in setup_fake_machine()
80 struct machine *machine = machines__find(machines, HOST_KERNEL_ID); in setup_fake_machine() local
83 if (machine == NULL) { in setup_fake_machine()
84 pr_debug("Not enough memory for machine setup\n"); in setup_fake_machine()
91 thread = machine__findnew_thread(machine, fake_threads[i].pid, in setup_fake_machine()
113 machine__process_mmap_event(machine, &fake_mmap_event); in setup_fake_machine()
120 dso = __dsos__findnew(&machine->user_dsos, in setup_fake_machine()
141 return machine; in setup_fake_machine()
144 pr_debug("Not enough memory for machine setup\n"); in setup_fake_machine()
145 machine__delete_threads(machine); in setup_fake_machine()
146 machine__delete(machine); in setup_fake_machine()
198 static int add_hist_entries(struct perf_evlist *evlist, struct machine *machine) in add_hist_entries() argument
221 if (perf_event__preprocess_sample(&event, machine, &al, in add_hist_entries()
243 if (perf_event__preprocess_sample(&event, machine, &al, in add_hist_entries()
434 struct machine *machine = NULL; in test__hists_link() local
455 machine = setup_fake_machine(&machines); in test__hists_link()
456 if (!machine) in test__hists_link()
460 machine__fprintf(machine, stderr); in test__hists_link()
463 err = add_hist_entries(evlist, machine); in test__hists_link()