Re: [PATCH v6] Implement -e trace=%statfs option for tracing statfs like syscalls

2017-03-18 Thread Abhishek Tiwari
Please review patch for bug in previous reply. On Sun, Mar 19, 2017 at 6:11 AM, Dmitry V. Levin wrote: > On Sat, Mar 18, 2017 at 08:29:46PM +0530, Abhishek Tiwari wrote: > [...] >> +done << EOF >> +17 statfs > > Please add a test for statfs64 here as well. Sir, the statfs64.test file calls the

Re: [PATCH v6] Implement -e trace=%statfs option for tracing statfs like syscalls

2017-03-18 Thread Abhishek Tiwari
>> git grep -Fl 'statfs' linux/*/syscallent* | xargs sed -i >> 's/0\(,[[:space:]]*SEN(osf_statfs\)/TSF\1/' >> git grep -Fl 'statfs' linux/*/syscallent* | xargs sed -i >> 's/0\(,[[:space:]]*SEN(.*_statfs\)/TSF\1/' >> git grep -Fl 'statvfs' linux/*/syscallent* | xargs sed -i >> '

GSoC 2017 Introduction: Netlink socket parsers

2017-03-18 Thread JingPiao Chen
Hello strace-developers: My name is JingPiao Chen. I'am a Computer Science sophomore from Guangdong Pharmaceutical University. I am interested in Netlink socket parsers suggested by Gabriel Laskar and Dmitry V. Levin. I am familiar with C, git, shell script, and gdb. My current work base on the co

Re: [PATCH v4] Implemented -e trace=%clock option

2017-03-18 Thread Rishi Bhatt
well so i have changed clock.tests's comment style.Below is the patch.Also i have changed the version to what you have set in subject. On Sun, Mar 19, 2017 at 7:37 AM, Rishi Bhatt wrote: > > > On Sun, Mar 19, 2017 at 6:34 AM, Dmitry V. Levin wrote: > >> On Sat, Mar 18, 2017 at 07:35:49PM +0530,

Re: [PATCH v4] Implemented -e trace=%clock option

2017-03-18 Thread Rishi Bhatt
On Sun, Mar 19, 2017 at 6:34 AM, Dmitry V. Levin wrote: > On Sat, Mar 18, 2017 at 07:35:49PM +0530, Rishi Bhatt wrote: > > Hey if i am taking rt_sigretrun,nanosleep as negative testcases i am > > getting sigusr and sigalarm respectively, i should not get them right? > > Also sched.test is also fa

Re: [PATCH v4] Implemented -e trace=%clock option

2017-03-18 Thread Dmitry V. Levin
On Sat, Mar 18, 2017 at 07:35:49PM +0530, Rishi Bhatt wrote: > Hey if i am taking rt_sigretrun,nanosleep as negative testcases i am > getting sigusr and sigalarm respectively, i should not get them right? > Also sched.test is also failing for them. Well i have included fstat and > open as negatives

Re: [PATCH v6] Implement -e trace=%statfs option for tracing statfs like syscalls

2017-03-18 Thread Dmitry V. Levin
On Sat, Mar 18, 2017 at 08:29:46PM +0530, Abhishek Tiwari wrote: > This commit adds %statsfs option to trace statfs, statfs64, statvfs, > statvfs64 syscalls. The following commands update linux/*/syscallent* files: This line is too long. The limit is 72 symbols, please wrap. > git grep -F

Re: [PATCH v9] Implement decoding of statx syscall

2017-03-18 Thread Dmitry V. Levin
On Sat, Mar 18, 2017 at 06:19:07PM +0300, Victor Krapivensky wrote: > * linux/i386/syscallent.h [383]: Add statx entry. > * linux/x32/syscallent.h [332]: Likewise. > * linux/x86_64/syscallent.h [332]: Likewise. > * pathtrace.c (pathtrace_match): Handle SEN_statx. > * statx.c: New file. > * statx.h:

Re: [PATCH v6] Implement decoding of statx syscall

2017-03-18 Thread Dmitry V. Levin
On Sat, Mar 18, 2017 at 05:36:27PM +0300, Victor Krapivensky wrote: > On Sat, Mar 18, 2017 at 10:44:09AM +0100, Eugene Syromyatnikov wrote: [...] > > Only one branch in regards of of stx.field.nsec value is covered in all > > instances of this macro. > > Yes. This seems to be a property of a files

Re: [PATCH 1/2] Add ioctl namespace entries from Linux 4.11

2017-03-18 Thread Eugene Syromyatnikov
On Sat, Mar 18, 2017 at 07:47:46PM +0700, Nikolay Marchuk wrote: git am applies this mail as a single commit, it this behaviour intended? It also (still) does not contain a summary of changes, as I noted yesterday. The compilation warnings and dubious rc check noted in the previous e-mail are st

