summarylogtreecommitdiffstats
path: root/PwrProfSharedMemOps_linux_6.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'PwrProfSharedMemOps_linux_6.3.patch')
-rw-r--r--PwrProfSharedMemOps_linux_6.3.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/PwrProfSharedMemOps_linux_6.3.patch b/PwrProfSharedMemOps_linux_6.3.patch
new file mode 100644
index 000000000000..9305c712d103
--- /dev/null
+++ b/PwrProfSharedMemOps_linux_6.3.patch
@@ -0,0 +1,14 @@
+--- a/src/PwrProfSharedMemOps.c 2023-05-22 09:25:25.497609732 +0200
++++ b/src/PwrProfSharedMemOps.c 2023-05-22 09:27:59.994309381 +0200
+@@ -219,7 +219,11 @@
+ if (NULL != file && NULL != vma)
+ {
+ vma->vm_ops = &sharedBuffer_mmap_vm_ops1;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
++ vm_flags_set(vma, VM_RESERVED);
++#else
+ vma->vm_flags |= VM_RESERVED;
++#endif
+ vma->vm_private_data = file->private_data;
+
+ pp_anon_inode_mmap_open(vma);