blktrace blkreplay: convert to use a dynamic cpu_set_t
authorNathan Zimmer <nzimmer@sgi.com>
Mon, 15 Apr 2013 14:53:36 +0000 (09:53 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Aug 2013 18:13:26 +0000 (12:13 -0600)
commit0a915aabe88ff98786a88f30d2e062ef34d0826c
tree3faf4a0009fa90d7eb54de825c62791111f5cf26
parent67313d8f411fe08f3f8a0c94ad2cf45bf569f0f8
blktrace blkreplay: convert to use a dynamic cpu_set_t

Some distros have changed CPU_SETSIZE in glibc to 4096 since that matches
the NR_CPUS in the linux kernel config file.  Some distros have decided to
leave CPU_SETSIZE at 1024. This is a problem if you want to run that distro
on a very large machine.

CPU_SETSIZE is use by the struct cpu_set_t.  This means you to deal with cpus
greater the 1024 you must use the dynamic cpu sets, which involves converting
from things like CPU_SET to CPU_SET_S.

Cc: Jens Axboe <axboe@kernel.dk>
Modified by Jens to fix the CPU_{SET,ZERO}_S pointer mixup.

Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blktrace.c
btreplay/btreplay.c