#include "arch.h"
+/* Make this big enough to include the POWER5+ L3 cacheline size of 256B */
+#define CACHE_LINE_SIZE 4096
+
#if defined(_syscall0)
_syscall0(pid_t, gettid)
#elif defined(__NR_gettid)
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");