Understanding a parser.

2017-03-18 Thread Rishi Bhatt
Hi, Well i am currently understanding how to implement a parser,so i am starting with the simple ones first i.e umask.c,readahead.c,mount.c. What i know about the implementation of parser: What we do in these are use the tcb struct(u_arg[]) to get the values that are passed in as arguments,i am no

[PATCH v9] Implement decoding of statx syscall

2017-03-18 Thread Victor Krapivensky
* linux/i386/syscallent.h [383]: Add statx entry. * linux/x32/syscallent.h [332]: Likewise. * linux/x86_64/syscallent.h [332]: Likewise. * pathtrace.c (pathtrace_match): Handle SEN_statx. * statx.c: New file. * statx.h: Likewise. * Makefile.am (strace_SOURCES): Add them. * tests/.gitignore: Add sta

Re: [PATCH v8] Implement decoding of statx syscall

2017-03-18 Thread Victor Krapivensky
Oops. Just realized that ~STATX_ALL and ~STATX_NLINK produce platform-dependent values. Please ignore v8 and review v9 instead. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashd

[PATCH v8] Implement decoding of statx syscall

2017-03-18 Thread Victor Krapivensky
* linux/i386/syscallent.h [383]: Add statx entry. * linux/x32/syscallent.h [332]: Likewise. * linux/x86_64/syscallent.h [332]: Likewise. * pathtrace.c (pathtrace_match): Handle SEN_statx. * statx.c: New file. * statx.h: Likewise. * Makefile.am (strace_SOURCES): Add them. * tests/.gitignore: Add sta

Re: Q: statfs related syscalls (was: Re: GSOC: Introduction)

2017-03-18 Thread Abhishek Tiwari
>> Below is attached a patch corresonding to -e trace=%statfs option. >> Please review. > > git am patch fails to apply this patch with the following diagnostics: > > .git/rebase-apply/patch:778: trailing whitespace. > 17 statfs > fatal: 1 line adds whitespace errors. > fixed. Patch attached. > >

Re: [PATCH v6] Implement decoding of statx syscall

2017-03-18 Thread Victor Krapivensky
On Sat, Mar 18, 2017 at 10:44:09AM +0100, Eugene Syromyatnikov wrote: > I haven't look at v7 of the patch yet, but coverage [1] shows that at least > this line is not covered by the test. The version of the patch you run coverage on is very old (it still has reserved2 field of struct_statx of size

Re: [PATCH v4] Implemented -e trace=%clock option

2017-03-18 Thread Rishi Bhatt
Hey if i am taking rt_sigretrun,nanosleep as negative testcases i am getting sigusr and sigalarm respectively, i should not get them right? Also sched.test is also failing for them. Well i have included fstat and open as negatives. The way these test is made which expect the last output to be '+++

Re: Q: statfs related syscalls (was: Re: GSOC: Introduction)

2017-03-18 Thread Eugene Syromyatnikov
On Sat, Mar 18, 2017 at 05:57:39PM +0530, Abhishek Tiwari wrote: > On Sat, Mar 18, 2017 at 3:53 PM, Eugene Syromyatnikov > wrote: > > > So, after some thinking, I have the following scheme in mind: > > > > {old,}stat{,64} TRACE_STAT TST > %stat > > > {old,}lstat{,64}

GSOC: Project Proposal

2017-03-18 Thread Abhishek Tiwari
Sir, I have gone through mailing list to understand what has been implemented in netlink socket parser. >From what I understand, the netlink packet decoding has been done. I have done socket programming and am known to the system calls that server or client makes. However I'm having trouble unders

[PATCH 1/2] Add ioctl namespace entries from Linux 4.11

2017-03-18 Thread Nikolay Marchuk
--- linux/32/ioctls_inc_align16.h | 2 ++ linux/32/ioctls_inc_align32.h | 2 ++ linux/32/ioctls_inc_align64.h | 2 ++ linux/64/ioctls_inc.h | 2 ++ linux/x32/ioctls_inc0.h | 2 ++ 5 files changed, 10 insertions(+) diff --git a/linux/32/ioctls_inc_align16.h b/linux/32/ioctls_inc_alig

Re: [PATCH] Implemented parser for NS_* ioctl commands.

2017-03-18 Thread Eugene Syromyatnikov
Please avoid using mail clients which break formatting. This patch does not apply. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Re: [PATCH] Implemented parser for NS_* ioctl commands.

2017-03-18 Thread Nikolay Marchuk
Sorry, sent wrong commit. >From 6618b4fdc99e07e09fd8d8049a347f0153c85ab5 Mon Sep 17 00:00:00 2001 From: Nikolay Marchuk Date: Thu, 16 Mar 2017 17:49:25 +0700 Subject: [PATCH 1/2] Add ioctl namespace entries from Linux 4.11 --- linux/32/ioctls_inc_align16.h | 2 ++ linux/32/ioctls_inc_align32.h |

