[PATCH v3] tests: check decoding of readahead syscall

2016-09-04 Thread Eugene Syromyatnikov
* tests/readahead.c: New file. * tests/readahead.test: New test. * tests/.gitignore: Add readahead. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add readahead.test. --- Changes since v2: * Added workaround for an old glibc bug (https://sourceware.org/bugzilla/show_bug.cgi?

[PATCH v3.1] tests: check decoding of readahead syscall

2016-09-04 Thread Eugene Syromyatnikov
* tests/readahead.c: New file. * tests/readahead.test: New test. * tests/.gitignore: Add readahead. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add readahead.test. --- Changes from v3: * Scraping incorrect attempt to work around glibc bug, now just skipping the test. te

[PATCH 0/9] Minor decoder fixes and various tests amendments

2016-09-04 Thread Eugene Syromyatnikov
Hello. This is quite inconsistent collection of patches for various decoder test in attempt to make them more thorough. Eugene Syromyatnikov (9): tests: check decoding of perf_event_open syscall tests: Use sprintrc for return code output in sched_xetscheduler test tests: Additional decoder

[PATCH 1/9] tests: check decoding of perf_event_open syscall

2016-09-04 Thread Eugene Syromyatnikov
* tests/perf_event_open.c: New file. * tests/perf_event_open.test: New test. * tests/.gitignore: Add perf_event_open. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add perf_event_open.test. --- tests/.gitignore |1 + tests/Makefile.am |2 ++ tests/pe

[PATCH 3/9] tests: Additional decoder tests in sched_xetscheduler

2016-09-04 Thread Eugene Syromyatnikov
Some additional syscall parser tests: * Incorrect (negative) PID in sched_getscheduler, sched_setscheduler * Incorrect address of sched_param structure. * Incorrect policy value. * tests/sched_xetscheduler.c: additional tests. --- tests/sched_xetscheduler.c | 19 +++ 1 file c

[PATCH 4/9] tests: Use sprintrc for return code output in sched_rr_get_interval test

2016-09-04 Thread Eugene Syromyatnikov
* tests/sched_rr_get_interval.c: Use sprintrc for return code output. --- tests/sched_rr_get_interval.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/sched_rr_get_interval.c b/tests/sched_rr_get_interval.c index 8501346..73e2d39 100644 --- a/tests/sched_rr_get_inte

[PATCH 5/9] tests: Additional decoder tests in sched_rr_get_interval

2016-09-04 Thread Eugene Syromyatnikov
Some additional syscall parser tests: * Incorrect timespec pointer. * Successful call. * tests/sched_rr_get_interval.c: Additional tests. --- tests/sched_rr_get_interval.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tests/sched_rr_get_interval.c

[PATCH 6/9] aio: Use printfd for fd printing

2016-09-04 Thread Eugene Syromyatnikov
struct iocb contains two fields with fd semantics: aio_fildes and aio_resfd. It is quite reasonable to use appropriate function for printing them (apart from just "%d"). * aio.c (print_common_flags): Add struct tcb pointer to parameter list; use printfd for printing aio_resfd field. (print_ioc

[PATCH 9/9] tests: Some additional aio checks

2016-09-04 Thread Eugene Syromyatnikov
* aio.c: Additional checks added. --- tests/aio.c | 108 +++ 1 file changed, 108 insertions(+) diff --git a/tests/aio.c b/tests/aio.c index 8c5bfa7..00de5ae 100644 --- a/tests/aio.c +++ b/tests/aio.c @@ -111,6 +111,33 @@ main(void)

[PATCH 7/9] tests: Use sprintrc for return code output in aio test

2016-09-04 Thread Eugene Syromyatnikov
* tests/aio.c: Use sprintrc for return code output. --- tests/aio.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/aio.c b/tests/aio.c index a6a3b9c..5a023cf 100644 --- a/tests/aio.c +++ b/tests/aio.c @@ -147,8 +147,8 @@ main(void) printf("io_setup(%u,

[PATCH 2/9] tests: Use sprintrc for return code output in sched_xetscheduler test

2016-09-04 Thread Eugene Syromyatnikov
* tests/sched_xetscheduler.c: Use sprintrc for return code output. --- tests/sched_xetscheduler.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sched_xetscheduler.c b/tests/sched_xetscheduler.c index d3b7759..ffb3307 100644 --- a/tests/sched_xetscheduler.c +++ b/

[PATCH 8/9] tests: min_nr and nr arguments in io_getevents should be long

2016-09-04 Thread Eugene Syromyatnikov
* aio.c (main): change output format for min_nr and nr arguments in io_getevents check to %ld, cast arguments to long. --- tests/aio.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/aio.c b/tests/aio.c index 5a023cf..8c5bfa7 100644 --- a/tests/aio.c +++ b/tests/