From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Wei Li <liwei391@huawei.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>,
Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
linux-perf-users@vger.kernel.org, huawei.libin@huawei.com
Subject: Re: [PATCH] perf scripts python: Support syscall name parsing on arm64
Date: Tue, 15 Aug 2023 14:48:57 -0300 [thread overview]
Message-ID: <ZNu6iWfCfh9aU1OQ@kernel.org> (raw)
In-Reply-To: <20230815131735.1237221-1-liwei391@huawei.com>
Em Tue, Aug 15, 2023 at 09:17:35PM +0800, Wei Li escreveu:
> In the result of "perf script syscall-counts" on arm64, the syscall
> events are not resolved currently. Add "aarch64" to audit uname list to
> support name parsing.
>
> * After the patch:
>
> [root@localhost ~]# perf script syscall-counts sleep 1
> Press control+C to stop and show the summary
>
> syscall events:
Thanks, applied.
- Arnaldo
> event count
> ---------------------------------------- -----------
> mmap 6
> close 5
> mprotect 4
> brk 3
> newfstatat 3
> openat 3
> getrandom 1
> prlimit64 1
> munmap 1
> clock_nanosleep 1
> set_robust_list 1
> set_tid_address 1
> exit_group 1
> read 1
> faccessat 1
>
> Signed-off-by: Wei Li <liwei391@huawei.com>
> ---
> tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
> index 84536b1a27ba..b75d31858e54 100644
> --- a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
> +++ b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
> @@ -54,6 +54,7 @@ try:
> import audit
> machine_to_id = {
> 'x86_64': audit.MACH_86_64,
> + 'aarch64': audit.MACH_AARCH64,
> 'alpha' : audit.MACH_ALPHA,
> 'ia64' : audit.MACH_IA64,
> 'ppc' : audit.MACH_PPC,
> --
> 2.25.1
>
--
- Arnaldo
prev parent reply other threads:[~2023-08-15 17:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 13:17 [PATCH] perf scripts python: Support syscall name parsing on arm64 Wei Li
2023-08-15 17:48 ` 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=ZNu6iWfCfh9aU1OQ@kernel.org \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=huawei.libin@huawei.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=liwei391@huawei.com \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.