Re: GSOC:Microproject

2018-02-23 Thread Eugene Syromyatnikov
alification syntax, but, for example, "%%%" looks too unwieldy. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the world's most e

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

[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 1/2] Implement decoding of riscv_flush_icache syscall

2018-01-22 Thread Eugene Syromyatnikov
* linux/riscv/syscallent.h ([259]): Add riscv_flush_icache entry. * riscv.c: New file. * Makefile.am (strace_SOURCES): Add it. * xlat/riscv_flush_icache_flags.in: New file. * NEWS: Mention it. --- Makefile.am | 1 + NEWS | 1 + linux/riscv/syscall

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

[PATCH v2] mpers: implement gawk 3 support

2018-01-21 Thread Eugene Syromyatnikov
Some old systems that still make some sense to be supported have only gawk 3, so let's support them for now. In order to achieve that, multiple changes have been implemented: - Multidimensional arrays are replaced with single-dimensional ones. In most places it's a "][" -> ", " replacement, as

[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) ARISING

[strace PATCH 00/12] s390 architecture support improvements

2018-01-17 Thread Eugene Syromyatnikov
used, so the feedback regarding quality of the decoders is also welcome. Eugene Syromyatnikov (12): Add compat support for s390x Add print_quoted_string flag to generate comment print_fields.h: add macro to print hexadecimal array field Introduce s390_sthyi system call decoder tests: check

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

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

