* 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 |
* 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.
* 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
---
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)
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.
*
---
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
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
* 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.
* 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,
* 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
* 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
* 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 |
* 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 ++--
* 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 +
* 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
* 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 +
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:
>>
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
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
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}
-
---
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
+
---
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 +
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
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
> 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
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
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
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
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
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!
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
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}
---
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
> 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}
-
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
__
> 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
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
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}
-
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
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
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
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
> 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
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?
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
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
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
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}
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
> + *
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
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
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.
> *
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
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
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
>
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
> 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
>
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
> >
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
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/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}
--
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
;> 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
-
> 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
_______
> 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}
-
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
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
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
; 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
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
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
------
> 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
, 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
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...@
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:
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
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
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
* 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
* 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
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:
* 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
---
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 +--
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
* 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
@@
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
\
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 <
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
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
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
* 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
* 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
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 |
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 +
* 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
* 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 @@
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
.
* 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
* 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,
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 - 100 of 257 matches
Mail list logo