Lines Matching +full:offset +full:- +full:y
1 // SPDX-License-Identifier: GPL-2.0
32 vmx_count--; in exit_vmx_ops()
40 unsigned long offset, size; in test_one() local
42 for (offset = 0; offset < max_offset; offset++) { in test_one()
43 for (size = size_start; size < (max_size - offset); size++) { in test_one()
44 int x, y; in test_one() local
47 y = memcmp(s1+offset, s2+offset, size); in test_one()
48 x = test_memcmp(s1+offset, s2+offset, size); in test_one()
50 if (((x ^ y) < 0) && /* Trick to compare sign */ in test_one()
51 ((x | y) != 0)) { /* check for zero */ in test_one()
52 … printf("memcmp returned %d, should have returned %d (offset %ld size %ld)\n", x, y, offset, size); in test_one()
54 for (i = offset; i < offset+size; i++) in test_one()
58 for (i = offset; i < offset+size; i++) in test_one()
65 printf("vmx enter/exit not paired.(offset:%ld size:%ld s1:%p s2:%p vc:%d\n", in test_one()
66 offset, size, s1, s2, vmx_count); in test_one()
85 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in testcase()
89 s1 = p + MAP_SIZE - alloc_size; in testcase()
90 s2 = p + 3 * MAP_SIZE - alloc_size; in testcase()