diff options
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 68e09557c951..8b6113503863 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/kobject.h> | 16 | #include <linux/kobject.h> |
17 | #include <linux/moduleparam.h> | 17 | #include <linux/moduleparam.h> |
18 | #include <linux/marker.h> | 18 | #include <linux/marker.h> |
19 | #include <linux/tracepoint.h> | ||
19 | #include <asm/local.h> | 20 | #include <asm/local.h> |
20 | 21 | ||
21 | #include <asm/module.h> | 22 | #include <asm/module.h> |
@@ -331,6 +332,10 @@ struct module | |||
331 | struct marker *markers; | 332 | struct marker *markers; |
332 | unsigned int num_markers; | 333 | unsigned int num_markers; |
333 | #endif | 334 | #endif |
335 | #ifdef CONFIG_TRACEPOINTS | ||
336 | struct tracepoint *tracepoints; | ||
337 | unsigned int num_tracepoints; | ||
338 | #endif | ||
334 | 339 | ||
335 | #ifdef CONFIG_MODULE_UNLOAD | 340 | #ifdef CONFIG_MODULE_UNLOAD |
336 | /* What modules depend on me? */ | 341 | /* What modules depend on me? */ |
@@ -454,6 +459,9 @@ extern void print_modules(void); | |||
454 | 459 | ||
455 | extern void module_update_markers(void); | 460 | extern void module_update_markers(void); |
456 | 461 | ||
462 | extern void module_update_tracepoints(void); | ||
463 | extern int module_get_iter_tracepoints(struct tracepoint_iter *iter); | ||
464 | |||
457 | #else /* !CONFIG_MODULES... */ | 465 | #else /* !CONFIG_MODULES... */ |
458 | #define EXPORT_SYMBOL(sym) | 466 | #define EXPORT_SYMBOL(sym) |
459 | #define EXPORT_SYMBOL_GPL(sym) | 467 | #define EXPORT_SYMBOL_GPL(sym) |
@@ -558,6 +566,15 @@ static inline void module_update_markers(void) | |||
558 | { | 566 | { |
559 | } | 567 | } |
560 | 568 | ||
569 | static inline void module_update_tracepoints(void) | ||
570 | { | ||
571 | } | ||
572 | |||
573 | static inline int module_get_iter_tracepoints(struct tracepoint_iter *iter) | ||
574 | { | ||
575 | return 0; | ||
576 | } | ||
577 | |||
561 | #endif /* CONFIG_MODULES */ | 578 | #endif /* CONFIG_MODULES */ |
562 | 579 | ||
563 | struct device_driver; | 580 | struct device_driver; |