aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryantingj <yanting.jiang@intel.com>2023-04-07 16:02:50 +0800
committerDmitry Vyukov <dvyukov@google.com>2023-04-07 11:12:08 +0200
commit0c32e555783d621c4cbad7485636958947d7d616 (patch)
tree84fcb09c79b7ea3361b2d866a402602b7cdd0de1
parentf7ba566df7167369062324a989c8c848e12433ab (diff)
sys/linux: add prog for 2 iommufd ioctl syscalls
Add test program for ioctl$IOMMU_TEST_OP_MD_CHECK_MAP and ioctl$IOMMU_TEST_OP_MD_CHECK_REFS to hit them quickly. Signed-off-by: yantingj <yanting.jiang@intel.com>
-rw-r--r--sys/linux/test/dev_iommu5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/linux/test/dev_iommu b/sys/linux/test/dev_iommu
index 57e4abe46..04be5492f 100644
--- a/sys/linux/test/dev_iommu
+++ b/sys/linux/test/dev_iommu
@@ -51,6 +51,11 @@ ioctl$IOMMU_IOAS_MAP(r0, 0x3b85, &AUTO={0x28, 0x7, r1, 0x0, &(0x7f00000a0000)='L
ioctl$IOMMU_TEST_OP_ACCESS_PAGES(r0, 0x3ba0, &AUTO={0x38, 0x7, r2, 0x0, 0x0, <r3=>0x0, 0x0, 0x1000, 0x0})
ioctl$IOMMU_TEST_OP_ACCESS_RW(r0, 0x3ba0, &AUTO={0x38, 0x8, r2, 0x0, 0x0, 0x10, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x0})
ioctl$IOMMU_TEST_OP_DESTROY_ACCESS_PAGES(r0, 0x3ba0, &AUTO={0x38, 0x6, r2, 0x0, r3})
+
+ioctl$IOMMU_IOAS_MAP(r0, 0x3b85, &AUTO={0x28, 0x7, r1, 0x0, &(0x7f00000a0000)='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x1000, 0x1c})
+ioctl$IOMMU_TEST_OP_MD_CHECK_MAP(r0, 0x3ba0, &AUTO={0x38, 0x3, r2, 0x0, 0x1c, 0x1000, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL'})
+ioctl$IOMMU_TEST_OP_MD_CHECK_REFS(r0, 0x3ba0, &AUTO={0x38, 0x4, r2, 0x0, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x800, 0x1})
+ioctl$IOMMU_IOAS_UNMAP(r0, 0x3b86, &AUTO={0x18, r1, 0x1c, 0x800})
close(r2)
ioctl$IOMMU_TEST_OP_SET_TEMP_MEMORY_LIMIT(r0, 0x3ba0, &AUTO={0x38, 0x9, 0x0, 0x0, 0x10})