Re: clock_nanosleep failure

2017-06-06 Thread Dmitry V. Levin
On Mon, Jun 05, 2017 at 05:34:16PM +0200, Andreas Schwab wrote: > A lot of tests fail because clock_nanosleep fails: > > $ ../strace -e clock_nanosleep ./clock_nanosleep >/dev/null > clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=789985}, NULL) = 0 > clock_nanosleep(CLOCK_REALTIME, 0, NULL,

Re: clock_nanosleep failure

2017-06-06 Thread Dmitry V. Levin
On Mon, Jun 05, 2017 at 05:34:16PM +0200, Andreas Schwab wrote: > A lot of tests fail because clock_nanosleep fails: > > $ ../strace -e clock_nanosleep ./clock_nanosleep >/dev/null > clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=789985}, NULL) = 0 > clock_nanosleep(CLOCK_REALTIME, 0, NULL,

[PATCH v4 1/1] syscall.c: split trace_syscall() into 6 functions

2017-06-06 Thread Victor Krapivensky
This change removes the trace_syscall function. Now, the code that uses syscall.c trace functions is expected to check whether it is a syscall entry or exit (with entering(tcp)/exiting(tcp)) itself, and then make an appropriate sequence of function calls. * defs.h: Change comment on TCB_INSYSCALL,

Re: [PATCH v4 1/1] syscall.c: split trace_syscall() into 6 functions

2017-06-06 Thread Dmitry V. Levin
On Mon, Jun 05, 2017 at 10:19:07PM +0300, Victor Krapivensky wrote: > This change removes the trace_syscall function. Now, the code that uses > syscall.c trace functions is expected to check whether it is a syscall > entry or exit (with entering(tcp)/exiting(tcp)) itself, and then make an > appropr

Re: Introducing new filtering architecture.

2017-06-06 Thread Nikolay Marchuk
On 06.06.2017 00:14, Eugene Syromiatnikov wrote: >> where action is equal with 'qualifier', > As Masatake pointed out already, it is probably a good idea to include > backtrace printing to a list of possible actions. I suggest "backtrace", > "stacktrace" or "callstack" as a possible name for it. Th

Re: [PATCH] netlink: add type decoding

2017-06-06 Thread Masatake YAMATO
On Mon, 5 Jun 2pp017 19:53:00 +0300, "Dmitry V. Levin" wrote: > On Mon, Jun 05, 2017 at 03:07:04PM +0800, JingPiao Chen wrote: >> On Sun, Jun 04, 2017 at 10:40:09PM +0300, Dmitry V. Levin wrote: > [...] >> > getfdnlproto (get_fd_nl_family in my edition) is not cheap >> > (it invokes syscalls), ne

Re: [PATCH] netlink: add type decoding

2017-06-06 Thread JingPiao Chen
Done, thank you. -- JingPiao Chen On 6 June 2017 at 00:53, Dmitry V. Levin wrote: > On Mon, Jun 05, 2017 at 03:07:04PM +0800, JingPiao Chen wrote: > > On Sun, Jun 04, 2017 at 10:40:09PM +0300, Dmitry V. Levin wrote: > [...] > > > getfdnlproto (get_fd_nl_family in my edition) is not cheap > > > (

JingPiao Chen's GSoC status report - #1 of 13

2017-06-06 Thread JingPiao Chen
I decoded selinux and audit. These two days are busy fixing last week's code. I have rebased my code to latest main tree, I will continue to fix last week's code and decode audit next week. -- Check out the vibrant tech com

Re: Edgar Kaziakhmedov's GSoC status report - #1 of 13

2017-06-06 Thread Edgar Kaziahmedov
On Tue, 6 Jun 2017 01:37:01 +0300 "Dmitry V. Levin" wrote: > On Mon, Jun 05, 2017 at 09:54:29AM +0300, Edgar Kaziahmedov wrote: > > Hi, Strace Community > > > > Advanced syscall information tool > > Accomplishments: > > -> Edited configure and created Makefile.am's in tools and > > tools/asinf

Re: [PATCH] netlink: add type decoding

2017-06-06 Thread Dmitry V. Levin
On Tue, Jun 06, 2017 at 01:09:21PM +0900, Masatake YAMATO wrote: > On Mon, 5 Jun 2pp017 19:53:00 +0300, Dmitry V. Levin wrote: > > On Mon, Jun 05, 2017 at 03:07:04PM +0800, JingPiao Chen wrote: > >> On Sun, Jun 04, 2017 at 10:40:09PM +0300, Dmitry V. Levin wrote: > > [...] > >> > getfdnlproto (get_

Re: clock_nanosleep failure

2017-06-06 Thread Andreas Schwab
On Jun 06 2017, "Dmitry V. Levin" wrote: > Why clock_nanosleep is restarted after being interrupted by a signal > handler? What kind of kernel is behaving this way? Indeed, this was a kernel bug. Thanks, Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 9

[PATCH 1/2] netlink: implement generic nlmsg_flags decoding

2017-06-06 Thread JingPiao Chen
* netlink.c: Include xlat/netlink_get_flags.h, xlat/netlink_new_flags.h, xlat/nl_route_get_types.h, xlat/nl_route_new_types.h, xlat/nl_xfrm_get_types.h, and xlat/nl_xfrm_new_types.h. (decode_nlmsg_flags): New function. (print_nlmsghdr): Use it. * xlat/netlink_get_flags.in: New file. * xlat/netlink_

[PATCH 2/2] tests: add check for decoding netlink get and new flags

2017-06-06 Thread JingPiao Chen
* tests/netlink_route.c: Add check for NETLINK_ROUTE get and new flags. * tests/netlink_sock_diag.c: Add check for NETLINK_SOCK_DIAG get flags. * tests/netlink_xfrm.c: Add check for NETLINK_XFRM get and new flags. --- tests/netlink_route.c | 26 ++ tests/netlink_sock_di