[PATCH 9/9] tests: Add checks for abbreviated DM ioctl output

2016-10-11 Thread Eugene Syromyatnikov
--- tests/.gitignore |1 + tests/Makefile.am |2 + tests/ioctl_dm-v.c|2 + tests/ioctl_dm-v.test | 12 tests/ioctl_dm.c | 178 +++-- tests/ioctl_dm.test |2 +- 6 files changed, 160 insertions(+), 37 deletions(-

[PATCH 7/9] tests: Some additional checks for ioctl_dm test

2016-10-11 Thread Eugene Syromyatnikov
--- tests/ioctl_dm.c | 505 ++ 1 file changed, 505 insertions(+) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 24232b7..0b2c5a7 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -2,13 +2,26 @@ #ifdef HAVE_LINUX_DM_IOCTL_H +#

[PATCH 8/9] tests: Add ioctl_dm to .gitignore

2016-10-11 Thread Eugene Syromyatnikov
--- tests/.gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/tests/.gitignore b/tests/.gitignore index a6d014d..9045117 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -103,6 +103,7 @@ getxxid inet-cmsg ioctl ioctl_block +ioctl_dm ioctl_evdev ioctl_evdev-v ioctl_mtd --

[PATCH 2/9] tests: Add check for printing of overlength strings to ioctl_dm test

2016-10-11 Thread Eugene Syromyatnikov
--- tests/ioctl_dm.c|2 +- tests/ioctl_dm.test |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 6ad4ea9..0a3bbf4 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -77,7 +77,7 @@ main(void) printf("ioctl(-1, DM

[PATCH 6/9] tests/ioctl_dm: overly long string printing checks

2016-10-11 Thread Eugene Syromyatnikov
--- tests/ioctl_dm.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 261983c..24232b7 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -67,12 +67,12 @@ main(void) init_s(&s.ioc, sizeof(s), offsetof(struct s, u)

[PATCH 5/9] dm: Fix comma printing for the case when dm_target_msg structure is inaccessible

2016-10-11 Thread Eugene Syromyatnikov
--- dm.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dm.c b/dm.c index d846233..b1d455c 100644 --- a/dm.c +++ b/dm.c @@ -342,10 +342,12 @@ dm_decode_dm_target_msg(struct tcb *tcp, unsigned long addr, offset + target_msg_message_offs <= ioc->data_size) {

[PATCH 3/9] tests: Add check for presence of HAVE_LINUX_DM_IOCTL_H macro definition to ioctl_dm test

2016-10-11 Thread Eugene Syromyatnikov
--- tests/ioctl_dm.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 0a3bbf4..5f2689c 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -1,10 +1,13 @@ #include "tests.h" -#include -#include -#include -

[PATCH 4/9] tests/ioctl_dm: whitespace

2016-10-11 Thread Eugene Syromyatnikov
--- tests/ioctl_dm.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 5f2689c..261983c 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -24,7 +24,8 @@ static struct s { } u; } s; -static void init_s(struct dm_ioctl

[PATCH 1/9] util: Add support for QUOTE_0_TERMINATED in user_style to ptrintstr_ex

2016-10-11 Thread Eugene Syromyatnikov
This enables printing size-limited (expectedly) ASCIZ strings. --- util.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/util.c b/util.c index 23a5fdb..00148d4 100644 --- a/util.c +++ b/util.c @@ -820,13 +820,13 @@ printstr_ex(struct tcb *tcp, long addr,

[PATCH 0/9] Additional checks for strace DM ioctl decoder test

2016-10-11 Thread Eugene Syromyatnikov
Hello. Aside from additional checks themselves, this patchset also contains two notable changes: * Fix for the previous patchset - misplaced comma printing ("dm: Fix comma printing for the case when dm_target_msg structure is inaccessible"). * Update of printstr_ex call, which enables proper