[strace PATCH v2] Introduce s390_sthyi system call decoder

2018-01-22 Thread Eugene Syromyatnikov
* s390.c: New file. * Makefile.am (strace_SOURCES): Add it. * linux/s390/syscallent.h ([380]): Change decoder to s390_sthyi. * linux/s390x/syscallent.h: Likewise. * xlat/s390_sthyi_function_codes.in: New file. --- Makefile.am |1 + linux/s390/syscallent.h |

[strace PATCH v2] tests: check s390_sthyi system call decoder

2018-01-22 Thread Eugene Syromyatnikov
* configure.ac (AC_CHECK_FUNCS): Add iconv_open. (AC_CHECK_HEADERS): Add iconv.h. * tests/s390_sthyi-v.c: New file. * tests/s390_sthyi.c: Likewise. * tests/.gitignore: Add s390_sthyi, s390_sthyi-v. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_sthyi, s390_sthyi): New tests.

[PATCH 2/2] tests: check riscv_flush_icache syscall decoder

2018-01-22 Thread Eugene Syromyatnikov
* tests/riscv_flush_icache.c: New file. * tests/.gitignore: Add riscv_flush_icache. * tests/gen_tests.in: Likewise. * tests/pure_executables.list: Likewise. --- tests/.gitignore| 1 + tests/gen_tests.in | 1 + tests/pure_executables.list | 1 + tests/riscv_flush_icache.c

[RFC PATCH] mpers.awk: enable support for gawk 3

2018-01-18 Thread Eugene Syromyatnikov
--- mpers.awk | 132 +++--- 1 file changed, 58 insertions(+), 74 deletions(-) diff --git a/mpers.awk b/mpers.awk index 6545052..8374b3b 100644 --- a/mpers.awk +++ b/mpers.awk @@ -27,19 +27,10 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE)

[strace PATCH 01/12] Add compat support for s390x

2018-01-17 Thread Eugene Syromyatnikov
By very popular demand. While we are here, let's refactor the condition for old_mmap_pgoff into an arch-specific one, as it is used more than in one place. * NEWS: Mention this. * configure.ac (case "$host_cpu" in) : Set arch_m32 to s390, set cc_flags_m32 to -m31. (st_MPERS([m32])): Add s390x. *

[strace PATCH 12/12] Update NEWS

2018-01-17 Thread Eugene Syromyatnikov
--- NEWS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 550fc38..8b98a40 100644 --- a/NEWS +++ b/NEWS @@ -13,7 +13,9 @@ Noteworthy changes in release ?.?? (-??-??) BPF_MAP_GET_NEXT_ID, BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID, and

[strace PATCH 02/12] Add print_quoted_string flag to generate comment

2018-01-17 Thread Eugene Syromyatnikov
Because there are never enough print_quoted_string flags. * defs.h (QUOTE_EMIT_COMMENT): New quoting flag macro constant. * util.c (string_quote): Emit " /* " in the beginning and " */" in the end if QUOTE_EMIT_COMMENT is passed. (print_quoted_string): Increase alloc_size by 7 if

[strace PATCH 05/12] tests: check s390_sthyi system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* configure.ac (AC_CHECK_FUNCS): Add iconv_open. (AC_CHECK_HEADERS): Add iconv.h. * tests/s390_sthyi-v.c: New file. * tests/s390_sthyi.c: Likewise. * tests/.gitignore: Add s390_sthyi, s390_sthyi-v. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_sthyi, s390_sthyi): New tests.

