Lines Matching full:machine

4 #include "machine.h"
98 struct machine *machine) in perf_event__synthesize_comm() argument
118 memset(event->comm.comm + size, 0, machine->id_hdr_size); in perf_event__synthesize_comm()
121 machine->id_hdr_size); in perf_event__synthesize_comm()
125 if (process(tool, event, &synth_sample, machine) != 0) in perf_event__synthesize_comm()
151 memset(event->comm.comm + size, 0, machine->id_hdr_size); in perf_event__synthesize_comm()
154 machine->id_hdr_size); in perf_event__synthesize_comm()
158 if (process(tool, event, &synth_sample, machine) != 0) { in perf_event__synthesize_comm()
173 struct machine *machine) in perf_event__synthesize_mmap_events() argument
233 memset(event->mmap.filename + size, 0, machine->id_hdr_size); in perf_event__synthesize_mmap_events()
234 event->mmap.header.size += machine->id_hdr_size; in perf_event__synthesize_mmap_events()
238 if (process(tool, event, &synth_sample, machine) != 0) { in perf_event__synthesize_mmap_events()
250 struct machine *machine) in perf_event__synthesize_modules() argument
254 struct map_groups *kmaps = &machine->kmaps; in perf_event__synthesize_modules()
256 machine->id_hdr_size)); in perf_event__synthesize_modules()
269 if (machine__is_host(machine)) in perf_event__synthesize_modules()
286 memset(event->mmap.filename + size, 0, machine->id_hdr_size); in perf_event__synthesize_modules()
287 event->mmap.header.size += machine->id_hdr_size; in perf_event__synthesize_modules()
290 event->mmap.pid = machine->pid; in perf_event__synthesize_modules()
294 if (process(tool, event, &synth_sample, machine) != 0) { in perf_event__synthesize_modules()
309 struct machine *machine) in __event__synthesize_thread() argument
312 process, machine); in __event__synthesize_thread()
316 process, machine); in __event__synthesize_thread()
322 struct machine *machine) in perf_event__synthesize_thread_map() argument
327 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
331 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); in perf_event__synthesize_thread_map()
339 process, tool, machine)) { in perf_event__synthesize_thread_map()
364 process, tool, machine)) { in perf_event__synthesize_thread_map()
379 struct machine *machine) in perf_event__synthesize_threads() argument
386 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size); in perf_event__synthesize_threads()
390 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); in perf_event__synthesize_threads()
409 process, tool, machine); in perf_event__synthesize_threads()
446 struct machine *machine, in perf_event__synthesize_kernel_mmap() argument
462 machine->id_hdr_size)); in perf_event__synthesize_kernel_mmap()
469 mmap_name = machine__mmap_name(machine, name_buff, sizeof(name_buff)); in perf_event__synthesize_kernel_mmap()
470 if (machine__is_host(machine)) { in perf_event__synthesize_kernel_mmap()
479 if (machine__is_default_guest(machine)) in perf_event__synthesize_kernel_mmap()
482 sprintf(path, "%s/proc/kallsyms", machine->root_dir); in perf_event__synthesize_kernel_mmap()
492 map = machine->vmlinux_maps[MAP__FUNCTION]; in perf_event__synthesize_kernel_mmap()
498 (sizeof(event->mmap.filename) - size) + machine->id_hdr_size); in perf_event__synthesize_kernel_mmap()
502 event->mmap.pid = machine->pid; in perf_event__synthesize_kernel_mmap()
504 err = process(tool, event, &synth_sample, machine); in perf_event__synthesize_kernel_mmap()
518 struct machine *machine) in perf_event__process_comm() argument
520 return machine__process_comm_event(machine, event); in perf_event__process_comm()
526 struct machine *machine) in perf_event__process_lost() argument
528 return machine__process_lost_event(machine, event); in perf_event__process_lost()
552 struct machine *machine) in perf_event__process_mmap() argument
554 return machine__process_mmap_event(machine, event); in perf_event__process_mmap()
560 struct machine *machine) in perf_event__process_mmap2() argument
562 return machine__process_mmap2_event(machine, event); in perf_event__process_mmap2()
575 struct machine *machine) in perf_event__process_fork() argument
577 return machine__process_fork_event(machine, event); in perf_event__process_fork()
583 struct machine *machine) in perf_event__process_exit() argument
585 return machine__process_exit_event(machine, event); in perf_event__process_exit()
617 struct machine *machine) in perf_event__process() argument
619 return machine__process_event(machine, event); in perf_event__process()
623 struct machine *machine, u8 cpumode, in thread__find_addr_map() argument
635 if (machine == NULL) { in thread__find_addr_map()
642 mg = &machine->kmaps; in thread__find_addr_map()
648 mg = &machine->kmaps; in thread__find_addr_map()
686 machine && mg != &machine->kmaps) { in thread__find_addr_map()
687 mg = &machine->kmaps; in thread__find_addr_map()
696 map__load(al->map, machine->symbol_filter); in thread__find_addr_map()
701 void thread__find_addr_location(struct thread *thread, struct machine *machine, in thread__find_addr_location() argument
705 thread__find_addr_map(thread, machine, cpumode, type, addr, al); in thread__find_addr_location()
708 machine->symbol_filter); in thread__find_addr_location()
714 struct machine *machine, in perf_event__preprocess_sample() argument
719 struct thread *thread = machine__findnew_thread(machine, sample->pid, in perf_event__preprocess_sample()
731 * Have we already created the kernel maps for this machine? in perf_event__preprocess_sample()
738 machine->vmlinux_maps[MAP__FUNCTION] == NULL) in perf_event__preprocess_sample()
739 machine__create_kernel_maps(machine); in perf_event__preprocess_sample()
741 thread__find_addr_map(thread, machine, cpumode, MAP__FUNCTION, in perf_event__preprocess_sample()
761 machine->symbol_filter); in perf_event__preprocess_sample()