diff options
Diffstat (limited to 'include/linux/kallsyms.h')
-rw-r--r-- | include/linux/kallsyms.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h index 849043ce4ed6..1cebcbc28b47 100644 --- a/include/linux/kallsyms.h +++ b/include/linux/kallsyms.h | |||
@@ -12,6 +12,10 @@ | |||
12 | /* Lookup the address for a symbol. Returns 0 if not found. */ | 12 | /* Lookup the address for a symbol. Returns 0 if not found. */ |
13 | unsigned long kallsyms_lookup_name(const char *name); | 13 | unsigned long kallsyms_lookup_name(const char *name); |
14 | 14 | ||
15 | extern int kallsyms_lookup_size_offset(unsigned long addr, | ||
16 | unsigned long *symbolsize, | ||
17 | unsigned long *offset); | ||
18 | |||
15 | /* Lookup an address. modname is set to NULL if it's in the kernel. */ | 19 | /* Lookup an address. modname is set to NULL if it's in the kernel. */ |
16 | const char *kallsyms_lookup(unsigned long addr, | 20 | const char *kallsyms_lookup(unsigned long addr, |
17 | unsigned long *symbolsize, | 21 | unsigned long *symbolsize, |
@@ -28,6 +32,13 @@ static inline unsigned long kallsyms_lookup_name(const char *name) | |||
28 | return 0; | 32 | return 0; |
29 | } | 33 | } |
30 | 34 | ||
35 | static inline int kallsyms_lookup_size_offset(unsigned long addr, | ||
36 | unsigned long *symbolsize, | ||
37 | unsigned long *offset) | ||
38 | { | ||
39 | return 0; | ||
40 | } | ||
41 | |||
31 | static inline const char *kallsyms_lookup(unsigned long addr, | 42 | static inline const char *kallsyms_lookup(unsigned long addr, |
32 | unsigned long *symbolsize, | 43 | unsigned long *symbolsize, |
33 | unsigned long *offset, | 44 | unsigned long *offset, |