Lines Matching full:machine

9 #include "util/machine.h"
52 struct machine *machine,
65 return process(tool, event, &synth_sample, machine);
154 struct machine *machine,
163 if (machine__is_host(machine)) {
170 *tgid = machine->pid;
181 memset(event->comm.comm + size, 0, machine->id_hdr_size);
184 machine->id_hdr_size);
193 struct machine *machine)
198 if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid,
202 if (perf_tool__process_synth_event(tool, event, machine, process) != 0)
225 struct machine *machine)
235 machine->id_hdr_size));
252 machine->id_hdr_size);
254 if (perf_tool__process_synth_event(tool, event, machine, process) != 0)
264 struct machine *machine)
266 memset(&event->fork, 0, sizeof(event->fork) + machine->id_hdr_size);
285 event->fork.header.size = (sizeof(event->fork) + machine->id_hdr_size);
287 if (perf_tool__process_synth_event(tool, event, machine, process) != 0)
367 struct machine *machine,
387 dso = dsos__findnew_id(&machine->dsos, event->filename, &id);
425 struct machine *machine,
437 if (machine__is_default_guest(machine))
441 machine->root_dir, pid, pid);
481 machine->root_dir, pid, pid);
491 if (machine__is_host(machine))
522 memset(event->mmap2.filename + size, 0, machine->id_hdr_size +
524 event->mmap2.header.size += machine->id_hdr_size;
529 perf_record_mmap2__read_build_id(&event->mmap2, machine, false);
531 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) {
549 struct machine *machine)
565 event->cgroup.header.size = event_size + path_len + machine->id_hdr_size;
575 memset(event->cgroup.path + path_len, 0, machine->id_hdr_size);
577 if (perf_tool__process_synth_event(tool, event, machine, process) < 0) {
589 struct machine *machine)
597 process, machine) < 0)
622 mount_len, process, machine);
635 struct machine *machine)
654 process, machine) < 0)
662 struct machine *machine __maybe_unused)
671 struct machine *machine;
691 memset(event->mmap2.filename + size, 0, args->machine->id_hdr_size);
692 event->mmap2.header.size += args->machine->id_hdr_size;
695 event->mmap2.pid = args->machine->pid;
699 perf_record_mmap2__read_build_id(&event->mmap2, args->machine, false);
705 memset(event->mmap.filename + size, 0, args->machine->id_hdr_size);
706 event->mmap.header.size += args->machine->id_hdr_size;
709 event->mmap.pid = args->machine->pid;
714 if (perf_tool__process_synth_event(args->tool, event, args->machine, args->process) != 0)
721 struct machine *machine)
724 struct maps *maps = machine__kernel_maps(machine);
728 .machine = machine,
734 args.event = zalloc(size + machine->id_hdr_size);
745 if (machine__is_host(machine))
766 const struct perf_tool *tool, struct machine *machine,
778 process, machine);
784 tgid, process, machine) < 0)
793 process, machine, mmap_data))
799 if (machine__is_default_guest(machine))
803 machine->root_dir, pid);
819 if (perf_event__prepare_comm(comm_event, pid, _pid, machine,
825 ppid, process, machine) < 0)
829 tgid, process, machine) < 0)
835 if (perf_tool__process_synth_event(tool, comm_event, machine, process) != 0)
842 process, machine, mmap_data);
858 struct machine *machine,
865 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
869 mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size);
873 fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
879 machine->id_hdr_size);
888 process, tool, machine,
914 process, tool, machine,
934 struct machine *machine,
948 comm_event = malloc(sizeof(comm_event->comm) + machine->id_hdr_size);
952 mmap_event = malloc(sizeof(mmap_event->mmap2) + machine->id_hdr_size);
956 fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
962 machine->id_hdr_size);
980 tool, machine, needs_mmap, mmap_data);
998 struct machine *machine;
1011 args->machine,
1020 struct machine *machine,
1035 if (machine__is_default_guest(machine))
1038 snprintf(proc_path, sizeof(proc_path), "%s/proc", machine->root_dir);
1050 machine,
1071 args[i].machine = machine;
1109 struct machine *machine __maybe_unused)
1116 struct machine *machine)
1121 struct map *map = machine__kernel_map(machine);
1137 event = zalloc(size + machine->id_hdr_size);
1144 if (machine__is_host(machine)) {
1156 "%s%s", machine->mmap_name, kmap->ref_reloc_sym->name) + 1;
1160 (sizeof(event->mmap2.filename) - size) + machine->id_hdr_size);
1164 event->mmap2.pid = machine->pid;
1166 perf_record_mmap2__read_build_id(&event->mmap2, machine, true);
1169 "%s%s", machine->mmap_name, kmap->ref_reloc_sym->name) + 1;
1173 (sizeof(event->mmap.filename) - size) + machine->id_hdr_size);
1177 event->mmap.pid = machine->pid;
1180 err = perf_tool__process_synth_event(tool, event, machine, process);
1188 struct machine *machine)
1192 err = __perf_event__synthesize_kernel_mmap(tool, process, machine);
1196 return perf_event__synthesize_extra_kmaps(tool, process, machine);
1202 struct machine *machine)
1229 err = process(tool, event, NULL, machine);
1352 struct machine *machine)
1361 err = process(tool, (union perf_event *) event, NULL, machine);
1370 struct machine *machine)
1400 err = process(tool, (union perf_event *) event, NULL, machine);
1410 struct machine *machine)
1425 return process(tool, (union perf_event *) &event, NULL, machine);
1431 struct machine *machine)
1442 return process(tool, (union perf_event *) &event, NULL, machine);
1834 struct evlist *evlist, struct machine *machine, size_t from)
1883 err = process(tool, ev, NULL, machine);
1918 err = process(tool, ev, NULL, machine);
1926 struct evlist *evlist, struct machine *machine)
1928 return __perf_event__synthesize_id_index(tool, process, evlist, machine, 0);
1931 int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool,
1956 return perf_event__synthesize_thread_map(tool, threads, process, machine,
1959 return perf_event__synthesize_threads(tool, process, machine,
1966 int machine__synthesize_threads(struct machine *machine, struct target *target,
1970 return __machine__synthesize_threads(machine, NULL, target, threads,
2234 struct machine *machine,
2253 ev.build_id.pid = machine->pid;
2274 return process(tool, &ev, sample, machine);
2279 struct machine *machine,
2330 return process(tool, &ev, sample, machine);