X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=probes%2Flttng-probe-kvm-x86-mmu.c;h=3920f0dbdbc00898ac51a6bfa51f22b4e039ab15;hb=2d0428212cbfa3f8428feee160b095f48c2ac974;hp=ca5444ac33ff92c1fbdb3aefb6976ce09e7b8946;hpb=156a3977f8fa114924d7bbd2bd04c94fd2ac0649;p=lttng-modules.git diff --git a/probes/lttng-probe-kvm-x86-mmu.c b/probes/lttng-probe-kvm-x86-mmu.c index ca5444ac..3920f0db 100644 --- a/probes/lttng-probe-kvm-x86-mmu.c +++ b/probes/lttng-probe-kvm-x86-mmu.c @@ -1,23 +1,10 @@ -/* +/* 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 @@ -25,11 +12,11 @@ #include #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,1,0)) #include -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */ +#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,1,0)) */ #include <../../virt/kvm/iodev.h> -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */ +#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,1,0)) */ /* * Create the tracepoint static inlines from the kernel to validate that our @@ -37,7 +24,17 @@ */ #include +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,9,0)) +#include <../../arch/x86/kvm/mmu/mmu_internal.h> +#include <../../arch/x86/kvm/mmu/mmutrace.h> +#else #include <../../arch/x86/kvm/mmutrace.h> +#endif + +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,10,0)) +#include <../arch/x86/kvm/mmu.h> +#include <../arch/x86/kvm/mmu/spte.h> +#endif #undef TRACE_INCLUDE_PATH #undef TRACE_INCLUDE_FILE