symbol.h (5da50258584469ddfee6545feb4eb2252a8d7e7b) symbol.h (6cfcc53ed4f3ecb9319e73a03f34f1eddcb644dd)
1#ifndef _PERF_SYMBOL_
2#define _PERF_SYMBOL_ 1
3
4#include <linux/types.h>
5#include "types.h"
6#include <linux/list.h>
7#include <linux/rbtree.h>
1#ifndef _PERF_SYMBOL_
2#define _PERF_SYMBOL_ 1
3
4#include <linux/types.h>
5#include "types.h"
6#include <linux/list.h>
7#include <linux/rbtree.h>
8#include "module.h"
8
9struct symbol {
10 struct rb_node rb_node;
11 u64 start;
12 u64 end;
13 u64 obj_start;
14 u64 hist_sum;
15 u64 *hist;
9
10struct symbol {
11 struct rb_node rb_node;
12 u64 start;
13 u64 end;
14 u64 obj_start;
15 u64 hist_sum;
16 u64 *hist;
17 struct module *module;
16 void *priv;
17 char name[0];
18};
19
20struct dso {
21 struct list_head node;
22 struct rb_root syms;
23 struct symbol *(*find_symbol)(struct dso *, u64 ip);

--- 12 unchanged lines hidden (view full) ---

36static inline void *dso__sym_priv(struct dso *self, struct symbol *sym)
37{
38 return ((void *)sym) - self->sym_priv_size;
39}
40
41struct symbol *dso__find_symbol(struct dso *self, u64 ip);
42
43int dso__load_kernel(struct dso *self, const char *vmlinux,
18 void *priv;
19 char name[0];
20};
21
22struct dso {
23 struct list_head node;
24 struct rb_root syms;
25 struct symbol *(*find_symbol)(struct dso *, u64 ip);

--- 12 unchanged lines hidden (view full) ---

38static inline void *dso__sym_priv(struct dso *self, struct symbol *sym)
39{
40 return ((void *)sym) - self->sym_priv_size;
41}
42
43struct symbol *dso__find_symbol(struct dso *self, u64 ip);
44
45int dso__load_kernel(struct dso *self, const char *vmlinux,
44 symbol_filter_t filter, int verbose);
46 symbol_filter_t filter, int verbose, int modules);
47int dso__load_modules(struct dso *self, symbol_filter_t filter, int verbose);
45int dso__load(struct dso *self, symbol_filter_t filter, int verbose);
46
47size_t dso__fprintf(struct dso *self, FILE *fp);
48
49void symbol__init(void);
50#endif /* _PERF_SYMBOL_ */
48int dso__load(struct dso *self, symbol_filter_t filter, int verbose);
49
50size_t dso__fprintf(struct dso *self, FILE *fp);
51
52void symbol__init(void);
53#endif /* _PERF_SYMBOL_ */