]>
git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blob - tools/perf/arch/x86/entry/syscalls/syscalltbl.sh
2 # SPDX-License-Identifier: GPL-2.0
11 echo " [$nr] = \"$name\","
18 syscall_macro
"$nr" "$entry"
21 echo "static const char *syscalltbl_${arch}[] = {"
23 sorted_table
=$
(mktemp
/tmp
/syscalltbl.XXXXXX
)
24 grep '^[0-9]' "$in" |
sort -n > $sorted_table
27 while read nr abi name entry compat
; do
28 if [ $nr -ge 512 ] ; then # discard compat sycalls
40 echo "#define SYSCALLTBL_${arch}_MAX_ID ${max_nr}"