The macros whose names end with "_S" operate on the dynamically allocated
CPU set(s) whose size is setsize bytes.
Details
glibc affinity tests
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
tests/sys/kern/sched_affinity.c | ||
---|---|---|
9 | This seems unneeded? Plus, you should only include one of <sys/param.h> or <sys/types.h> but not both. |
I do not quite understand the change. Isn't it breaking all consumers of the modified macros? At very least, I see a lot of uses for CPU_.*_S in tests/sys/kern/sched_affinity.c
sys/sys/cpuset.h | ||
---|---|---|
82–85 |
https://cgit.freebsd.org/src/commit/sys/sys/cpuset.h?id=e2650af157bc7489deaf2c9054995f0f88a6e5da added _S macro for compatibility with GLIBC, but it's still incompatible as glibc uses cpusetsize in bytes, not in bits.
sys/sys/cpuset.h | ||
---|---|---|
79 | WFIW, e.g. _bitset.h uses 8 instead of NBBY. At least, this avoids more user namespace pollution. Also I do not quite understand the #ifndef guards there, and limiting that to non-kernel case. |
What do you expect to catch with the exp-run? It is runtime change, you multiply the input arg by eight.