hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/extable.h
....@@ -19,6 +19,8 @@
1919
2020 /* Given an address, look for it in the exception tables */
2121 const struct exception_table_entry *search_exception_tables(unsigned long add);
22
+const struct exception_table_entry *
23
+search_kernel_exception_table(unsigned long addr);
2224
2325 #ifdef CONFIG_MODULES
2426 /* For extable.c to search modules' exception tables. */
....@@ -31,4 +33,14 @@
3133 }
3234 #endif /*CONFIG_MODULES*/
3335
36
+#ifdef CONFIG_BPF_JIT
37
+const struct exception_table_entry *search_bpf_extables(unsigned long addr);
38
+#else
39
+static inline const struct exception_table_entry *
40
+search_bpf_extables(unsigned long addr)
41
+{
42
+ return NULL;
43
+}
44
+#endif
45
+
3446 #endif /* _LINUX_EXTABLE_H */