Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-12 Thread David Laight
On Tue, 11 Feb 2025 18:53:14 +0100 "Arnd Bergmann" wrote: ... > I think the way it actually works on mips is that all syscalls are > allowed in any task and the actual number identifies both the > ABI and the syscall. In some variant, the same is true on arm > (oabi/eabi) and x86-64 (64/x32), but

Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-11 Thread Ian Rogers
On Tue, Feb 11, 2025 at 9:53 AM Arnd Bergmann wrote: > > On Tue, Feb 11, 2025, at 18:24, Ian Rogers wrote: > > On Tue, Feb 11, 2025 at 12:09 AM Arnd Bergmann wrote: > >> On Mon, Feb 10, 2025, at 17:51, Ian Rogers wrote: > >> > "$tools_dir/perf/arch/arm64/entry/syscalls/syscall_64.tbl" "$outfile"

Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-11 Thread Arnd Bergmann
On Tue, Feb 11, 2025, at 18:24, Ian Rogers wrote: > On Tue, Feb 11, 2025 at 12:09 AM Arnd Bergmann wrote: >> On Mon, Feb 10, 2025, at 17:51, Ian Rogers wrote: >> > "$tools_dir/perf/arch/arm64/entry/syscalls/syscall_64.tbl" "$outfile" >> > common,64,renameat,rlimit,memfd_secret EM_AARCH64 >> > +cat

Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-11 Thread Ian Rogers
On Tue, Feb 11, 2025 at 12:09 AM Arnd Bergmann wrote: > > On Mon, Feb 10, 2025, at 17:51, Ian Rogers wrote: > > > +# Each line of the syscall table should have the following format: > > +# > > +# NR ABI NAME [NATIVE] [COMPAT] > > +# > > +# NR syscall number > > +# ABI ABI name > > +# NA

Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-11 Thread Arnd Bergmann
On Mon, Feb 10, 2025, at 17:51, Ian Rogers wrote: > +# Each line of the syscall table should have the following format: > +# > +# NR ABI NAME [NATIVE] [COMPAT] > +# > +# NR syscall number > +# ABI ABI name > +# NAME syscall name > +# NATIVE native entry point (optional) > +# COMPA

Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-10 Thread Ian Rogers
On Mon, Feb 10, 2025 at 4:22 PM Charlie Jenkins wrote: > > On Mon, Feb 10, 2025 at 08:51:06AM -0800, Ian Rogers wrote: > > Rather than generating individual syscall header files generate a > > single trace/beauty/generated/syscalltbl.c. In a syscalltbls array > > have references to each architectu

Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-10 Thread Charlie Jenkins
On Mon, Feb 10, 2025 at 08:51:06AM -0800, Ian Rogers wrote: > Rather than generating individual syscall header files generate a > single trace/beauty/generated/syscalltbl.c. In a syscalltbls array > have references to each architectures tables along with the > corresponding e_machine. When the 32-b

[PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables

2025-02-10 Thread Ian Rogers
Rather than generating individual syscall header files generate a single trace/beauty/generated/syscalltbl.c. In a syscalltbls array have references to each architectures tables along with the corresponding e_machine. When the 32-bit or 64-bit table is ambiguous, match the perf binary's type. For A