* [PATCH] perf scripts python: Support syscall name parsing on arm64
@ 2023-08-15 13:17 Wei Li
2023-08-15 17:48 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 2+ messages in thread
From: Wei Li @ 2023-08-15 13:17 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
Ian Rogers, Adrian Hunter
Cc: Wei Li, linux-perf-users, huawei.libin
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:
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] perf scripts python: Support syscall name parsing on arm64
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
0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2023-08-15 17:48 UTC (permalink / raw)
To: Wei Li
Cc: Peter Zijlstra, Ingo Molnar, Mark Rutland, Alexander Shishkin,
Jiri Olsa, Namhyung Kim, Ian Rogers, Adrian Hunter,
linux-perf-users, huawei.libin
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-15 17:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.