[PATCH 3/4] getrandom: print getrandom buffer as hex array

2017-01-05 Thread JingPiao Chen
In general, the random bytes is not number or letter, print as hex array is clear, use 0x%02x format print it, easy to konw each element is one byte, so 0 will print 0x00. * getrandom.c: * tests/getrandom.c: Update print buffer. * tests/getrandom.test: Update. --- getrandom.c | 16 ++

[PATCH 4/4] Implement decoding of ustat syscall

2017-01-05 Thread JingPiao Chen
* ustat.c: New file. * Makefile.am (strace_SOURCES): Add it. * linux/dummy.h: Remove. * tests/ustat.c: New file. * tests/ustat.test: New test. * tests/.gitignore: Add ustat. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add ustat.test. --- Makefile.am | 1 + linux/dummy.h

[PATCH 2/4] qualify: fix signal=SIG_0 and signal=0 do not print error message

2017-01-05 Thread JingPiao Chen
SIG_0 is not valid signal name, do not have signal number is 0. Maybe not have greatly effect, but print error message is friendly. * qualify.c (sigstr_to_uint): Compare signal number to zero. Change index start from one. --- qualify.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-)

[PATCH 1/4] strace: move -k option to appropriate place

2017-01-05 Thread JingPiao Chen
Like strace.1 -k option should add in output format group. * strace.c (usage): Move -k option to output format group. --- strace.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/strace.c b/strace.c index 9df942e..13f4863 100644 --- a/strace.c +++ b/strace.c @@ -21

Re: [PATCH 3/4] tests: check decoding of LOOP_* ioctls

2017-01-05 Thread JingPiao Chen
>> * tests/ioctl_loop.c: New file. >> * tests/ioctl_loop-v.c: Likewise. >> * tests/ioctl_loop.test: New test. >> * tests/ioctl_loop-v.test: Likewise. >> * tests/.gitignore: Add ioctl_loop and ioctl_loop-v. >> * tests/Makefile.am (check_PROGRAMS): Likewise. >> (DECODER_TESTS): Add ioctl_loop.test an

Re: strace 4.15 released

2017-01-05 Thread Dmitry V. Levin
Hi, On Tue, Jan 03, 2017 at 06:02:44PM +, James Cowgill wrote: > On 20/12/16 00:36, Steve McIntyre wrote: > > On Tue, Dec 20, 2016 at 03:16:17AM +0300, Dmitry V. Levin wrote: > >> On Tue, Dec 20, 2016 at 12:50:29AM +0100, Nahim El Atmani wrote: > >>> On Mon, 19 Dec 2016 18:30:29 +, Steve M

Re: [PATCH 3/4] tests: check decoding of LOOP_* ioctls

2017-01-05 Thread Eugene Syromyatnikov
On Tue, Dec 27, 2016 at 3:43 AM, JingPiao Chen wrote: > * tests/ioctl_loop.c: New file. > * tests/ioctl_loop-v.c: Likewise. > * tests/ioctl_loop.test: New test. > * tests/ioctl_loop-v.test: Likewise. > * tests/.gitignore: Add ioctl_loop and ioctl_loop-v. > * tests/Makefile.am (check_PROGRAMS): Lik

Re: [PATCH 1/4] tests/.gitignore: add missing files that should be ignored

2017-01-05 Thread Eugene Syromyatnikov
On Tue, Dec 27, 2016 at 3:43 AM, JingPiao Chen wrote: > * tests/.gitignore: Add add_key, attach-f-p-cmd and scno.h. > --- Hello. Thank you for your contribution, the patch has been merged to master, https://github.com/strace/strace/commit/f2d80518f7249e30b4850fa4d8266a5ee485e04e -- Eugene Syrom