[strace PATCH 06/12] Introduce s390_guarded_storage system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* linux/s390/syscallent.h ([378]): Change decoder to s390_guarded_storage. * linux/s390x/syscallent.h: Likewise. * s390.c (struct guard_storage_control_block, struct guard_storage_event_parameter_list): New structure type definition. (guard_storage_print_gsepl, guard_storage_print_gscb,

[strace PATCH 03/12] print_fields.h: add macro to print hexadecimal array field

2018-01-17 Thread Eugene Syromyatnikov
* print_fields.h (PRINT_FIELD_HEX_ARRAY): New macro, prints target array with QUOTE_FORCE_HEX. --- print_fields.h | 9 + 1 file changed, 9 insertions(+) diff --git a/print_fields.h b/print_fields.h index 0af087a..b2c6a30 100644 --- a/print_fields.h +++ b/print_fields.h @@ -107,6 +107,15

[strace PATCH 08/12] Introduce s390_runtime_instr system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* linux/s390/syscallent.h ([342]): Change decoder to s390_runtime_instr. * linux/s390x/syscallent.h: Likewise. * s390.c (SYS_FUNC(s390_runtime_instr)): New function. * xlat/s390_runtime_instr_commands.in: New file. --- linux/s390/syscallent.h | 2 +- linux/s390x/syscallent.h

[strace PATCH 04/12] Introduce s390_sthyi system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* s390.c: New file. * Makefile.am (strace_SOURCES): Add it. * linux/s390/syscallent.h ([380]): Change decoder to s390_sthyi. * linux/s390x/syscallent.h: Likewise. * xlat/s390_sthyi_function_codes.in: New file. --- Makefile.am |1 + linux/s390/syscallent.h |

[strace PATCH 10/12] Introduce s390_pci_mmio_read, s390_pci_mmio_write system call decoders

2018-01-17 Thread Eugene Syromyatnikov
* linux/s390/syscallent.h ([352]): Change decoder to s390_pci_mmio_write. ([353]): Change decoder to s390_pci_mmio_read. * linux/s390x/syscallent.h: Likewise. * s390.c (SYS_FUNC(s390_pci_mmio_write), SYS_FUNC(s390_pci_mmio_read)): New function. --- linux/s390/syscallent.h | 4 ++--

[strace PATCH 09/12] tests: check s390_runtime_instr system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* tests/s390_runtime_instr.c: New file. * tests/.gitignore: Add s390_runtime_instr. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_runtime_instr): New test. --- tests/.gitignore| 1 + tests/gen_tests.in | 1 + tests/pure_executables.list | 1 +

[strace PATCH 07/12] tests: check s390_guarded_storage system call decoder

2018-01-17 Thread Eugene Syromyatnikov
* configure.ac (AC_CHECK_HEADERS): Add asm/guarded_storage.h. * tests/s390_guarded_storage-v.c: New file. * tests/s390_guarded_storage.c: Likewise. * tests/.gitignore: Add s390_guarded_storage, s390_guarded_storage-v. * tests/pure_executables.list: Likewise. * tests/gen_tests.in

[strace PATCH 11/12] tests: check s390_pci_mmio_read and s390_pci_mmio_write decoders

2018-01-17 Thread Eugene Syromyatnikov
* tests/s390_pci_mmio_read_write.c: New file. * tests/.gitignore: Add s390_pci_mmio_read_write. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (s390_pci_mmio_read_write): New test. --- tests/.gitignore | 1 + tests/gen_tests.in | 1 +

Re: Introduction

2017-12-26 Thread Eugene Syromyatnikov
trace's interpretation of syscall arguments are observed. > On Mon, Dec 25, 2017 at 11:49 PM, Eugene Syromyatnikov <evg...@gmail.com> > wrote: >> >> On Mon, Dec 25, 2017 at 5:06 PM, Kommuru jai shankar reddy >> <kommurujaishankarre...@gmail.com> wrote: >>

Re: Introduction

2017-12-25 Thread Eugene Syromyatnikov
https://sourceforge.net/p/strace/mailman/message/36168713/ -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the world's most engaging tech sit

Re: Introduction

2017-11-19 Thread Eugene Syromyatnikov
ub.com/strace/strace.git [3] https://sourceforge.net/p/strace/code/ci/master/tree/ [4] https://github.com/strace/strace -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vi

Re: Introduction

2017-11-18 Thread Eugene Syromyatnikov
p/strace/wiki/Guide%20for%20new%20contributors/ [2] https://sourceforge.net/p/strace/wiki/Microprojects/ [3] https://sourceforge.net/p/strace/wiki/FeatureRequests/ -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -

[PATCH 1/3] xlat/gen.sh: add some rudimentary support for comments

2017-09-13 Thread Eugene Syromyatnikov
--- xlat/gen.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/xlat/gen.sh b/xlat/gen.sh index 06c1b17..9efa0ab 100755 --- a/xlat/gen.sh +++ b/xlat/gen.sh @@ -135,6 +135,9 @@ gen_header() # 1st pass: output directives. while read line; do LC_COLLATE=C +

[PATCH 3/3] term: improve decoding of termios and termio structures

2017-09-13 Thread Eugene Syromyatnikov
--- term.c | 145 ++--- xlat/term_cflags.in| 9 +++ xlat/term_cflags_csize.in | 4 ++ xlat/term_iflags.in| 15 + xlat/term_lflags.in| 17 ++ xlat/term_oflags.in| 15 +

