Re: [PATCH v5] Implement decoding of ustat syscall

2017-01-11 Thread Dmitry V. Levin
On Wed, Jan 11, 2017 at 11:52:21PM +0800, JingPiao Chen wrote: [...] > +#include "tests.h" > +#include > + > +#ifdef __NR_ustat > + > +# include > +# include > +# include > +# include > +# include > + > +int > +main(void) > +{ > + kernel_ulong_t magic = (kernel_ulong_t) 0xfacefeed

Re: RFC strace via gdbserver

2017-01-11 Thread Stan Cox
This is an example that shows the back and forth interaction that is possible between an strace aware gdbclient and the gdb remote protocol aware strace. STRACE client Process 10442 attached in non-stop mode GDB client (gdb) continue Thread 2 "tstthreads1.x" hit Breakpoint 3, thread_worker_2 ()

[PATCH v5] Implement decoding of ustat syscall

2017-01-11 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] Use syscall instead of the glibc wrapper to call fstatat

2017-01-11 Thread James Cowgill
The newfstatat testcase on mips64 currently fails because: - The BOGUS_STRUCT_STAT test segfaults inside glibc. - The result of the fstatat call gives incorrect dates because the kernel struct stat uses unsigned int timestamps. Fix by using avoiding the glibc wrapper and using the relevant sysca