From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Thomas-Mich Richter <tmricht@linux.vnet.ibm.com>,
Michael Petlan <mpetlan@redhat.com>, Jiri Olsa <jolsa@redhat.com>,
linux-perf-users@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [PATCH 0/3] perf: generate s390 syscall table and remove auditlibs dependency
Date: Thu, 7 Dec 2017 12:29:29 -0300 [thread overview]
Message-ID: <20171207152929.GA3173@kernel.org> (raw)
In-Reply-To: <1512635281-20733-1-git-send-email-brueckner@linux.vnet.ibm.com>
Em Thu, Dec 07, 2017 at 09:27:58AM +0100, Hendrik Brueckner escreveu:
> With the perf trace command you can specify system calls with wildcards.
> To support this on s390, a system call table must be provided to perf.
> Provide a script to create the perf system call table based on the defines
> in arch/s390/include/uapi/asm/unistd.h (copied to tools/arch/s390/...).
>
> Note that the first patch can be applied independent of the second and
> third patch. In case they need further discussion, please consider to
> integrate the first one.
>
> The second and third patches complete the work to remove the audit library
> dependency for perf trace when an architecture supports system call tables.
>
> Inspired by the generation of the system call tables, create a similar
> approach to generate errno name mappings. Introduce the errno_to_name()
> function to replace audit_errno_to_name() in perf trace. The third
> patch changes the build process to build and run perf trace without
> requiring the audit library anymore (for those architectures that have
> system call table support).
Excellent!
I'm reviewing this now, will take care of that fixup.
This should make the goal of doing a
'perf trace -i perf.data.from.other.arch'
Use the right conversion tables, allowing for instance to get a
perf.data file generated by 'perf trace record' and have it decoded
properly on a machine of a different arch, i.e. record on s390, use
'perf trace -i' to decoded it on x86_64 :-)
- Arnaldo
> Note: The patch set is based on the linux master branch (968edbd93c0cbb).
Please try this in the future using my perf/core branch, where bleeding
edge stuff gets developed, I'll see if something doesn't apply.
- Arnaldo
>
> Hendrik Brueckner (3):
> perf s390: generate system call table from asm/unistd.h
> perf: introduce errno_to_name() function
> perf trace: no longer require auditlibs if syscall tables are present
>
> tools/arch/s390/include/uapi/asm/unistd.h | 412 +++++++++++++++++++++++
> tools/perf/.gitignore | 1 +
> tools/perf/Makefile.config | 22 +-
> tools/perf/Makefile.perf | 12 +-
> tools/perf/arch/s390/Makefile | 21 ++
> tools/perf/arch/s390/entry/syscalls/mksyscalltbl | 36 ++
> tools/perf/builtin-help.c | 2 +-
> tools/perf/builtin-trace.c | 17 +-
> tools/perf/check-headers.sh | 1 +
> tools/perf/perf.c | 4 +-
> tools/perf/util/generate-cmdlist.sh | 2 +-
> tools/perf/util/generate-errno-names.sh | 32 ++
> tools/perf/util/syscalltbl.c | 4 +
> 13 files changed, 553 insertions(+), 13 deletions(-)
> create mode 100644 tools/arch/s390/include/uapi/asm/unistd.h
> create mode 100755 tools/perf/arch/s390/entry/syscalls/mksyscalltbl
> create mode 100755 tools/perf/util/generate-errno-names.sh
>
> --
> 1.8.3.1
prev parent reply other threads:[~2017-12-07 15:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-07 8:27 [PATCH 0/3] perf: generate s390 syscall table and remove auditlibs dependency Hendrik Brueckner
2017-12-07 8:27 ` [PATCH 1/3] perf s390: generate system call table from asm/unistd.h Hendrik Brueckner
2017-12-07 15:30 ` Arnaldo Carvalho de Melo
2017-12-07 17:37 ` Arnaldo Carvalho de Melo
2017-12-11 9:06 ` Hendrik Brueckner
2017-12-11 14:19 ` Arnaldo Carvalho de Melo
2017-12-07 8:28 ` [PATCH 2/3] perf: introduce errno_to_name() function Hendrik Brueckner
2017-12-07 8:37 ` [PATCH 2/3] fixup! " Hendrik Brueckner
2017-12-07 14:48 ` Arnaldo Carvalho de Melo
2017-12-07 15:00 ` [PATCH 2/3 v2] perf trace: Introduce errno_to_name() Hendrik Brueckner
2017-12-07 17:52 ` Arnaldo Carvalho de Melo
2017-12-11 11:32 ` Hendrik Brueckner
2017-12-11 15:00 ` Arnaldo Carvalho de Melo
2017-12-07 8:28 ` [PATCH 3/3] perf trace: no longer require auditlibs if syscall tables are present Hendrik Brueckner
2017-12-07 17:53 ` Arnaldo Carvalho de Melo
2017-12-11 9:35 ` Hendrik Brueckner
2017-12-07 15:29 ` Arnaldo Carvalho de Melo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171207152929.GA3173@kernel.org \
--to=acme@kernel.org \
--cc=brueckner@linux.vnet.ibm.com \
--cc=jolsa@redhat.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mpetlan@redhat.com \
--cc=tmricht@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).