Re: Feature Request: Process Lineage in Filenames.

2017-09-01 Thread Eugene Syromyatnikov
On Sat, Mar 4, 2017 at 12:08 AM, Eugene Syromyatnikov <evg...@gmail.com> wrote: > On Fri, Mar 3, 2017 at 11:54 PM, Ralph Corderoy <ra...@inputplus.co.uk> wrote: >> Hi, >> >> Second request. I had a bunch of filename.pid outputs from -ff the >> other day an

Re: strace-k.test

2017-08-31 Thread Eugene Syromyatnikov
somewhere. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link

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

2017-07-27 Thread Eugene Syromyatnikov
> Thus, arch_dispatcher is completed fully. > > Also, I have made syscall_dispatcher, but it has some cases when it > doesn't work, literally in 1 day it's going to be debugged. Would you mind to consider sending WIP patches or providing a link to a repository so we can look at the curre

Re: [PATCH v9 0/3] Add LuaJIT scripting support

2017-07-26 Thread Eugene Syromyatnikov
as either a Lua > string or a cdata C string) now actually support cdata C strings. > * Fixed upoken's behaviour when process_vm_writev is not available > and modifying the middle of a word is requested. > * Some other mi

Re: [PATCH v9 0/3] Add LuaJIT scripting support

2017-07-26 Thread Eugene Syromyatnikov
andy to have patch changelog here, especially if you claim that the issues pointed out during the previous review are partially touched. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check ou

Re: [PATCH v4 2/6] Introduce new filtering architecture

2017-07-25 Thread Eugene Syromyatnikov
r to signify their termination, please refer to commit 861e50b6 [1]. [1] https://github.com/strace/strace/commit/861e50b6df434ac690613c54ad75aaefc9743e74 -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@ja

Re: [PATCH v3 2/6] Introduce new filtering architecture

2017-07-05 Thread Eugene Syromyatnikov
gt;> \ >>> +{#NAME, sizeof(#NAME) - 1,PRIORITY, parse_ ## PARSER, free_ ## PARSER, >>> \ >>> + PREFILTER, apply_ ## NAME} >> Missing indentation of the macro definition. Incorrect indentation of >> the structure definition continuation. > I can't

Re: [PATCH v3 5/6] Optimize default filtering

2017-07-03 Thread Eugene Syromyatnikov
On Mon, Jul 3, 2017 at 6:43 PM, Victor Krapivensky <krapivenskiy...@phystech.edu> wrote: > Actually, passing a non-dereferencable pointer as a first argument to > qsort is UB, even if the second argument is 0: My bad, didn't notice that filter_actions is invalid in that case, thanks!

Re: [PATCH RFC v1 1/1] Initial support for Lua scripting

2017-06-15 Thread Eugene Syromyatnikov
d suggest renaming STRINGIFY() macro in defs_reuse.h. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the world's most engaging tech sites, Sla

Re: [PATCH 1/8] netlink: add a basic socket diag parser of AF_NETLINK messages

2017-06-13 Thread Eugene Syromyatnikov
is the constant from when it is not defined in actual version of the kernel headers and these headers have suffered several iterations of refectoring. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} ---

IRC channel

2017-05-14 Thread Eugene Syromyatnikov
list, as the latter definitely has far broader reach and is much more "archive-able" way of communication, so it is more suitable for open discussions. [1] https://sourceforge.net/p/strace/mailman/message/35631132/ -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabb

Re: Testcase failed

2017-05-09 Thread Eugene Syromyatnikov
> Strace-devel mailing list > Strace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/strace-devel > -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -

Re: [PATCH 1/2] v4l2: Add decoding for VIDIOC_G/S_TUNER's arg

2017-05-01 Thread Eugene Syromyatnikov
t;> > --- /dev/null >> > +++ b/xlat/v4l2_tuner_capabilities.in >> > @@ -0,0 +1,14 @@ >> > +V4L2_TUNER_CAP_LOW >> > +V4L2_TUNER_CAP_NORM >> > +V4L2_TUNER_CAP_HWSEEK_BOUNDED >> > +V4L2_TUNER_CAP_HWSEEK_WRAP >> > +V4L2_TUNER_CAP

Re: strace-V test fails next year

