Add verbose debug to test_qsbr
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 20 Jun 2009 15:32:01 +0000 (11:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 20 Jun 2009 15:32:01 +0000 (11:32 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
test_qsbr.c

index 2e1a0ecff23f183ed43a920b495b8c1c61bf7dff..ef7868a85eca25d545940ccca88597378c4929b8 100644 (file)
@@ -342,6 +342,10 @@ int main(int argc, char **argv)
        printf_verbose("thread %-6s, thread id : %lx, tid %lu\n",
                        "main", pthread_self(), (unsigned long)gettid());
 
+       for (i = 0; i < CPU_SETSIZE; i++)
+               if (CPU_ISSET(i, &affinity))
+                       printf_verbose("Affinity to CPU : %d\n", i);
+
        if (use_affinity
            && sched_setaffinity(0, sizeof(affinity), &affinity) < 0) {
                perror("sched_setaffinity");
This page took 0.025782 seconds and 4 git commands to generate.