.. | .. |
---|
10 | 10 | */ |
---|
11 | 11 | # define __NOKPROBE_SYMBOL(fname) \ |
---|
12 | 12 | static unsigned long __used \ |
---|
13 | | - __attribute__((__section__("_kprobe_blacklist"))) \ |
---|
| 13 | + __section("_kprobe_blacklist") \ |
---|
14 | 14 | _kbl_addr_##fname = (unsigned long)fname; |
---|
15 | 15 | # define NOKPROBE_SYMBOL(fname) __NOKPROBE_SYMBOL(fname) |
---|
16 | 16 | /* Use this to forbid a kprobes attach on very low level functions */ |
---|
17 | | -# define __kprobes __attribute__((__section__(".kprobes.text"))) |
---|
| 17 | +# define __kprobes __section(".kprobes.text") |
---|
18 | 18 | # define nokprobe_inline __always_inline |
---|
19 | 19 | #else |
---|
20 | 20 | # define NOKPROBE_SYMBOL(fname) |
---|