2017-04-21 Thread Eugene Syromyatnikov
__ > Strace-devel mailing list > Strace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/strace-devel -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Che

Re: [RFC] GSoC 2017 proposal draft: advanced syscall tampering and filtering with Lua

2017-04-03 Thread Eugene Syromyatnikov
On Thu, Mar 30, 2017 at 5:56 PM, Victor Krapivensky <krapivenskiy...@phystech.edu> wrote: > On Thu, Mar 30, 2017 at 05:28:55AM +0200, Eugene Syromyatnikov wrote: >> The one quite interesting aspect, from my point of view, is the way you >> expect to access (and modify) argum

Re: GSOC: 2017 : I want to contribute

2017-04-02 Thread Eugene Syromyatnikov
available in tests folder ? Test suite can be run with "make check". Specific test can be run with make check TESTS="test_name". > Thanks, > Sandhya Bankar -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -

Re: [RFC] GSoC 2017 proposal draft: advanced syscall tampering and filtering with Lua

2017-03-29 Thread Eugene Syromyatnikov
Hello. On Sat, Mar 25, 2017 at 10:58:16PM +0300, Victor Krapivensky wrote: > The first draft of my proposal can be found here: > > https://gist.github.com/shdown/a1f3f2bce1210f55389bacf406030b25 > > As for now, it is incomplete (does not even contain schedule) and will > surely be updated and

Re: Introduction and [PATCH V1]

2017-03-24 Thread Eugene Syromyatnikov
d, to some extent, strace's behaviour) are dependent on the version of kernel headers, libc, and kernel ABI used for building strace or tests, respectively. thus the discrepancy. [1] https://sourceforge.net/p/strace/mailman/message/35732562/ -- Eugene Syromyatnikov mailto:evg...@gmail.c

Re: Introduction and [PATCH V1]

2017-03-21 Thread Eugene Syromyatnikov
On Sun, Mar 19, 2017 at 03:27:18PM +0530, Rohan Rajak wrote: > Hi, > I am Rohan Rajak a 3rd year computer science student at IIT Kharagpur, > (India). > My interest lies in System Programming. I have taken courses like operating > system, computer networks etc. And I am familiar with multithreaded

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

2017-03-21 Thread Eugene Syromyatnikov
On Sat, Mar 18, 2017 at 08:29:46PM +0530, Abhishek Tiwari wrote: > fixed. Patch attached. Please look at the rest of the e-mail you have replied to. -- Check out the vibrant tech community on one of the world's most

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

