2 # SPDX-License-Identifier: GPL-2.0
6 my_abis
=`echo "($3)" | tr ',' '|'`
15 while [ $t_nxt -lt $t_nr ]; do
16 printf "__SYSCALL(%s,sys_ni_syscall)\n" "${t_nxt}"
19 printf "__SYSCALL(%s,%s)\n" "${t_nxt}" "${t_entry}"
22 grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" |
sort -n |
(
24 if [ -z "$offset" ]; then
28 while read nr abi name entry compat
; do
29 if [ "$my_abi" = "64_o32" ] && [ ! -z "$compat" ]; then
30 emit $
((nxt
+offset
)) $
((nr
+offset
)) $compat
32 emit $
((nxt
+offset
)) $
((nr
+offset
)) $entry