Thread (3 messages) flat view 3 messages, 1 author, 2016-07-05

Re: [PATCH] selftests/powerpc: Import Anton's mmap & futex micro benchmarks

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-06-02 12:05:10

On Thu, 2016-06-02 at 22:02 +1000, Michael Ellerman wrote:
+
+int test_futex(void)
+{
+	struct timespec ts_start, ts_end;
+        unsigned long i = ITERATIONS;
+
+	clock_gettime(CLOCK_MONOTONIC, &ts_start);
+
+        while (i--) {
+                unsigned int addr = 0;
+                futex(&addr, FUTEX_WAKE, 1, NULL, NULL, 0);
+        }
Ugh, I can't even ..

Obviously I'll fix up the whitespace before committing.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help