2017-03-21 Thread Eugene Syromyatnikov
> None of stat related syscalls have their corresponding flag set. > $ grep -nr '_\(\|f\|l\)stat' linux/*/syscallent* > > Should these be updated with their corresponding tags ? > fstatfs*-> TD > lstat*-> TD > {,old_}stat*-> TF > or are they intensional? Most probably these compatibility calls

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

2017-03-21 Thread Eugene Syromyatnikov
On Sun, Mar 19, 2017 at 07:37:22AM +0530, Rishi Bhatt wrote: > On Sun, Mar 19, 2017 at 6:34 AM, Dmitry V. Levin wrote: > > > From: Rishi Bhatt > > > Subject: [PATCH v4] Implemented -e trace=%clock option > > > > v4? Again? > > > > So which one is it?

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

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 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

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}

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 > + *

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

2017-03-18 Thread Eugene Syromyatnikov
nity on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Strace-devel mailing list > Strace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/strace-devel > -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp

Re: GSOC: Introduction

2017-03-17 Thread Eugene Syromyatnikov
On Thu, Mar 16, 2017 at 10:07:27PM +0530, Abhishek Tiwari wrote: > From 38ea98c7ba87bc485d8af34fc401f46b05b2c035 Mon Sep 17 00:00:00 2001 > From: Abhishek Tiwari > Date: Thu, 16 Mar 2017 16:55:44 +0530 > Subject: [PATCH v4] Implement -e trace=%statfs option for

Re: [PATCH v6] Implement decoding of statx syscall

2017-03-17 Thread Eugene Syromyatnikov
On Fri, Mar 17, 2017 at 08:08:29PM +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. > *

Re: Gsoc Introduction.

2017-03-17 Thread Eugene Syromyatnikov
On Fri, Mar 17, 2017 at 06:35:09PM +0100, Eugene Syromyatnikov wrote: > Please format function declaration as following: > > int > nsfs_ioctl(struct tcb *tcp, unsigned int code, kernel_ulong_t arg) { Oops. Opening curly brace should be on the next line, like this: int nsfs_ioctl(str

Re: Gsoc Introduction.

2017-03-17 Thread Eugene Syromyatnikov
On Fri, Mar 17, 2017 at 08:12:02AM +0700, Nikolay Marchuk wrote: > Thank you for review. I have rewritten my code, but I still have some > problems with NS_GET_NSTYPE parsing without additional argument. And new > tests are not fully tested, because I haven't build kernel yet. Please send patches

Re: [PATCH] Decode RUSAGE_THREAD

2017-03-15 Thread Eugene Syromyatnikov
Otherwise, patch looks good overall. > -- > 2.10.2 > > > ------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >

Re: Does strace support capturing session ID and process group ID?

2017-03-14 Thread Eugene Syromyatnikov
ling list > Strace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/strace-devel > -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibran

Re: Implemented -e trace=%clock option

2017-03-13 Thread Eugene Syromyatnikov
> diff --git a/strace.1 b/strace.1 > index 9b69ec22..c46ca3ba 100644 > --- a/strace.1 > +++ b/strace.1 > @@ -429,6 +429,9 @@ Trace all memory mapping related system calls. > .BR "\-e\ trace" = %sched > Trace all scheduler-related (sched_*) system calls. > .TP > +.BR "\-e\ trace" = %clock >

Re: GSOC: Introduction

2017-03-13 Thread Eugene Syromyatnikov
On Sat, Mar 11, 2017 at 02:26:42PM +0530, Abhishek Tiwari wrote: > On Sat, Mar 11, 2017 at 1:46 PM, Abhishek Tiwari > wrote: > > Sir, I figured out that open system call is implemented corresponding > > to kernel version it supports, so open syscall is inside > >

Re: GSoC 2017 introduction

2017-03-13 Thread Eugene Syromyatnikov
On Sat, Mar 11, 2017 at 02:51:35PM +0300, Victor Krapivensky wrote: > Removed a trailing semicolon in a macro definition in tests/xstatx.c > and changed copyright holders of new files to "The strace developers". > > Please review this one. > > I've also found a possile buffer overflow bug in

Re: Implemented -e trace=%clock option

2017-03-12 Thread Eugene Syromyatnikov
On Sat, Mar 11, 2017 at 10:16:42PM +0530, Rishi Bhatt wrote: > Sorry, Ignore previous attachment. > > The following patch is the implementation. > I've tried to apply this, but git-am(1) failed with the following diagnostics: .git/rebase-apply/patch:801: trailing whitespace. #define TC

Re: GSoC 2017 introduction

2017-03-09 Thread Eugene Syromyatnikov
trace/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:evg...@gmail.com xmpp:esyr@jabber.{ru|org} --

Re: [PATCH v2] Implement output staging for failed/successful syscalls

2017-03-07 Thread Eugene Syromyatnikov
ich is expected to be right after linux 4.11 release in about 7—8 weeks. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Announcing the Oxford Dictionaries API! The API offers world-renowned dic

Re: Introduction

2017-03-04 Thread Eugene Syromyatnikov
;> Strace-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/strace-devel >> > > > -- > Check out the vibrant tech community on one of the world's most

Re: fsetxattr strings are not truncated

2017-03-03 Thread Eugene Syromyatnikov
- > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order

Re: Feature Request: Process Lineage in Filenames.

2017-03-03 Thread Eugene Syromyatnikov
_______ > Strace-devel mailing list > Strace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/strace-devel -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -

Re: GSOC : Introducing myself

2017-02-21 Thread Eugene Syromyatnikov
On Tue, Feb 21, 2017 at 11:24 AM, Animesh Kashyap <annimesh2...@gmail.com> wrote: > On Sun, Feb 19, 2017 at 12:20 AM, Eugene Syromyatnikov <evg...@gmail.com> > wrote: >> Well, strace itself does not utilise bug tracker of any sort; bugs and >> suggestions usually

Re: GSOC : Introducing myself

2017-02-18 Thread Eugene Syromyatnikov
ug_status%2Cpriority%2Cbug_severity=Fedora_based_on=_format=advanced -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the world's most enga

Re: strace cant parse struct msghdr RHEL

2017-02-10 Thread Eugene Syromyatnikov
NTROUTE|MSG_CTRUNC|MSG_DONTWAIT|MSG_WAITALL|MSG_SYN|MSG_CONFIRM|MSG_MORE|0xff8b}, >> 0) = 12 >> ./strace: Out of memory >> sendmsg(8, {msg_name=NULL, msg_namelen=-7623584, msg_iov=NULL, >> msg_iovlen=33655230453052149, msg_control=./strace: umo

Re: Feature request: coloured output

2017-02-07 Thread Eugene Syromyatnikov
; Strace-devel mailing list > Strace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/strace-devel > -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant

Re: [PATCH 3/4] getrandom: print getrandom buffer as hex array

2017-01-06 Thread Eugene Syromyatnikov
On Fri, Jan 06, 2017 at 03:16:29PM +0800, JingPiao Chen wrote: > In general, the random bytes is not number or letter, print > as hex array is clear, use 0x%02x format print it, easy to > konw each element is one byte, so 0 will print 0x00. I think it is better (in terms of performance and

Re: [PATCH 1/4] tests/.gitignore: add missing files that should be ignored

2017-01-05 Thread Eugene Syromyatnikov
trace/commit/f2d80518f7249e30b4850fa4d8266a5ee485e04e -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.l

Re: Sending signals on syscalls

2016-12-24 Thread Eugene Syromyatnikov
------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > O

Re: tests: add prctl-name.test, prctl-pdeathsig.test and prctl-tsc.test

2016-12-07 Thread Eugene Syromyatnikov
, from the original implementation to the current one). As you may note, ioctl decoders (among other things), again, lack proper test coverage. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358248 [2] https://github.com/lineprinter/strace/blob/structured/README-structured.md [3] htt

Re: tests: add prctl-name.test, prctl-pdeathsig.test and prctl-tsc.test

2016-12-07 Thread Eugene Syromyatnikov
On Thu, Nov 17, 2016 at 1:17 PM, JingPiao Chen <chenjingp...@foxmail.com> wrote: > ... Your patch has been applied in master, https://github.com/strace/strace/commit/d945e74377fe069de0fe1aa2823442cf8dbdbb52 . Thank you for your contribution. -- Eugene Syromyatnikov mailto:evg...@

Re: tests: add prctl-name.test, prctl-pdeathsig.test and prctl-tsc.test

2016-11-21 Thread Eugene Syromyatnikov
Hello. Thank you for your contribution. Thanks to it, several bugs in current prctl decoder implementation have been revealed. Please take a look On Thu, Nov 17, 2016 at 09:17:27PM +0800, JingPiao Chen wrote: > From 8995d87f0c27d40d574f032bf483f6ae2b5f7375 Mon Sep 17 00:00:00 2001 > From:

[Announce] Fault injection in upcoming strace 4.15

2016-11-16 Thread Eugene Syromyatnikov
This summer, as a part of his GSoC 2016 project, Nahim El Atmani has implemented[1] a prototype of syscall fault injection. Fault injection is a testing/debugging technique which tampers the system calls made by a program in order to check (correctness of) program's behaviour in presence of

Re: [PATCH] device mapper ioctl

2016-11-10 Thread Eugene Syromyatnikov
On Wed, Oct 19, 2016 at 8:31 PM, Mikulas Patocka wrote: > > Hi > > Here I'm sending the device mapper ioctl patch with these changes merged. Hello. Thank you for your contribution. The implementation of DM_* ioctl decoding is now in strace's master, you can check it out at

[PATCH 03/26] bjm: Use getarg_ull for retrieving len parameter of init_module syscall

2016-10-23 Thread Eugene Syromyatnikov
Since it is of kernel_ulont_t type, in fact. * bjm.c (SYS_FUNC(init_module)): Use "%llu" conversion specifier, obtain len aargument via getarg_ull. --- bjm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bjm.c b/bjm.c index e77b73d..c8e8470 100644 --- a/bjm.c +++ b/bjm.c

[PATCH 26/26] tests: Additional name_to_handle_at/open_by_handle_at checks

2016-10-23 Thread Eugene Syromyatnikov
* tests/file_handle.c: Additional name_to_handle_at/open_by_handle_at checks. --- tests/file_handle.c | 266 +-- 1 file changed, 259 insertions(+), 7 deletions(-) diff --git a/tests/file_handle.c b/tests/file_handle.c index 42b89d8..976cd6a 100644

[PATCH 25/26] tests: Require only presence of __NR_* macros for file_handle test

2016-10-23 Thread Eugene Syromyatnikov
* tests/file_handle.c: replace fcntl.h include with asm/unistd.h. [MAX_HANDLE_SZ]: change to defined __NR_name_to_handle_at && defined __NR_open_by_handle_at, add fcntl.h include [!MAX_HANDLE_SZ]: Add definition of MAX_HANDLE_SZ and struct file_handle. (main): Change name_to_handle_at and

[PATCH 22/26] bjm: Parse parameters of init_module as of kernel_ulong_t type

2016-10-23 Thread Eugene Syromyatnikov
init_module does not have compat on x32/n32, so its parameters should be parsed as kernel_ulong_t. * util.c (printaddr): Change type of addr parameter to kernel_ulong_t. (printstr_ex): Change type of addr parameter to kernel_ulong_t, change type of len parameter to kernel_long_t. * defs.h:

[PATCH 24/26] tests: Proper type conversion in keyctl test

2016-10-23 Thread Eugene Syromyatnikov
* tests/keyctl.c (printarg): Add intermediate conversion of arg to uintptr_t since kernel_ulong_t may be of different size. --- tests/keyctl.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/keyctl.c b/tests/keyctl.c index a60dcfc..4b1e383 100644 ---

[PATCH 23/26] file_handle: Use separate xlat for name_ta_handle_at flags

2016-10-23 Thread Eugene Syromyatnikov
Since the only two flags supported are AT_SYMLINK_FOLLOW and AT_EMPTY_PATH. * xlat/name_to_handle_at_flags.in: New file. * file_handle.c (SYS_FUNC(name_to_handle_at)): Use name_to_handle_at_flags for printing flags parameter. --- file_handle.c |7 +--

[PATCH 21/26] tests: Add kexec checks

2016-10-23 Thread Eugene Syromyatnikov
of kexec_file_load syscall. + * + * Copyright (c) 2016 Eugene Syromyatnikov <evg...@gmail.com> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of sourc

[PATCH 18/26] kexec: Fix zeroing of higher bits of flags parameter in kexec_load

2016-10-23 Thread Eugene Syromyatnikov
* kexec.c (SYS_FUNC(kexec_load)): Perform type conversion before negation in order to properly negate higher bits of KEXEC_ARCH_MASK. --- kexec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kexec.c b/kexec.c index 9ced015..d27bfe1 100644 --- a/kexec.c +++ b/kexec.c @@

[PATCH 19/26] defs: Add widen_to_ulong macro

2016-10-23 Thread Eugene Syromyatnikov
This is similar to widen_to_long, but for unsigned values. * defs.h (widen_to_ulong): New macro. --- defs.h |8 1 file changed, 8 insertions(+) diff --git a/defs.h b/defs.h index 6566488..8f34679 100644 --- a/defs.h +++ b/defs.h @@ -760,6 +760,14 @@ extern unsigned

[PATCH 16/26] tests: Add unshare syscall decoding check

2016-10-23 Thread Eugene Syromyatnikov
\ userfaultfd.test \ utime.test \ utimensat.test \ diff --git a/tests/unshare.c b/tests/unshare.c new file mode 100644 index 000..7b702dc --- /dev/null +++ b/tests/unshare.c @@ -0,0 +1,82 @@ +/* + * Check decoding of unshare syscall. + * + * Copyright (c) 2016 Eugene Syromyatnikov <

[PATCH 13/26] tests: Add old*stat checks

2016-10-23 Thread Eugene Syromyatnikov
100644 index 000..5278599 --- /dev/null +++ b/tests/oldfstat.c @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2015-2016 Dmitry V. Levin <l...@altlinux.org> + * Copyright (c) 2016 Eugene Syromyatnikov <evg...@gmail.com> + * All rights reserved. + * + * Redistribution and use in source and

[PATCH 12/26] tests: Additional tests for stat decoder

2016-10-23 Thread Eugene Syromyatnikov
PRINT_SYSCALL_HEADER/PRINT_SYSCALL_FOOTER now contain open/close brace pair in order to save errno. PRINT_SYSCALL_FOOTER now uses sprintrc for printing rc/errno. * xstatx.c (main): Add check for non-available pointer, for block device file. Update PRINT_SYSCALL_FOOTER call convention. * fstatat.c

[PATCH 15/26] clone: Use kernel_ulong_t as type of flags parameter of unshare call

2016-10-23 Thread Eugene Syromyatnikov
Kernel declares flags parameter as long and looks like x32 and n32 implement no compat for this call. * clone.c (SYS_FUNC(unshare)): Use getarg_ull and printflags64 for obtaining and parsing flags parameter. --- clone.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 02/26] xlat: Add values for MODULE_INIT_* constants

2016-10-23 Thread Eugene Syromyatnikov
* bjm.c (MODULE_INIT_IGNORE_MODVERSIONS, MODULE_INIT_IGNORE_VERMAGIC): Remove. * xlat/module_init_flags.in: Add values for MODULE_INIT_IGNORE_MODVERSIONS and MODULE_INIT_IGNORE_VERMAGIC records. --- bjm.c |3 --- xlat/module_init_flags.in |4 ++-- 2 files changed, 2

[PATCH 06/26] tests: Some additional checks for fanotify_mark

2016-10-23 Thread Eugene Syromyatnikov
* tests/fanotify_mark.c (do_call): New function. (main): Use it. --- tests/fanotify_mark.c| 137 +- tests/fanotify_mark.test |2 +- 2 files changed, 135 insertions(+), 4 deletions(-) diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c

[PATCH 10/26] clone: Use separate xlat for nstype parameter of setns syscall

2016-10-23 Thread Eugene Syromyatnikov
nstype is not flag set but specific type value against which it is compared in kernel (see kernel/nsproxy.c, SYSCALL_DEFINE2(setns, ...)). * xlat/setns_types.in: New file. * clone.c: Use printxval and setns_types for nstype parameter. --- clone.c |3 ++- xlat/setns_types.in |

[PATCH 14/26] clone: Use separate flag list for unshare

2016-10-23 Thread Eugene Syromyatnikov
Not all clone flags could be passed to unshare (see check_unshare_flags function in kernel/fork.c). * xlat/unshare_flags.in: New file. * clone.c (SYS_FUNC(unshare)): Use unshare_flags for printing flags parameter. --- clone.c |3 ++- xlat/unshare_flags.in | 13 +

[PATCH 09/26] tests: Check non-verbose capget/capset output

2016-10-23 Thread Eugene Syromyatnikov
* tests/caps-abbrev.awk: New file. * tests/caps-abbrev.c: Likewise. * tests/caps-abbrev.test: New test. * tests/.gitignore: Add caps-abbrev. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add caps-abbrev.test. (EXTRA_DIST): Add caps-abbrev.awk. --- tests/.gitignore |1

[PATCH 05/26] tests: use sprintrc in tests/fanotify_mark.c

2016-10-23 Thread Eugene Syromyatnikov
* tests/fanotify.c (main): Use sprintrc. --- tests/fanotify_mark.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c index 9cac5ef..a994c15 100644 --- a/tests/fanotify_mark.c +++ b/tests/fanotify_mark.c @@ -11,7 +11,7 @@

[PATCH 01/26] Remove parser of create_module syscall

2016-10-23 Thread Eugene Syromyatnikov
Since create_module syscall is present only in kernels before Linux 2.6 and strace does not support those kernels, there is no use to keep this parser any longer. * bjm.c (SYS_FUNC(create_module)): Remove. * linux/dummy.h (sys_create_module): Add stub alias. --- bjm.c |8

[PATCH 00/26] Various misc tests and additional checks

2016-10-23 Thread Eugene Syromyatnikov
. * Additional checks: fonotify_mark, capset, capget, stat family, name_to_handle_at, open_by_handle_at. * Another changes: create_module decoder removed; keyctl test build warning fix; minor fixes in decoders. Eugene Syromyatnikov (26): Remove parser of create_module syscall xlat: Add values

[PATCH 6/6] tests: Add tests for perf_event_attr structure decoding in perf_event_open

2016-10-15 Thread Eugene Syromyatnikov
* configure.ac: Add checks for presence of various fields of struct perf_event_attr defined in kernel headers. * tests/.gitignore: Add Add perf_event_open_verbose, perf_event_open_verbose_unabbrev.. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add perf_event_open_verbose.test,

[PATCH 0/6] Decoding of perf_event_attr structure

2016-10-15 Thread Eugene Syromyatnikov
Hello. The following patch implements decoding of the perf_event_attr structure used in perf_event_open syscall. Eugene Syromyatnikov (6): defs.h: Add offsetofend macro Implement decoding of perf_event_attr structure in perf_event_open syscall tests: Add period parameter

  1   2   3   >