From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f182.google.com (mail-il1-f182.google.com [209.85.166.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 307DA1C5D7C for ; Tue, 11 Feb 2025 05:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739250540; cv=none; b=WHZlby4qpr5/cJI0CVQgtYwwu3MfsWqBYHa12XToJQ1+BDwZgNesJ3SwQW8/vXih4FGpCSCAzfsaqX4AbinQvTNZ+DSERrWWwYaU84XecmQAWv6IA5LF3bdxMhsuE/JmSkQCXB6BL69XlJSG+sgJhwORxWzH0BeoaT1vZ3kun1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739250540; c=relaxed/simple; bh=E/cHEEXbhIFAqBP265ABzCQu2+wXDOCdEMdOiWMl+uw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PJbnHCDmg7CNeKUjBna8Tm4fiSWc3yziq4Js/8GOjz8IlSR+UkqKDmfqnAqywdnElbTFpl/Xy3C8XMylA3zpDds3zgbFBsfibh6MH2BF7xGwxOS7sQJ6wjQBtcsyLv7/Od91n0vqTyfVgO79XByBz7kD6iWm+OyDISpT3xtb24A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=h9FaCYMv; arc=none smtp.client-ip=209.85.166.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="h9FaCYMv" Received: by mail-il1-f182.google.com with SMTP id e9e14a558f8ab-3d146357fb2so82505ab.1 for ; Mon, 10 Feb 2025 21:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1739250537; x=1739855337; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5bHIxyguxTjZ0OBmEcJlBmy4lfINCqcKpdhZw7EcmMU=; b=h9FaCYMvHNqJ/Xrs7/rxJ9Um7R3lh/+q2jIAuDiH7we18q8+z8zE/viz++OQwY3hiN x7XGYTxTVN+lPbh5Xb13bJ6Yn/Rfo43K0/cyu7wwVkosCmVmwBCYLDx8AiVOZc//SK0n NeKXks4l6j/m8tfOrrkr5CwlqQd3V14a44BccpMU5KyvHnB48gA7ED0hdgM+/5+Tb8RI 7/849hHGFY9jF5nYST0mlFtMlGzf8yS6RfvEhqaxdSghlDCNSvryJMR5U0bl/esQjks2 8aZF6qEC4AapDTqI2362YICPLbOy7ziNLFHS4ovdbcncxmpkpBa0JVHzQfwd6UJXMm2j Q+TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739250537; x=1739855337; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5bHIxyguxTjZ0OBmEcJlBmy4lfINCqcKpdhZw7EcmMU=; b=Ly46dGhzVUPuC6zNjj/jnZzpkoz6JKfyzHoG1feQgnLS84SVTnkrICp5H/tr4UfIEb xCFs29EiiCDMpwiRa5ZPj1zWCy3EIBjyR8QA7QKqHCLZ2lrfMbF1qilu4YVwsjQD5IRh RxIaf8pfGJanDuQT4LVRnYv34wViE7PugFny2cMhdOyEAmEDLFFP6VYkWQm0RH8PbxIL MS9vijaLbhYYcSllI2adl6vvijTWzEbFndSSOExTF66LHjyjsf0y19aTOEW7tNJwIp9C BzGnwZ4NB2lQO7gVm08FqnqWTCuuf6l6+krhVya6sq5++5IqaNGkOEqMpsezp/et/SMy +9Vg== X-Forwarded-Encrypted: i=1; AJvYcCXCLm+rHEDSvMCVeYNqg9v1bn0KKyY7mZSXdn0oteogQ9cgvlXs0z/61cuCTPPd+H0am8dl+RfyAqY8yfz2qkpN@vger.kernel.org X-Gm-Message-State: AOJu0YzuMFv84sjiBEnnkE5Oqi7eueJMD8aA2X8+lpwSLpM3Zqt0iqf/ /qWbZf4uqCH8R5me+ZV97YVDOY3onqNKxyWh827Zk6qhYn/8eB0jotvOoKmurbSSG1gDDE1Pyi3 myth+WJB/0WlVauSZwGktSFde9TeSqafI24sL X-Gm-Gg: ASbGnctE3ZGO8QWd2+NjuruKvleXTXyxTWHue9E4wFJ8dZbHaCpKzdWfCeIH7PPVGho RkOrrdBuiUsFZsko7VcpByPZA1TciV30He/dARdWUK9PvQGRRVuxKGoqu8z5iQfqOF+NSMFY51w == X-Google-Smtp-Source: AGHT+IFyaxcME8jKJS8TwGr550Sm6lyyiZH/pTFtRGczGBZijBDRqdrgMQrnR44cn+MWQ1wfBsdSIs3486rzPTce5tE= X-Received: by 2002:a05:6e02:1a8a:b0:3d0:5855:85a3 with SMTP id e9e14a558f8ab-3d16fde405bmr2244515ab.8.1739250536964; Mon, 10 Feb 2025 21:08:56 -0800 (PST) Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20250210165108.95894-1-irogers@google.com> <20250210165108.95894-6-irogers@google.com> In-Reply-To: From: Ian Rogers Date: Mon, 10 Feb 2025 21:08:45 -0800 X-Gm-Features: AWEUYZmlPd4riJsmMkW7pemOAyZz5w-Rgxikg50ui8cUlusfvpZDiXXdUzP9x5g Message-ID: Subject: Re: [PATCH v2 5/7] perf trace beauty: Add syscalltbl.sh generating all system call tables To: Charlie Jenkins Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Bibo Mao , Arnd Bergmann , Huacai Chen , Catalin Marinas , Jiri Slaby , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Howard Chu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 10, 2025 at 4:22=E2=80=AFPM 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 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 ARM32 don't use the arm64 32-bit > > table which is smaller. EM_NONE is present for is no machine matches. > > > > Conditionally compile the tables, only having the appropriate 32 and > > 64-bit table. If ALL_SYSCALLTBL is defined all tables can be > > compiled. > > Is there somewhere that the ALL_SYSCALLTBL could be documented? I talk > about this more in patch 7, but if this also could help perf report > display the correct syscall names, then ALL_SYSCALLTBL maybe should be > the default? So I think ALL_SYSCALLTBL should just go to being the default once we have a use for it. Currently `perf trace record` doesn't capture the e_machine of the executing processes, so recording on say a RISC-V machine and then analyzing on an x86-64 isn't possible. I was worried that just making ALL_SYSCALLTBL the default would lead to complaints about increases in binary size or something. This patch series does what's sensible for things that work right now. ALL_SYSCALLTBL is useful for making sure the tables other than for your build machine at least compile. If others feel strongly it should be the default I don't have a problem changing the code. Thanks, Ian > > > > Signed-off-by: Ian Rogers > > Reviewed-by: Howard Chu > > --- > > tools/perf/Makefile.perf | 9 + > > tools/perf/trace/beauty/syscalltbl.sh | 274 ++++++++++++++++++++++++++ > > 2 files changed, 283 insertions(+) > > create mode 100755 tools/perf/trace/beauty/syscalltbl.sh > > > > diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf > > index 55d6ce9ea52f..793e702f9aaf 100644 > > --- a/tools/perf/Makefile.perf > > +++ b/tools/perf/Makefile.perf > > @@ -559,6 +559,14 @@ beauty_ioctl_outdir :=3D $(beauty_outdir)/ioctl > > # Create output directory if not already present > > $(shell [ -d '$(beauty_ioctl_outdir)' ] || mkdir -p '$(beauty_ioctl_ou= tdir)') > > > > +syscall_array :=3D $(beauty_outdir)/syscalltbl.c > > +syscall_tbl :=3D $(srctree)/tools/perf/trace/beauty/syscalltbl.sh > > +syscall_tbl_data :=3D $(srctree)/tools/scripts/syscall.tbl \ > > + $(wildcard $(srctree)/tools/perf/arch/*/entry/syscalls/syscall*.t= bl) > > + > > +$(syscall_array): $(syscall_tbl) $(syscall_tbl_data) > > + $(Q)$(SHELL) '$(syscall_tbl)' $(srctree)/tools $@ > > + > > fs_at_flags_array :=3D $(beauty_outdir)/fs_at_flags_array.c > > fs_at_flags_tbl :=3D $(srctree)/tools/perf/trace/beauty/fs_at_flags.sh > > > > @@ -878,6 +886,7 @@ build-dir =3D $(or $(__build-dir),.) > > > > prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h archheaders= \ > > arm64-sysreg-defs \ > > + $(syscall_array) \ > > $(fs_at_flags_array) \ > > $(clone_flags_array) \ > > $(drm_ioctl_array) \ > > diff --git a/tools/perf/trace/beauty/syscalltbl.sh b/tools/perf/trace/b= eauty/syscalltbl.sh > > new file mode 100755 > > index 000000000000..635924dc5f59 > > --- /dev/null > > +++ b/tools/perf/trace/beauty/syscalltbl.sh > > @@ -0,0 +1,274 @@ > > +#!/bin/sh > > +# SPDX-License-Identifier: GPL-2.0 > > +# > > +# Generate all syscall tables. > > +# > > +# 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) > > +# COMPAT compat entry point (optional) > > + > > +set -e > > + > > +usage() { > > + cat >&2 < > +usage: $0 > > + > > + path to kernel tools directory > > + output header file > > +EOF > > + exit 1 > > +} > > + > > +if [ $# -ne 2 ]; then > > + usage > > +fi > > +tools_dir=3D$1 > > +outfile=3D$2 > > + > > +build_tables() { > > + infile=3D"$1" > > + outfile=3D"$2" > > + abis=3D$(echo "($3)" | tr ',' '|') > > + e_machine=3D"$4" > > + > > + if [ ! -f "$infile" ] > > + then > > + echo "Missing file $infile" > > + exit 1 > > + fi > > + sorted_table=3D$(mktemp /tmp/syscalltbl.XXXXXX) > > + grep -E "^[0-9]+[[:space:]]+$abis" "$infile" | sort -n > "$sorted= _table" > > + > > + echo "static const char *const syscall_num_to_name_${e_machine}[]= =3D {" >> "$outfile" > > + # the params are: nr abi name entry compat > > + # use _ for intentionally unused variables according to SC2034 > > + while read -r nr _ name _ _; do > > + echo " [$nr] =3D \"$name\"," >> "$outfile" > > + done < "$sorted_table" > > + echo "};" >> "$outfile" > > + > > + echo "static const uint16_t syscall_sorted_names_${e_machine}[] = =3D {" >> "$outfile" > > + > > + # When sorting by name, add a suffix of 0s upto 20 characters so = that > > + # system calls that differ with a numerical suffix don't sort bef= ore > > + # those without. This default behavior of sort differs from that = of > > + # strcmp used at runtime. Use sed to strip the trailing 0s suffix > > + # afterwards. > > + grep -E "^[0-9]+[[:space:]]+$abis" "$infile" | awk '{printf $3; f= or (i =3D length($3); i < 20; i++) { printf "0"; }; print " " $1}'| sort | = sed 's/\([a-zA-Z1-9]\+\)0\+ \([0-9]\+\)/\1 \2/' > "$sorted_table" > > + while read -r name nr; do > > + echo " $nr, /* $name */" >> "$outfile" > > + done < "$sorted_table" > > + echo "};" >> "$outfile" > > + > > + rm -f "$sorted_table" > > +} > > + > > +rm -f "$outfile" > > +cat >> "$outfile" < > +#include > > +#include > > +#include > > +#include > > + > > +struct syscalltbl { > > + const char *const *num_to_name; > > + const uint16_t *sorted_names; > > + uint16_t e_machine; > > + uint16_t num_to_name_len; > > + uint16_t sorted_names_len; > > +}; > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__alpha__) > > +EOF > > +build_tables "$tools_dir/perf/arch/alpha/entry/syscalls/syscall.tbl" "= $outfile" common,64 EM_ALPHA > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__alpha__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__arm__) || defined(__aarch64__= ) > > +EOF > > +build_tables "$tools_dir/perf/arch/arm/entry/syscalls/syscall.tbl" "$o= utfile" common,32,oabi EM_ARM > > +build_tables "$tools_dir/perf/arch/arm64/entry/syscalls/syscall_64.tbl= " "$outfile" common,64,renameat,rlimit,memfd_secret EM_AARCH64 > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__arm__) || defined(__aar= ch64__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__csky__) > > +EOF > > +build_tables "$tools_dir/scripts/syscall.tbl" "$outfile" common,32,csk= y,time32,stat64,rlimit EM_CSKY > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__csky__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__mips__) > > +EOF > > +build_tables "$tools_dir/perf/arch/mips/entry/syscalls/syscall_n64.tbl= " "$outfile" common,64,n64 EM_MIPS > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__mips__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__hppa__) > > +#if __BITS_PER_LONG !=3D 64 > > +EOF > > +build_tables "$tools_dir/perf/arch/parisc/entry/syscalls/syscall.tbl" = "$outfile" common,32 EM_PARISC > > +echo "#else" >> "$outfile" > > +build_tables "$tools_dir/perf/arch/parisc/entry/syscalls/syscall.tbl" = "$outfile" common,64 EM_PARISC > > +cat >> "$outfile" < > +#endif //__BITS_PER_LONG !=3D 64 > > +#endif // defined(ALL_SYSCALLTBL) || defined(__hppa__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__powerpc__) || defined(__power= pc64__) > > +EOF > > +build_tables "$tools_dir/perf/arch/powerpc/entry/syscalls/syscall.tbl"= "$outfile" common,32,nospu EM_PPC > > +build_tables "$tools_dir/perf/arch/powerpc/entry/syscalls/syscall.tbl"= "$outfile" common,64,nospu EM_PPC64 > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__powerpc__) || defined(_= _powerpc64__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__riscv) > > +#if __BITS_PER_LONG !=3D 64 > > +EOF > > +build_tables "$tools_dir/scripts/syscall.tbl" "$outfile" common,32,ris= cv,memfd_secret EM_RISCV > > +echo "#else" >> "$outfile" > > +build_tables "$tools_dir/scripts/syscall.tbl" "$outfile" common,64,ris= cv,rlimit,memfd_secret EM_RISCV > > +cat >> "$outfile" < > +#endif //__BITS_PER_LONG !=3D 64 > > +#endif // defined(ALL_SYSCALLTBL) || defined(__riscv) > > +#if defined(ALL_SYSCALLTBL) || defined(__s390x__) > > +EOF > > +build_tables "$tools_dir/perf/arch/s390/entry/syscalls/syscall.tbl" "$= outfile" common,64,renameat,rlimit,memfd_secret EM_S390 > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__s390x__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__sh__) > > +EOF > > +build_tables "$tools_dir/perf/arch/sh/entry/syscalls/syscall.tbl" "$ou= tfile" common,32 EM_SH > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__sh__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__sparc64__) || defined(__sparc= __) > > +#if __BITS_PER_LONG !=3D 64 > > +EOF > > +build_tables "$tools_dir/perf/arch/sparc/entry/syscalls/syscall.tbl" "= $outfile" common,32 EM_SPARC > > +echo "#else" >> "$outfile" > > +build_tables "$tools_dir/perf/arch/sparc/entry/syscalls/syscall.tbl" "= $outfile" common,64 EM_SPARC > > +cat >> "$outfile" < > +#endif //__BITS_PER_LONG !=3D 64 > > +#endif // defined(ALL_SYSCALLTBL) || defined(__sparc64__) || defined(_= _sparc__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__i386__) || defined(__x86_64__= ) > > +EOF > > +build_tables "$tools_dir/perf/arch/x86/entry/syscalls/syscall_32.tbl" = "$outfile" common,32,i386 EM_386 > > +build_tables "$tools_dir/perf/arch/x86/entry/syscalls/syscall_64.tbl" = "$outfile" common,64 EM_X86_64 > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__i386__) || defined(__x8= 6_64__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__xtensa__) > > +EOF > > +build_tables "$tools_dir/perf/arch/xtensa/entry/syscalls/syscall.tbl" = "$outfile" common,32 EM_XTENSA > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__xtensa__) > > + > > +#if __BITS_PER_LONG !=3D 64 > > +EOF > > +build_tables "$tools_dir/scripts/syscall.tbl" "$outfile" common,32 EM_= NONE > > +echo "#else" >> "$outfile" > > +build_tables "$tools_dir/scripts/syscall.tbl" "$outfile" common,64 EM_= NONE > > +echo "#endif //__BITS_PER_LONG !=3D 64" >> "$outfile" > > + > > +build_outer_table() { > > + e_machine=3D$1 > > + outfile=3D"$2" > > + cat >> "$outfile" < > + { > > + .num_to_name =3D syscall_num_to_name_$e_machine, > > + .sorted_names =3D syscall_sorted_names_$e_machine, > > + .e_machine =3D $e_machine, > > + .num_to_name_len =3D ARRAY_SIZE(syscall_num_to_name_$e_mach= ine), > > + .sorted_names_len =3D ARRAY_SIZE(syscall_sorted_names_$e_ma= chine), > > + }, > > +EOF > > +} > > + > > +cat >> "$outfile" < > +static const struct syscalltbl syscalltbls[] =3D { > > +#if defined(ALL_SYSCALLTBL) || defined(__alpha__) > > +EOF > > +build_outer_table EM_ALPHA "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__alpha__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__arm__) || defined(__aarch64__= ) > > +EOF > > +build_outer_table EM_ARM "$outfile" > > +build_outer_table EM_AARCH64 "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__arm__) || defined(__aar= ch64__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__csky__) > > +EOF > > +build_outer_table EM_CSKY "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__csky__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__mips__) > > +EOF > > +build_outer_table EM_MIPS "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__mips__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__hppa__) > > +EOF > > +build_outer_table EM_PARISC "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__hppa__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__powerpc__) || defined(__power= pc64__) > > +EOF > > +build_outer_table EM_PPC "$outfile" > > +build_outer_table EM_PPC64 "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__powerpc__) || defined(_= _powerpc64__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__riscv) > > +EOF > > +build_outer_table EM_RISCV "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__riscv) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__s390x__) > > +EOF > > +build_outer_table EM_S390 "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__s390x__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__sh__) > > +EOF > > +build_outer_table EM_SH "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__sh__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__sparc64__) || defined(__sparc= __) > > +EOF > > +build_outer_table EM_SPARC "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__sparc64__) || defined(_= _sparc__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__i386__) || defined(__x86_64__= ) > > +EOF > > +build_outer_table EM_386 "$outfile" > > +build_outer_table EM_X86_64 "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__i386__) || defined(__x8= 6_64__) > > + > > +#if defined(ALL_SYSCALLTBL) || defined(__xtensa__) > > +EOF > > +build_outer_table EM_XTENSA "$outfile" > > +cat >> "$outfile" < > +#endif // defined(ALL_SYSCALLTBL) || defined(__xtensa__) > > +EOF > > +build_outer_table EM_NONE "$outfile" > > +cat >> "$outfile" < > +}; > > +EOF > > -- > > 2.48.1.502.g6dc24dfdaf-goog > >