----- Original Message -----
> From: "Jan Stancek" <jstan...@redhat.com>
> To: chru...@suse.cz
> Cc: ltp-list@lists.sourceforge.net
> Sent: Monday, 25 August, 2014 4:46:30 PM
> Subject: Re: [LTP] [PATCH] safe_macros: turn functions with off_t parameter
> into static inline
> I'm also re-running across all arches on RHEL5.10/6/7, I should have result
> by tomorrow.
Testing went OK, I came across one new issue on system supporting CPU hotplug
in
sched_setaffinity01.c / tst_ncpus_max().
tst_ncpus_max is using sysconf(_SC_NPROCESSORS_CONF), but sched_getaffinity
cares about all possible cpus, so it fails with EINVAL, because mask is too
small.
I'm thinking we should try to read /sys/devices/system/cpu/possible or even
/sys/devices/system/cpu/kernel_max (NR_CPUS) and use that value to be safe
and only fall back to _SC_NPROCESSORS_CONF as last resort.
There's a big mail thread about this issue, I think Carlos made a nice summary:
https://sourceware.org/ml/libc-alpha/2013-07/msg00429.html
Regards,
Jan
>
> Regards,
> Jan
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list