Re: Using regular expression filter system call

2017-04-09 Thread Zev Weiss
On Mon, Apr 10, 2017 at 02:12:02AM +0900, Masatake YAMATO wrote: >> Recently, class %sched and %clock are added. Is it necessary to add >> regular expression to filter system call? > >Interesting feature. > >> I use '@' as the prefix of regular expression. I think following regular >> expressions m

[PATCH] Implement decoding of NS_* ioctl commands

2017-04-09 Thread Nikolay Marchuk
* configure.ac (AC_CHECK_HEADERS): Add linux/nsfs.h. * defs.h (DECL_IOCTL(nsfs)): New prototype. * ioctl.c (ioctl_decode): Call nsfs_ioctl for 0xb7 code. * nsfs.c: New file. * nsfs.h: Likewise. * Makefile.am (strace_SOURCES): Add them. * tests/.gitignore: Add ioctl_nsfs. * tests/Makefile.am (check_

Re: [PATCH] Implement decoding of NS_* ioctl commands

2017-04-09 Thread Dmitry V. Levin
On Fri, Apr 07, 2017 at 09:23:04PM +0700, Nikolay Marchuk wrote: [...] > +int > +nsfs_ioctl(struct tcb *tcp, unsigned int code, kernel_ulong_t arg) > +{ > + uid_t uid; > + switch (code) { > + case NS_GET_USERNS: > + case NS_GET_PARENT: > + return 1 + RVAL_FD + RVAL_DECOD

Re: [PATCH] stat: print nanoseconds immediately after seconds

2017-04-09 Thread Dmitry V. Levin
On Mon, Apr 03, 2017 at 07:46:11PM +0300, Dmitry Savelyev wrote: > * util.c: Implement a new sprinttime_nsec function for printing time_t > and nanoseconds at once. * util.c (sprinttime_nsec): New function ... > * defs.h: Prototype for the above. * defs.h (sprinttime_nsec): New prototype. > * s

Re: Using regular expression filter system call

2017-04-09 Thread Dmitry V. Levin
On Sat, Apr 08, 2017 at 10:16:52PM +0800, JingPiao Chen wrote: > Recently, class %sched and %clock are added. Is it necessary to add > regular expression to filter system call? Indeed. Do we really need %sched and %clock if the same effect can be achieved using ^sched and ^clock regexps? -- ld

Re: Using regular expression filter system call

2017-04-09 Thread Masatake YAMATO
> Recently, class %sched and %clock are added. Is it necessary to add > regular expression to filter system call? Interesting feature. > I use '@' as the prefix of regular expression. I think following regular > expressions may be used. @time, @[pg]id, @^wait @xattr, @^dup, @^send, > @^recv, @^re