Lines Matching refs:dso
103 #define DSO__SWAP(dso, type, val) \ argument
106 BUG_ON(dso->needs_swap == DSO_SWAP__UNSET); \
107 if (dso->needs_swap == DSO_SWAP__YES) { \
147 struct dso { struct
223 #define dso__for_each_symbol(dso, pos, n) \ argument
224 symbols__for_each_entry(&(dso)->symbols, pos, n)
226 static inline void dso__set_loaded(struct dso *dso) in dso__set_loaded() argument
228 dso->loaded = true; in dso__set_loaded()
231 struct dso *dso__new_id(const char *name, struct dso_id *id);
232 struct dso *dso__new(const char *name);
233 void dso__delete(struct dso *dso);
235 int dso__cmp_id(struct dso *a, struct dso *b);
236 void dso__set_short_name(struct dso *dso, const char *name, bool name_allocated);
237 void dso__set_long_name(struct dso *dso, const char *name, bool name_allocated);
239 int dso__name_len(const struct dso *dso);
241 struct dso *dso__get(struct dso *dso);
242 void dso__put(struct dso *dso);
244 static inline void __dso__zput(struct dso **dso) in __dso__zput() argument
246 dso__put(*dso); in __dso__zput()
247 *dso = NULL; in __dso__zput()
250 #define dso__zput(dso) __dso__zput(&dso) argument
252 bool dso__loaded(const struct dso *dso);
254 static inline bool dso__has_symbols(const struct dso *dso) in dso__has_symbols() argument
256 return !RB_EMPTY_ROOT(&dso->symbols.rb_root); in dso__has_symbols()
259 bool dso__sorted_by_name(const struct dso *dso);
260 void dso__set_sorted_by_name(struct dso *dso);
261 void dso__sort_by_name(struct dso *dso);
263 void dso__set_build_id(struct dso *dso, struct build_id *bid);
264 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid);
265 void dso__read_running_kernel_build_id(struct dso *dso,
267 int dso__kernel_module_get_build_id(struct dso *dso, const char *root_dir);
269 char dso__symtab_origin(const struct dso *dso);
270 int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type type,
273 bool dso__needs_decompress(struct dso *dso);
274 int dso__decompress_kmodule_fd(struct dso *dso, const char *name);
275 int dso__decompress_kmodule_path(struct dso *dso, const char *name,
293 void dso__set_module_info(struct dso *dso, struct kmod_path *m,
341 int dso__data_get_fd(struct dso *dso, struct machine *machine);
342 void dso__data_put_fd(struct dso *dso);
343 void dso__data_close(struct dso *dso);
345 int dso__data_file_size(struct dso *dso, struct machine *machine);
346 off_t dso__data_size(struct dso *dso, struct machine *machine);
347 ssize_t dso__data_read_offset(struct dso *dso, struct machine *machine,
349 ssize_t dso__data_read_addr(struct dso *dso, struct map *map,
352 bool dso__data_status_seen(struct dso *dso, enum dso_data_status_seen by);
353 ssize_t dso__data_write_cache_offs(struct dso *dso, struct machine *machine,
355 ssize_t dso__data_write_cache_addr(struct dso *dso, struct map *map,
360 struct dso *machine__findnew_kernel(struct machine *machine, const char *name,
363 void dso__reset_find_symbol_cache(struct dso *dso);
365 size_t dso__fprintf_symbols_by_name(struct dso *dso, FILE *fp);
366 size_t dso__fprintf(struct dso *dso, FILE *fp);
368 static inline bool dso__is_vmlinux(struct dso *dso) in dso__is_vmlinux() argument
370 return dso->binary_type == DSO_BINARY_TYPE__VMLINUX || in dso__is_vmlinux()
371 dso->binary_type == DSO_BINARY_TYPE__GUEST_VMLINUX; in dso__is_vmlinux()
374 static inline bool dso__is_kcore(struct dso *dso) in dso__is_kcore() argument
376 return dso->binary_type == DSO_BINARY_TYPE__KCORE || in dso__is_kcore()
377 dso->binary_type == DSO_BINARY_TYPE__GUEST_KCORE; in dso__is_kcore()
380 static inline bool dso__is_kallsyms(struct dso *dso) in dso__is_kallsyms() argument
382 return dso->kernel && dso->long_name[0] != '/'; in dso__is_kallsyms()
385 void dso__free_a2l(struct dso *dso);
387 enum dso_type dso__type(struct dso *dso, struct machine *machine);
389 int dso__strerror_load(struct dso *dso, char *buf, size_t buflen);