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
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 ()
* 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
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