2 #define _PERF_MODULE_ 1
4 #include <linux/types.h>
6 #include <linux/list.h>
7 #include <linux/rbtree.h>
10 struct rb_node rb_node
;
18 struct list_head node
;
20 struct section
*(*find_section
)(struct sec_dso
*, const char *name
);
25 struct rb_node rb_node
;
29 struct sec_dso
*sections
;
34 struct list_head node
;
36 struct module
*(*find_module
)(struct mod_dso
*, const char *name
);
40 struct sec_dso
*sec_dso__new_dso(const char *name
);
41 void sec_dso__delete_sections(struct sec_dso
*self
);
42 void sec_dso__delete_self(struct sec_dso
*self
);
43 size_t sec_dso__fprintf(struct sec_dso
*self
, FILE *fp
);
44 struct section
*sec_dso__find_section(struct sec_dso
*self
, const char *name
);
46 struct mod_dso
*mod_dso__new_dso(const char *name
);
47 void mod_dso__delete_modules(struct mod_dso
*self
);
48 void mod_dso__delete_self(struct mod_dso
*self
);
49 size_t mod_dso__fprintf(struct mod_dso
*self
, FILE *fp
);
50 struct module
*mod_dso__find_module(struct mod_dso
*self
, const char *name
);
51 int mod_dso__load_modules(struct mod_dso
*dso
);
53 #endif /* _PERF_MODULE_ */