runtime/linux/autoconf-old-inode-uprobes.c
raw| 1 | #if defined(CONFIG_ARCH_SUPPORTS_UPROBES) && defined(CONFIG_UPROBES) |
| 2 | #include <linux/wait.h> |
| 3 | #include <linux/uprobes.h> |
| 4 | /* Check whether we have the old inode-uprobes api. |
| 5 | * (It was later changed to uprobe_register and uprobe_unregister.) |
| 6 | */ |
| 7 | void *reg = register_uprobe; |
| 8 | void *ureg = unregister_uprobe; |
| 9 | |
| 10 | #else |
| 11 | #error "not an inode-uprobes kernel" |
| 12 | #endif |
| 13 |