Re: Q: statfs related syscalls (was: Re: GSOC: Introduction)

2017-03-18 Thread Abhishek Tiwari
On Sat, Mar 18, 2017 at 3:53 PM, Eugene Syromyatnikov wrote: > So, after some thinking, I have the following scheme in mind: > > {old,}stat{,64} TRACE_STAT TST %stat > {old,}lstat{,64}TRACE_LSTAT TLST %lstat > {old,new,}fstat{,at}64 TRACE_FSTAT

Re: [PATCH] Implemented parser for NS_* ioctl commands.

2017-03-18 Thread Eugene Syromyatnikov
This patch does not apply with the following diagnostics: fatal: corrupt patch at line 15 error: could not build fake ancestor Patch failed at 0001 Add ioctl namespace entries from Linux 4.11 then, error: patch failed: Makefile.am:172 error: Makefile.am: patch does not apply error: patch failed:

Re: [PATCH v7] Implement decoding of statx syscall

2017-03-18 Thread Dmitry V. Levin
On Sat, Mar 18, 2017 at 01:10:33PM +0300, Victor Krapivensky wrote: > On Sat, Mar 18, 2017 at 04:00:50AM +0300, Dmitry V. Levin wrote: > > I suggest placing AT_STATX_SYNC_TYPE before AT_STATX_FORCE_SYNC > > so we could use printflags. > > I don't see any sense in that: > AT_STATX_{SYNC_AS_STAT,FOR

Re: Q: statfs related syscalls (was: Re: GSOC: Introduction)

2017-03-18 Thread Eugene Syromyatnikov
On Sat, Mar 18, 2017 at 02:49:48PM +0530, Abhishek Tiwari wrote: > Going with the above description for narrow statfs-> > > Is naming %statfs = statfs+statfs64 as TRACE_NSTATFS and shorthand as TNS > fine ? So, after some thinking, I have the following scheme in mind: {old,}stat{,64} TR

Re: [PATCH v7] Implement decoding of statx syscall

2017-03-18 Thread Victor Krapivensky
On Sat, Mar 18, 2017 at 04:00:50AM +0300, Dmitry V. Levin wrote: > I suggest placing AT_STATX_SYNC_TYPE before AT_STATX_FORCE_SYNC > so we could use printflags. I don't see any sense in that: AT_STATX_{SYNC_AS_STAT,FORCE_SYNC,DONT_SYNC} are mutually exclusive, and statx called with flags=AT_STATX_

Re: [PATCH v6] Implement decoding of statx syscall

2017-03-18 Thread Eugene Syromyatnikov
On Fri, Mar 17, 2017 at 08:08:29PM +0300, Victor Krapivensky wrote: <...> > --- /dev/null > +++ b/statx.c > @@ -0,0 +1,111 @@ > +/* > + * Copyright (c) 2017 The strace developers. > + * All rights reserved. > + * > + * Redistribution and use in source and binary forms, with or without > + * modific

Re: Q: statfs related syscalls (was: Re: GSOC: Introduction)

2017-03-18 Thread Abhishek Tiwari
On Sat, Mar 18, 2017 at 2:09 PM, Eugene Syromyatnikov wrote: > On Thu, Mar 16, 2017 at 12:24 AM, Dmitry V. Levin wrote: >> On Wed, Mar 15, 2017 at 11:14:29PM +0530, Abhishek Tiwari wrote: >> [...] >>> Is it fine to group statfs+ statfs64+ fstatfs + fstatfs64 + ustat as >>> %statfs or it should b

[PATCH] Implemented parser for NS_* ioctl commands.

2017-03-18 Thread Nikolay Marchuk
>From 33d0341f2705e067b7617a6ec30e442d707714d0 Mon Sep 17 00:00:00 2001 From: Nikolay Marchuk Date: Thu, 16 Mar 2017 17:49:25 +0700 Subject: [PATCH 1/2] Add ioctl namespace entries from Linux 4.11 --- linux/32/ioctls_inc_align16.h | 2 ++ linux/32/ioctls_inc_align32.h | 2 ++ linux/32/ioctls_inc

Re: Q: statfs related syscalls (was: Re: GSOC: Introduction)

2017-03-18 Thread Eugene Syromyatnikov
On Thu, Mar 16, 2017 at 12:24 AM, Dmitry V. Levin wrote: > On Wed, Mar 15, 2017 at 11:14:29PM +0530, Abhishek Tiwari wrote: > [...] >> Is it fine to group statfs+ statfs64+ fstatfs + fstatfs64 + ustat as >> %statfs or it should be (statfs+statfs64 + ustat) and >> (fstatfs+ftsatfs64) i.e. two diff