diff options
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index fce6b4335e36..d5453eb5a68b 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -432,6 +432,10 @@ struct module { | |||
432 | unsigned int num_tracepoints; | 432 | unsigned int num_tracepoints; |
433 | tracepoint_ptr_t *tracepoints_ptrs; | 433 | tracepoint_ptr_t *tracepoints_ptrs; |
434 | #endif | 434 | #endif |
435 | #ifdef CONFIG_BPF_EVENTS | ||
436 | unsigned int num_bpf_raw_events; | ||
437 | struct bpf_raw_event_map *bpf_raw_events; | ||
438 | #endif | ||
435 | #ifdef HAVE_JUMP_LABEL | 439 | #ifdef HAVE_JUMP_LABEL |
436 | struct jump_entry *jump_entries; | 440 | struct jump_entry *jump_entries; |
437 | unsigned int num_jump_entries; | 441 | unsigned int num_jump_entries; |
@@ -486,6 +490,13 @@ struct module { | |||
486 | #define MODULE_ARCH_INIT {} | 490 | #define MODULE_ARCH_INIT {} |
487 | #endif | 491 | #endif |
488 | 492 | ||
493 | #ifndef HAVE_ARCH_KALLSYMS_SYMBOL_VALUE | ||
494 | static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym) | ||
495 | { | ||
496 | return sym->st_value; | ||
497 | } | ||
498 | #endif | ||
499 | |||
489 | extern struct mutex module_mutex; | 500 | extern struct mutex module_mutex; |
490 | 501 | ||
491 | /* FIXME: It'd be nice to isolate modules during init, too, so they | 502 | /* FIXME: It'd be nice to isolate modules during init, too, so they |