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()
210 struct machine *machine, in call_path_from_sample() argument
215 u64 kernel_start = machine__kernel_start(machine); in call_path_from_sample()
296 struct machine *machine, struct comm **comm_ptr) in db_export__threads() argument
307 err = db_export__thread(dbe, main_thread, machine, main_thread); in db_export__threads()
314 comm = machine__thread_exec_comm(machine, main_thread); in db_export__threads()
330 err = db_export__thread(dbe, thread, machine, main_thread); in db_export__threads()
361 struct machine *machine; in db_export__sample() local
368 machine = maps__machine(al->maps); in db_export__sample()
369 err = db_export__machine(dbe, machine); in db_export__sample()
373 main_thread = thread__main_thread(machine, thread); in db_export__sample()
375 err = db_export__threads(dbe, thread, main_thread, machine, &comm); in db_export__sample()
389 struct call_path *cp = call_path_from_sample(dbe, machine, in db_export__sample()
528 static int db_export__pid_tid(struct db_export *dbe, struct machine *machine, in db_export__pid_tid() argument
532 struct thread *thread = machine__find_thread(machine, pid, tid); in db_export__pid_tid()
541 main_thread = thread__main_thread(machine, thread); in db_export__pid_tid()
543 err = db_export__threads(dbe, thread, main_thread, machine, comm_ptr); in db_export__pid_tid()
555 struct perf_sample *sample, struct machine *machine) in db_export__switch() argument
570 err = db_export__machine(dbe, machine); in db_export__switch()
574 err = db_export__pid_tid(dbe, machine, sample->pid, sample->tid, in db_export__switch()
583 err = db_export__pid_tid(dbe, machine, pid, tid, &th_b_id, in db_export__switch()
611 return dbe->export_context_switch(dbe, db_id, machine, sample, in db_export__switch()