GSoC 2017 introduction

Eugene Syromyatnikov evgsyr at gmail.com
Thu Mar 9 19:24:18 UTC 2017


On Thu, Mar 9, 2017 at 5:44 PM, Victor Krapivensky
<krapivenskiy.va at phystech.edu> wrote:
> I would like to implement the parser for statx. Here is my current
> attempt (no tests yet).
> I've spotted the tests/statx.sh script. Unfortunately, due to that
> tests/init.sh expects the caller name to end with ".test", it just
> endlessly runs itself. What is it supposed to do?
This is a support script for various stat test flavors:
$ git grep statx.sh
<...>
tests/fstatat64.test:. "${srcdir=.}/statx.sh"
tests/lstat.test:. "${srcdir=.}/statx.sh"
tests/lstat64.test:. "${srcdir=.}/statx.sh"
tests/newfstatat.test:. "${srcdir=.}/statx.sh"
tests/oldlstat.test:. "${srcdir=.}/statx.sh"
tests/oldstat.test:. "${srcdir=.}/statx.sh"
tests/stat.test:. "${srcdir=.}/statx.sh"
tests/stat64.test:. "${srcdir=.}/statx.sh"

> Also, how do I get syscall numbers for all the platforms?
For not so new arches, syscalls are wired on case-by-case basis, so
there is no simple way. There is some attempt to automate it [1], but
it relies on architecture headers, and for these proper wiring is
needed in place.

PS. Btw, by a quick look at the patch (haven't reviewed it yet), I can
say that you at least forgot to wire up i386 arch [2], improperly
indented SEN(statx) and most probably would have problems with struct
statx name clash once glibc decided to support it.

[1] https://strace.io/logs/strace/2017-02-08#1066;
[2] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/x86/entry/syscalls/syscall_32.tbl#n392

-- 
Eugene Syromyatnikov
mailto:evgsyr at gmail.com
xmpp:esyr at jabber.{ru|org}




More information about the Strace-devel mailing list