X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-probe-kvm-x86-mmu.c;h=5a7ef1e63550bbcd06da21a9c8e394fb3bb73ce1;hb=e10ab43dd0e425df5bc0ac763447664ed075ba05;hp=5231615dac9789666117d7e42b80caeccf96bd14;hpb=c035cd504fb90ea72380eb5fa72c305f69cffd4c;p=lttng-modules.git diff --git a/probes/lttng-probe-kvm-x86-mmu.c b/probes/lttng-probe-kvm-x86-mmu.c index 5231615d..5a7ef1e6 100644 --- a/probes/lttng-probe-kvm-x86-mmu.c +++ b/probes/lttng-probe-kvm-x86-mmu.c @@ -1,29 +1,16 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * probes/lttng-probe-kvm.c * * LTTng kvm probes. * * Copyright (C) 2010-2012 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include -#include "../lttng-tracer.h" -#include "../lttng-kernel-version.h" +#include +#include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) #include @@ -35,9 +22,13 @@ * Create the tracepoint static inlines from the kernel to validate that our * trace event macros match the kernel we run on. */ -#include "../wrapper/tracepoint.h" +#include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)) +#include <../../arch/x86/kvm/mmu/mmutrace.h> +#else #include <../../arch/x86/kvm/mmutrace.h> +#endif #undef TRACE_INCLUDE_PATH #undef TRACE_INCLUDE_FILE @@ -48,8 +39,8 @@ #define LTTNG_PACKAGE_BUILD #define CREATE_TRACE_POINTS -#define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module/arch/x86/kvm -#include "../instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h" +#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module/arch/x86/kvm +#include MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Mathieu Desnoyers ");