Lines Matching refs:machine
49 int db_export__machine(struct db_export *dbe, struct machine *machine) in db_export__machine() argument
51 if (machine->db_id) in db_export__machine()
54 machine->db_id = ++dbe->machine_last_db_id; in db_export__machine()
57 return dbe->export_machine(dbe, machine); in db_export__machine()
63 struct machine *machine, struct thread *main_thread) in db_export__thread() argument
77 machine); in db_export__thread()
147 struct machine *machine) in db_export__dso() argument
155 return dbe->export_dso(dbe, dso, machine); in db_export__dso()
184 err = db_export__dso(dbe, dso, al->maps->machine); in db_ids_from_al()
210 struct machine *machine, in call_path_from_sample() argument
215 u64 kernel_start = machine__kernel_start(machine); in call_path_from_sample()
292 struct machine *machine, struct comm **comm_ptr) in db_export__threads() argument
303 err = db_export__thread(dbe, main_thread, machine, main_thread); in db_export__threads()
310 comm = machine__thread_exec_comm(machine, main_thread); in db_export__threads()
326 err = db_export__thread(dbe, thread, machine, main_thread); in db_export__threads()
363 err = db_export__machine(dbe, al->maps->machine); in db_export__sample()
367 main_thread = thread__main_thread(al->maps->machine, thread); in db_export__sample()
369 err = db_export__threads(dbe, thread, main_thread, al->maps->machine, &comm); in db_export__sample()
383 struct call_path *cp = call_path_from_sample(dbe, al->maps->machine, in db_export__sample()
524 static int db_export__pid_tid(struct db_export *dbe, struct machine *machine, in db_export__pid_tid() argument
528 struct thread *thread = machine__find_thread(machine, pid, tid); in db_export__pid_tid()
537 main_thread = thread__main_thread(machine, thread); in db_export__pid_tid()
539 err = db_export__threads(dbe, thread, main_thread, machine, comm_ptr); in db_export__pid_tid()
551 struct perf_sample *sample, struct machine *machine) in db_export__switch() argument
566 err = db_export__machine(dbe, machine); in db_export__switch()
570 err = db_export__pid_tid(dbe, machine, sample->pid, sample->tid, in db_export__switch()
579 err = db_export__pid_tid(dbe, machine, pid, tid, &th_b_id, in db_export__switch()
607 return dbe->export_context_switch(dbe, db_id, machine, sample, in db_export__switch()