[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, SYS_FUNC(s3

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

[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 ++-- linux/s390x/s

[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 + tests/s3

[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 (s390_guarded_stora

[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 + tests/pure_exe

Re: Introduction

2017-12-26 Thread Eugene Syromyatnikov
yscall arguments are observed. > On Mon, Dec 25, 2017 at 11:49 PM, Eugene Syromyatnikov > wrote: >> >> On Mon, Dec 25, 2017 at 5:06 PM, Kommuru jai shankar reddy >> wrote: >> > Hello, >> >I'm jaya shankar,. Computer science student of natio

Re: Introduction

2017-12-25 Thread Eugene Syromyatnikov
orge.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 tec

Re: Introduction

2017-11-19 Thread Eugene Syromyatnikov
the entry of strace?(because > maybe I can start from this file) The strace.c file contains main routine. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech communit

Re: Introduction

2017-11-19 Thread Eugene Syromyatnikov
trace/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 vibrant tech community on one of

Re: Introduction

2017-11-18 Thread Eugene Syromyatnikov
for%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} -- Chec

Re: regarding help for starting new contribution

2017-10-04 Thread Eugene Syromyatnikov
%20for%20new%20contributors/ [2] https://sourceforge.net/p/strace/wiki/Microprojects/ -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the w

[PATCH 2/3] use print_quoted_string in decode_termio

2017-09-13 Thread Eugene Syromyatnikov
--- term.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/term.c b/term.c index 9368e5f..28f562f 100644 --- a/term.c +++ b/term.c @@ -73,7 +73,6 @@ static void decode_termio(struct tcb *const tcp, const kernel_ulong_t addr) { struct termio tio; - int i;

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

Re: Show full named struct values?

2017-09-13 Thread Eugene Syromyatnikov
Hello. Current support of term ioctls is in pretty abandoned state. However, does this patch set work for you? Eugene Syromyatnikov (3): xlat/gen.sh: add some rudimentary support for comments use print_quoted_string in decode_termio term: improve decoding of termios and termio structures

[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 + xlat/term_oflags_b

Re: Feature Request: Process Lineage in Filenames.

2017-09-01 Thread Eugene Syromyatnikov
On Sat, Mar 4, 2017 at 12:08 AM, Eugene Syromyatnikov wrote: > On Fri, Mar 3, 2017 at 11:54 PM, Ralph Corderoy wrote: >> Hi, >> >> Second request. I had a bunch of filename.pid outputs from -ff the >> other day and to better understand what occurred, I examined and re

Re: strace-k.test

2017-08-31 Thread Eugene Syromyatnikov
On Wed, Aug 30, 2017 at 12:42 PM, Andreas Schwab wrote: > The strace-k test always fails if getpid is implemented as a vsyscall: Can you please provide some information about the environment in order to reproduce it? It's quite unusual to me that vsyscall is used somewhere. --

Re: Unable to use strace in embedded mips system

2017-08-16 Thread Eugene Syromyatnikov
On Wed, Aug 16, 2017 at 1:37 PM, Davide Palma wrote: > What do you suggest me to do? What is the kernel version? -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant t

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

2017-07-27 Thread Eugene Syromyatnikov
lly. > > 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 current state of the proje

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

2017-07-26 Thread Eugene Syromyatnikov
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 minor fixes. Thanks! -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} ---

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

2017-07-26 Thread Eugene Syromyatnikov
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 out the vibrant tech community on o

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

2017-07-25 Thread Eugene Syromyatnikov
refer to commit 861e50b6 [1]. [1] https://github.com/strace/strace/commit/861e50b6df434ac690613c54ad75aaefc9743e74 -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibran

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

2017-07-11 Thread Eugene Syromyatnikov
On Tue, Jul 11, 2017 at 7:29 AM, Edgar Kaziahmedov wrote: > I accidentally lost mail with faster ways of communication with > mentors. Could you resend it, please? Do you mean [1] or something else? [1] https://sourceforge.net/p/strace/mailman/message/35839556/ -- Eugene Syromya

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

2017-07-05 Thread Eugene Syromyatnikov
; +{#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 find any references

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 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! -- Eugene Syromyatnikov

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

2017-06-16 Thread Eugene Syromyatnikov
On Fri, Jun 16, 2017 at 2:39 PM, Victor Krapivensky wrote: > On Thu, Jun 15, 2017 at 05:39:25PM +0000, Eugene Syromyatnikov wrote: >> On Thu, Jun 15, 2017 at 3:28 PM, Eugene Syromiatnikov >> wrote: >> > Overall looks good. >> >> Well, except that mpers_d

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

2017-06-15 Thread Eugene Syromyatnikov
gest 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, Slashdot.or

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

2017-06-13 Thread Eugene Syromyatnikov
en 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} -- Check out the vi

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
t; 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} -- Ch

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

2017-05-01 Thread Eugene Syromyatnikov
ities.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_STEREO >> > +V4L2_TUNER_CAP_LANG2 >> &g

Re: strace-V test fails next year

2017-04-21 Thread Eugene Syromyatnikov
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 v

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 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) argument data. For example, some syscalls &

Re: GSOC: 2017 : I want to contribute

2017-04-02 Thread Eugene Syromyatnikov
? 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 en

Re: [PATCH] powerpc, x86_64: drop support of old kernels

2017-03-29 Thread Eugene Syromyatnikov
On Tue, Mar 28, 2017 at 09:18:29PM +0300, Gleb Fotengauer-Malinovskiy wrote: > Drop support of x86_64 kernels < 2.6.34 > without PTRACE_GETREGSET support. I think dropping support for kernels like 2.6.32 this early is not a very good idea. At least, it's quite dramatic change from "Linux kernel >=

Re: Introduction and [PATCH V1]

2017-03-24 Thread Eugene Syromyatnikov
(and, 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 Syromyatnik

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 engagi

Re: Understanding a parser.

2017-03-21 Thread Eugene Syromyatnikov
On Sun, Mar 19, 2017 at 01:47:22AM +0530, Rishi Bhatt wrote: > 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

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 ha

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

2017-03-21 Thread Eugene Syromyatnikov
On Sun, Mar 19, 2017 at 11:30:01AM +0530, Abhishek Tiwari wrote: > 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 > > > > Pl

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? Judging by the amount of patches sent, it's m

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

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 >

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

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 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 Eugene Syromyatnikov
es, 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:esyr@ja

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 tracing statfs like > syscalls. >

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. > * statx.h:

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
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
e-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 tech community on one of

Re: GSOC: Introduction

2017-03-12 Thread Eugene Syromyatnikov
whether some unortodox (but quite utilised) ways of obtaining new fds, like recvfrom or ioctl(NS_GET_PARENT, ...) or bpf(BPF_MAP_CREATE, ...) should be covered. In my opinion, it makes the filter too complicated, but event not considering them, there are also at least timerfd_create, eventfd/eventfd2,

Re: Implemented -e trace=%clock option

2017-03-12 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 > ++Tra

Re: GSOC: Introduction

2017-03-12 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 > > linux/x32/syscallent.h while opena

Re: GSoC 2017 introduction

2017-03-12 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 unwi

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 TRACE_C

Re: GSoC 2017 introduction

2017-03-09 Thread Eugene Syromyatnikov
#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} -- Announcing the Oxford Dic

Re: GSOC: Introduction

2017-03-07 Thread Eugene Syromyatnikov
can be implemented as openat(AT_FDCWD, path, flags, mode). -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary con

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

2017-03-07 Thread Eugene Syromyatnikov
ch 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
devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/strace-devel >> > > > ------ > Check out the vibrant tech community on one of the

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 your platform today.http://sdm.link/intel > ___

Re: Feature Request: Process Lineage in Filenames.

2017-03-03 Thread Eugene Syromyatnikov
heers, Ralph. > https://plus.google.com/+RalphCorderoy > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___

[Announce] strace has been accepted as a mentor organisation in GSoC 2017

2017-02-27 Thread Eugene Syromyatnikov
https://summerofcode.withgoogle.com/organizations/4865634958573568/ [2] https://sourceforge.net/p/strace/wiki/GoogleSummerOfCode2017/ -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community o

Re: GSOC : Introducing myself

2017-02-21 Thread Eugene Syromyatnikov
On Tue, Feb 21, 2017 at 11:24 AM, Animesh Kashyap wrote: > On Sun, Feb 19, 2017 at 12:20 AM, Eugene Syromyatnikov > wrote: >> Well, strace itself does not utilise bug tracker of any sort; bugs and >> suggestions usually reported via this mailing list (like suggestion >>

Re: GSOC : Introducing myself

2017-02-18 Thread Eugene Syromyatnikov
tus%2Cpriority%2Cbug_severity&product=Fedora&query_based_on=&query_format=advanced -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} -- Check out the vibrant tech community on one of the wor

Re: GSOC : Introducing myself

2017-02-18 Thread Eugene Syromyatnikov
Check out the vibrant tech community 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/listin

Re: [PATCH 1/3] Add gdb remote protocol handling to strace

2017-02-17 Thread Eugene Syromyatnikov
ck out the vibrant tech community 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/lis

Re: strace cant parse struct msghdr RHEL

2017-02-10 Thread Eugene Syromyatnikov
C|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:

Re: Feature request: coloured output

2017-02-07 Thread Eugene Syromyatnikov
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 tech community on one

Re: How to build strace

2017-01-31 Thread Eugene Syromyatnikov
t; Strace-devel mailing list > Strace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/strace-devel > [1] https://sourceforge.net/p/strace/mailman/message/35631329/ -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|org} ---

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 readabi

Re: [PATCH 3/4] tests: check decoding of LOOP_* ioctls

2017-01-05 Thread Eugene Syromyatnikov
am (check_PROGRAMS): Likewise. > (DECODER_TESTS): Add ioctl_loop.test and ioctl_loop-v.test. Hello. Thank you for your contribution, the patch has been applied to the master branch, https://github.com/strace/strace/commit/3127a6a2754ee3c5cef94c91b9583a39cb3fe7b7 -- Eugene Syromyatnikov ma

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

2017-01-05 Thread Eugene Syromyatnikov
On Tue, Dec 27, 2016 at 3:43 AM, JingPiao Chen wrote: > * tests/.gitignore: Add add_key, attach-f-p-cmd and scno.h. > --- Hello. Thank you for your contribution, the patch has been merged to master, https://github.com/strace/strace/commit/f2d80518f7249e30b4850fa4d8266a5ee485e04e --

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. > Order your platform tod

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

2016-12-07 Thread Eugene Syromyatnikov
ginal 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] https://codeco

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 wrote: > ... Your patch has been applied in master, https://github.com/strace/strace/commit/d945e74377fe069de0fe1aa2823442cf8dbdbb52 . Thank you for your contribution. -- Eugene Syromyatnikov mailto:evg...@gmail.com xmpp:esyr@jabber.{ru|

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

[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 errors.

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 https://github.com/str

[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

  1   2   3   4   >