+ vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix
has been added to the -mm tree.  Its filename is
     vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Uladzislau Rezki <urezki@xxxxxxxxx>
Subject: vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix

I see that the build fails on 32 bit systems. For example i have got two
messages from the robot about ARCH=m68k and ARCH=arm.

Link: http://lkml.kernel.org/r/20190106214839.ffvjvmrn52uqog7k@pc636

Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/lib/test_vmalloc.c~vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix
+++ a/lib/test_vmalloc.c
@@ -348,7 +348,7 @@ static struct test_case_desc test_case_a
 struct test_case_data {
 	int test_failed;
 	int test_passed;
-	s64 time;
+	u64 time;
 };
 
 /* Split it to get rid of: WARNING: line over 80 characters */
@@ -387,6 +387,7 @@ static int test_func(void *private)
 	int random_array[ARRAY_SIZE(test_case_array)];
 	int index, i, j, ret;
 	ktime_t kt;
+	u64 delta;
 
 	cpumask_set_cpu(t->cpu, &newmask);
 	set_cpus_allowed_ptr(current, &newmask);
@@ -424,8 +425,10 @@ static int test_func(void *private)
 		/*
 		 * Take an average time that test took.
 		 */
-		per_cpu_test_data[t->cpu][index].time =
-			ktime_us_delta(ktime_get(), kt) / test_repeat_count;
+		delta = (u64) ktime_us_delta(ktime_get(), kt);
+		do_div(delta, (u32) test_repeat_count);
+
+		per_cpu_test_data[t->cpu][index].time = delta;
 	}
 	t->stop = get_cycles();
 
_

Patches currently in -mm which might be from urezki@xxxxxxxxx are

vmalloc-export-__vmalloc_node_range-for-config_test_vmalloc_module.patch
vmalloc-add-test-driver-to-analyse-vmalloc-allocator.patch
vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix.patch
selftests-vm-add-script-helper-for-config_test_vmalloc_module.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux