Lines Matching full:machine

16 /* Native host kernel uses -1 as pid index in machine */
20 struct machine { struct
36 struct map *machine__kernel_map(struct machine *machine, enum map_type type) in machine__kernel_map() argument
38 return machine->vmlinux_maps[type]; in machine__kernel_map()
41 struct thread *machine__find_thread(struct machine *machine, pid_t tid);
43 int machine__process_comm_event(struct machine *machine, union perf_event *event);
44 int machine__process_exit_event(struct machine *machine, union perf_event *event);
45 int machine__process_fork_event(struct machine *machine, union perf_event *event);
46 int machine__process_lost_event(struct machine *machine, union perf_event *event);
47 int machine__process_mmap_event(struct machine *machine, union perf_event *event);
48 int machine__process_mmap2_event(struct machine *machine, union perf_event *event);
49 int machine__process_event(struct machine *machine, union perf_event *event);
51 typedef void (*machine__process_t)(struct machine *machine, void *data);
54 struct machine host;
65 struct machine *machines__add(struct machines *machines, pid_t pid,
67 struct machine *machines__find_host(struct machines *machines);
68 struct machine *machines__find(struct machines *machines, pid_t pid);
69 struct machine *machines__findnew(struct machines *machines, pid_t pid);
72 char *machine__mmap_name(struct machine *machine, char *bf, size_t size);
77 int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
78 void machine__exit(struct machine *machine);
79 void machine__delete_dead_threads(struct machine *machine);
80 void machine__delete_threads(struct machine *machine);
81 void machine__delete(struct machine *machine);
83 struct branch_info *machine__resolve_bstack(struct machine *machine,
86 struct mem_info *machine__resolve_mem(struct machine *machine,
89 int machine__resolve_callchain(struct machine *machine,
100 static inline bool machine__is_default_guest(struct machine *machine) in machine__is_default_guest() argument
102 return machine ? machine->pid == DEFAULT_GUEST_KERNEL_ID : false; in machine__is_default_guest()
105 static inline bool machine__is_host(struct machine *machine) in machine__is_host() argument
107 return machine ? machine->pid == HOST_KERNEL_ID : false; in machine__is_host()
110 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid,
113 size_t machine__fprintf(struct machine *machine, FILE *fp);
116 struct symbol *machine__find_kernel_symbol(struct machine *machine, in machine__find_kernel_symbol() argument
121 return map_groups__find_symbol(&machine->kmaps, type, addr, in machine__find_kernel_symbol()
126 struct symbol *machine__find_kernel_function(struct machine *machine, u64 addr, in machine__find_kernel_function() argument
130 return machine__find_kernel_symbol(machine, MAP__FUNCTION, addr, in machine__find_kernel_function()
135 struct symbol *machine__find_kernel_function_by_name(struct machine *machine, in machine__find_kernel_function_by_name() argument
140 return map_groups__find_function_by_name(&machine->kmaps, name, mapp, in machine__find_kernel_function_by_name()
144 struct map *machine__new_module(struct machine *machine, u64 start,
147 int machine__load_kallsyms(struct machine *machine, const char *filename,
149 int machine__load_vmlinux_path(struct machine *machine, enum map_type type,
152 size_t machine__fprintf_dsos_buildid(struct machine *machine, FILE *fp,
158 void machine__destroy_kernel_maps(struct machine *machine);
159 int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel);
160 int machine__create_kernel_maps(struct machine *machine);
166 size_t machine__fprintf_vmlinux_path(struct machine *machine, FILE *fp);