move_pages: add xlat_style support
Dmitry V. Levin
ldv at altlinux.org
Tue Feb 19 18:14:44 UTC 2019
On Sun, Jan 13, 2019 at 11:43:51AM -0800, shankarapailoor wrote:
> Hi,
>
> strace doesn't correctly decode the status argument of move_pages. In
> the case where the status is an error, strace will print an array of
> errnos under -Xraw. I have attached a patch that prints the raw status
> value under -Xraw. Please let me know what you think.
>
> --
> Regards,
> Shankara Pailoor
> From ca1abd5cbc9a1731c8f515c074d1e5ba42aacb3b Mon Sep 17 00:00:00 2001
> From: Shankara Pailoor <shankarapailoor at gmail.com>
> Date: Sun, 13 Jan 2019 11:37:49 -0800
> Subject: [PATCH v1] move_pages: add xlat_style support
>
> * numa.c (print_status): Add xlat_style support for status arg for errnos.
> * tests/move_pages.c: Add XLAT_RAW, XLAT_ABBREV, XLAT_VERBOSE macros.
> * tests/move_pages-Xabbrev.c: Test xlat_style support
> * tests/move_pages-Xraw.c: Likewise.
> * tests/move_pages-Xverbose.c: Likewise.
> * tests/pure_executables.list: Add new tests move_pages-Xabbrev, move_pages-Xraw, move_pages-Xverbose.
> * tests/gen_tests.in: Likewise.
> * tests/.gitignore: Likewise.
> ---
> numa.c | 16 +++++++++++++---
> tests/.gitignore | 3 +++
> tests/gen_tests.in | 3 +++
> tests/move_pages-Xabbrev.c | 1 +
> tests/move_pages-Xraw.c | 2 ++
> tests/move_pages-Xverbose.c | 2 ++
> tests/move_pages.c | 20 ++++++++++++++++++++
> tests/pure_executables.list | 3 +++
> 8 files changed, 47 insertions(+), 3 deletions(-)
> create mode 100644 tests/move_pages-Xabbrev.c
> create mode 100644 tests/move_pages-Xraw.c
> create mode 100644 tests/move_pages-Xverbose.c
Applied with minor changes, thanks.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190219/faf5bcb1/attachment.bin>
More information about the Strace-devel
mailing list