2 #define _PERF_SYMBOL_ 1
4 #include <linux/types.h>
6 #include <linux/list.h>
7 #include <linux/rbtree.h>
11 struct rb_node rb_node;
17 struct module *module;
23 struct list_head node;
25 struct symbol *(*find_symbol)(struct dso *, u64 ip);
26 unsigned int sym_priv_size;
27 unsigned char prelinked;
31 const char *sym_hist_filter;
33 typedef int (*symbol_filter_t)(struct dso *self, struct symbol *sym);
35 struct dso *dso__new(const char *name, unsigned int sym_priv_size);
36 void dso__delete(struct dso *self);
38 static inline void *dso__sym_priv(struct dso *self, struct symbol *sym)
40 return ((void *)sym) - self->sym_priv_size;
43 struct symbol *dso__find_symbol(struct dso *self, u64 ip);
45 int dso__load_kernel(struct dso *self, const char *vmlinux,
46 symbol_filter_t filter, int verbose, int modules);
47 int dso__load_modules(struct dso *self, symbol_filter_t filter, int verbose);
48 int dso__load(struct dso *self, symbol_filter_t filter, int verbose);
50 size_t dso__fprintf(struct dso *self, FILE *fp);
52 void symbol__init(void);
53 #endif /* _PERF_SYMBOL_ */