2 #define _PERF_SYMBOL_ 1
4 #include <linux/types.h>
10 struct rb_node rb_node;
21 struct list_head node;
23 struct symbol *(*find_symbol)(struct dso *, u64 ip);
24 unsigned int sym_priv_size;
25 unsigned char prelinked;
29 const char *sym_hist_filter;
31 typedef int (*symbol_filter_t)(struct dso *self, struct symbol *sym);
33 struct dso *dso__new(const char *name, unsigned int sym_priv_size);
34 void dso__delete(struct dso *self);
36 static inline void *dso__sym_priv(struct dso *self, struct symbol *sym)
38 return ((void *)sym) - self->sym_priv_size;
41 struct symbol *dso__find_symbol(struct dso *self, u64 ip);
43 int dso__load_kernel(struct dso *self, const char *vmlinux,
44 symbol_filter_t filter, int verbose);
45 int dso__load(struct dso *self, symbol_filter_t filter, int verbose);
47 size_t dso__fprintf(struct dso *self, FILE *fp);
49 void symbol__init(void);
50 #endif /* _PERF_SYMBOL_ */