]> git.pld-linux.org Git - packages/lttng-modules.git/blob - kernel-5.5.3.patch
- enable fix on all kernels
[packages/lttng-modules.git] / kernel-5.5.3.patch
1 --- lttng-modules-2.11.1/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h~   2020-01-28 16:09:46.000000000 +0100
2 +++ lttng-modules-2.11.1/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h    2020-02-23 07:58:12.916686709 +0100
3 @@ -219,6 +219,21 @@
4  
5         kvm_mmu_fast_page_fault,
6  
7 +#if 1 || (LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,20))
8 +       TP_PROTO(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, u32 error_code,
9 +                u64 *sptep, u64 old_spte, bool retry),
10 +       TP_ARGS(vcpu, cr2_or_gpa, error_code, sptep, old_spte, retry),
11 +
12 +       TP_FIELDS(
13 +               ctf_integer(int, vcpu_id, vcpu->vcpu_id)
14 +               ctf_integer(gpa_t, cr2_or_gpa, cr2_or_gpa)
15 +               ctf_integer(u32, error_code, error_code)
16 +               ctf_integer_hex(u64 *, sptep, sptep)
17 +               ctf_integer(u64, old_spte, old_spte)
18 +               ctf_integer(u64, new_spte, *sptep)
19 +               ctf_integer(bool, retry, retry)
20 +       )
21 +#else
22         TP_PROTO(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code,
23                  u64 *sptep, u64 old_spte, bool retry),
24         TP_ARGS(vcpu, gva, error_code, sptep, old_spte, retry),
25 @@ -232,6 +247,7 @@
26                 ctf_integer(u64, new_spte, *sptep)
27                 ctf_integer(bool, retry, retry)
28         )
29 +#endif
30  )
31  #endif /* LTTNG_TRACE_KVM_MMU_H */
32  
This page took 0.075529 seconds and 3 git commands to generate.