Lines Matching full:machine
28 #include "machine.h"
434 struct machine *machine) in dso__set_module_info() argument
436 if (machine__is_host(machine)) in dso__set_module_info()
494 static int __open_dso(struct dso *dso, struct machine *machine) in __open_dso() argument
505 if (machine) in __open_dso()
506 root_dir = machine->root_dir; in __open_dso()
559 static int open_dso(struct dso *dso, struct machine *machine) in open_dso() argument
569 fd = __open_dso(dso, machine); in open_dso()
683 static void try_to_open_dso(struct dso *dso, struct machine *machine) in try_to_open_dso() argument
696 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
703 dso->data.fd = open_dso(dso, machine); in try_to_open_dso()
718 * @machine: machine object
724 int dso__data_get_fd(struct dso *dso, struct machine *machine) in dso__data_get_fd() argument
732 try_to_open_dso(dso, machine); in dso__data_get_fd()
887 static ssize_t file_read(struct dso *dso, struct machine *machine, in file_read() argument
898 try_to_open_dso(dso, machine); in file_read()
913 struct machine *machine, in dso_cache__populate() argument
933 *ret = file_read(dso, machine, cache_offset, cache->data); in dso_cache__populate()
954 struct machine *machine, in dso_cache__find() argument
960 return cache ? cache : dso_cache__populate(dso, machine, offset, ret); in dso_cache__find()
963 static ssize_t dso_cache_io(struct dso *dso, struct machine *machine, in dso_cache_io() argument
969 cache = dso_cache__find(dso, machine, offset, &ret); in dso_cache_io()
981 static ssize_t cached_io(struct dso *dso, struct machine *machine, in cached_io() argument
990 ret = dso_cache_io(dso, machine, offset, p, size, out); in cached_io()
1010 static int file_size(struct dso *dso, struct machine *machine) in file_size() argument
1022 try_to_open_dso(dso, machine); in file_size()
1044 int dso__data_file_size(struct dso *dso, struct machine *machine) in dso__data_file_size() argument
1055 return file_size(dso, machine); in dso__data_file_size()
1061 * @machine: machine object
1065 off_t dso__data_size(struct dso *dso, struct machine *machine) in dso__data_size() argument
1067 if (dso__data_file_size(dso, machine)) in dso__data_size()
1074 static ssize_t data_read_write_offset(struct dso *dso, struct machine *machine, in data_read_write_offset() argument
1078 if (dso__data_file_size(dso, machine)) in data_read_write_offset()
1088 return cached_io(dso, machine, offset, data, size, out); in data_read_write_offset()
1094 * @machine: machine object
1102 ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine, in dso__data_read_offset() argument
1108 return data_read_write_offset(dso, machine, offset, data, size, true); in dso__data_read_offset()
1114 * @machine: machine object
1122 struct machine *machine, u64 addr, in dso__data_read_addr() argument
1126 return dso__data_read_offset(dso, machine, offset, data, size); in dso__data_read_addr()
1132 * @machine: machine object
1139 ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine, in dso__data_write_cache_offs() argument
1147 return data_read_write_offset(dso, machine, offset, data, size, false); in dso__data_write_cache_offs()
1153 * @machine: machine object
1162 struct machine *machine, u64 addr, in dso__data_write_cache_addr() argument
1166 return dso__data_write_cache_offs(dso, machine, offset, data, size); in dso__data_write_cache_addr()
1182 struct dso *machine__findnew_kernel(struct machine *machine, const char *name, in machine__findnew_kernel() argument
1188 struct dso *dso = machine__findnew_dso(machine, name); in machine__findnew_kernel()
1383 void dso__read_running_kernel_build_id(struct dso *dso, struct machine *machine) in dso__read_running_kernel_build_id() argument
1387 if (machine__is_default_guest(machine)) in dso__read_running_kernel_build_id()
1389 sprintf(path, "%s/sys/kernel/notes", machine->root_dir); in dso__read_running_kernel_build_id()
1440 enum dso_type dso__type(struct dso *dso, struct machine *machine) in dso__type() argument
1445 fd = dso__data_get_fd(dso, machine); in dso__type()