History log of /external/ltp/testcases/open_posix_testsuite/include/affinity.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e2d32e4c57b4a83841288c4010a653885fdb9606 12-Nov-2015 Jan Stancek <jstancek@redhat.com> open_posix_testsuite: add set_affinity_single()

Couple testcases rely on set_affinity(), to limit usage of CPUs
to a single one. However they hardcode CPU number to "0", which
is causing problems on systems where CPU0 is not available (for
example it's offline, etc.)

This patch adds set_affinity_single() (which sets affinity to
first single online CPU) and replaces all calls to set_affinity(0).

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/open_posix_testsuite/include/affinity.h
520f02a0cb9200cca5b837b78079be7e4727004b 29-Oct-2015 Cyril Hrubis <chrubis@suse.cz> include/affinity.h: define _GNU_SOURCE on Linux

Otherwise the affinity cannot be used.

This is better than setting _GNU_SOURCE in the testcases
unconditionally, the affinity.h header must be include first though.

Another option would be compiling the affinity function into object file
and linking it with testcases (which wouldn't need to expose the GNU
extensions in the testcases).

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/open_posix_testsuite/include/affinity.h
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/open_posix_testsuite/include/affinity.h
37550cf5a86c7ca7424a2a318dd64e550f13f5df 18-Oct-2012 Chris Dearman <chris@mips.com> Remove whitespace at end of line

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e 's/[\t ]*$//'

Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/open_posix_testsuite/include/affinity.h
ae4f2fecbce0c4ce78c2ca0af1b47a4141ae260f 12-Aug-2011 Peter W Morreale <pmorreale@novell.com> sched_yield 1-1 fix

The current sched_yield 1-1 test floods available processors with
SCHED_FIFO processes (nr_cpus - 1), then starts two threads that verify
the behavior of sched_yield and affinitizes these threads to the remaining
processor.

This is silly and not useful if we assume that setting affinity works
correctly (which this type of test depends upon)

So rewrite the test to merely use a single processor. We test for success
by starting a child that loops doing sched_yield()s and then have the
parent kill it. The parent can only kill it if sched_yield() works. (ok,
and affinity too...)

[Note: this patch moves the non portable affinity code into common
header that needs to be ported to your favorite UNIX]

Signed-off-by: Peter W. Morreale <pmorreale@novell.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/open_posix_testsuite/include/affinity.h