X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Finstrumentation%2Fevents%2Farch%2Fx86%2Fexceptions.h;h=53c554f44b54c859b51a9905cf985fa2daae0588;hb=5f4c791e2ad2c814101ccdb500e65543f2792c41;hp=3c124638ec7c45847472ccc050b08c3f2d5eef00;hpb=be06402dbdbea2f3394e60ec15c5d3356e2be416;p=lttng-modules.git diff --git a/include/instrumentation/events/arch/x86/exceptions.h b/include/instrumentation/events/arch/x86/exceptions.h index 3c124638..53c554f4 100644 --- a/include/instrumentation/events/arch/x86/exceptions.h +++ b/include/instrumentation/events/arch/x86/exceptions.h @@ -3,11 +3,11 @@ #define LTTNG_TRACE_EXCEPTIONS_H #include -#include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,15,0)) #include <../arch/x86/include/asm/traps.h> -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) */ +#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,15,0)) */ /* Only define this enum once. */ @@ -20,14 +20,14 @@ enum { X86_PF_USER = 1 << 2, X86_PF_RSVD = 1 << 3, X86_PF_INSTR = 1 << 4, -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) X86_PF_PK = 1 << 5, -#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) */ +#endif /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) */ }; #endif /* ONCE_LTTNG_EXCEPTIONS_H */ -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) */ +#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,15,0)) */ #undef TRACE_SYSTEM #define TRACE_SYSTEM x86_exceptions @@ -39,9 +39,9 @@ LTTNG_TRACEPOINT_ENUM(lttng_x86_pf_error_code, ctf_enum_value("USER_MODE", X86_PF_USER) ctf_enum_value("RESERVED_BIT", X86_PF_RSVD) ctf_enum_value("INSTRUCTION_FETCH", X86_PF_INSTR) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) ctf_enum_value("PROTECTION_KEYS_BLOCK", X86_PF_PK) -#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) */ +#endif /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) */ ) )