From: Mathieu Desnoyers Date: Sat, 20 Jun 2009 15:32:01 +0000 (-0400) Subject: Add verbose debug to test_qsbr X-Git-Tag: v0.1~123 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bec103b289788f1335a41a8650adec2cf7ebb302;p=urcu.git Add verbose debug to test_qsbr Signed-off-by: Mathieu Desnoyers --- diff --git a/test_qsbr.c b/test_qsbr.c index 2e1a0ec..ef7868a 100644 --- a/test_qsbr.c +++ b/test_qsbr.c @@ -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");