diff options
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 10b8f23fab0f..92669cd182a6 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
| @@ -351,4 +351,10 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
| 351 | */ | 351 | */ |
| 352 | #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) | 352 | #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) |
| 353 | 353 | ||
| 354 | /* Ignore/forbid kprobes attach on very low level functions marked by this attribute: */ | ||
| 355 | #ifdef CONFIG_KPROBES | ||
| 356 | # define __kprobes __attribute__((__section__(".kprobes.text"))) | ||
| 357 | #else | ||
| 358 | # define __kprobes | ||
| 359 | #endif | ||
| 354 | #endif /* __LINUX_COMPILER_H */ | 360 | #endif /* __LINUX_COMPILER_H */ |
