X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=include%2Fwrapper%2Fkprobes.h;h=b546d615dce45a56142fa71b502c1ecd5fb5e619;hb=45fe4e1a42028b821757e0b98f9b33bf435a108a;hp=4d6993e26d7dab40c77675ef8c09e5d96ca36a68;hpb=087269072e2d96540d137789a6c91687edeb33bd;p=lttng-modules.git diff --git a/include/wrapper/kprobes.h b/include/wrapper/kprobes.h index 4d6993e2..b546d615 100644 --- a/include/wrapper/kprobes.h +++ b/include/wrapper/kprobes.h @@ -9,9 +9,9 @@ #define _LTTNG_WRAPPER_KPROBES_H #include -#include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) static inline struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) @@ -19,7 +19,7 @@ struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) return get_kretprobe(ri); } -#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0) */ +#else /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0) */ static inline struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) @@ -27,6 +27,6 @@ struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) return ri->rp; } -#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0) */ +#endif /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0) */ #endif /* _LTTNG_WRAPPER_KPROBES_H */