From: Andrea Cervesato <andrea.cervesato@suse.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v4 0/4] Automatically generate syscalls.h
Date: Wed, 09 Oct 2024 11:45:15 +0200 [thread overview]
Message-ID: <20241009-generate_syscalls-v4-0-5328a785bbad@suse.com> (raw)
The problem we have at the moment is that all syscalls input files must
be changed by hand each time we need to test a new syscall. The idea is
to simplify this process, providing a script that is able to read from
kernel sources and to generate all syscalls files we need.
This patch set adds a new command inside the syscalls folder and
it refactors the previous regen.sh code.
The new way we have to generate the syscalls.h file is the following:
include/lapi/syscalls/generate_arch.sh path/to/kernel/source
include/lapi/syscalls/generate_syscalls.sh path/to/syscalls.h
Scripts are independent and they can be run separately.
generate_syscalls.sh is the equivalent of regen.sh, but its code has
been cleaned up.
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v4:
- remove blacklist file
- update syscalls files
- Link to v3: https://lore.kernel.org/r/20240930-generate_syscalls-v3-0-e56ede4bc7f5@suse.com
Changes in v3:
- fix generate_arch.sh to work properly for all architectures
- rename some arch .in files and handle renaming inside
generate_syscalls.sh using the right gcc directives
- Link to v2: https://lore.kernel.org/r/20240927-generate_syscalls-v2-0-108f5f2ad318@suse.com
Changes in v2:
- refactor regen.sh
- split syscalls.h and syscalls .in files creation
- updated syscalls .in files
- Link to v1: https://lore.kernel.org/r/20240924-generate_syscalls-v1-0-941507a9cdac@suse.com
---
Andrea Cervesato (4):
Refactor regen.sh script to generate syscalls
Add script to generate arch(s) dependant syscalls
Delete obsolete strip_syscall.awk file
Update syscalls files
configure.ac | 2 +-
include/lapi/syscalls/arc.in | 41 +-
include/lapi/syscalls/arm.in | 819 +++++++++++----------
include/lapi/syscalls/{loongarch.in => arm64.in} | 12 +-
include/lapi/syscalls/generate_arch.sh | 205 ++++++
include/lapi/syscalls/generate_syscalls.sh | 118 +++
include/lapi/syscalls/hppa.in | 52 --
include/lapi/syscalls/i386.in | 18 +-
include/lapi/syscalls/ia64.in | 10 +-
.../lapi/syscalls/{aarch64.in => loongarch64.in} | 20 +-
include/lapi/syscalls/{mips_n64.in => mips64.in} | 13 +-
.../lapi/syscalls/{mips_n32.in => mips64n32.in} | 13 +-
include/lapi/syscalls/{mips_o32.in => mipso32.in} | 19 +-
include/lapi/syscalls/parisc.in | 397 ++++++++++
include/lapi/syscalls/powerpc.in | 19 +-
include/lapi/syscalls/powerpc64.in | 47 +-
include/lapi/syscalls/regen.sh | 129 ----
include/lapi/syscalls/s390.in | 15 +-
include/lapi/syscalls/s390x.in | 15 +-
include/lapi/syscalls/sh.in | 15 +-
include/lapi/syscalls/sparc.in | 14 +-
include/lapi/syscalls/sparc64.in | 16 +-
include/lapi/syscalls/strip_syscall.awk | 19 -
.../lapi/syscalls/{order => supported-arch.txt} | 12 +-
include/lapi/syscalls/x86_64.in | 51 +-
25 files changed, 1356 insertions(+), 735 deletions(-)
---
base-commit: 701212f08d6e850457cc2b10238f28662ef48471
change-id: 20240923-generate_syscalls-780dc2227bdb
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2024-10-09 9:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 9:45 Andrea Cervesato [this message]
2024-10-09 9:45 ` [LTP] [PATCH v4 1/4] Refactor regen.sh script to generate syscalls Andrea Cervesato
2024-10-14 12:45 ` Li Wang
2024-10-25 10:03 ` Petr Vorel
2024-10-09 9:45 ` [LTP] [PATCH v4 2/4] Add script to generate arch(s) dependant syscalls Andrea Cervesato
2024-10-15 8:12 ` Li Wang
2024-10-25 10:20 ` Petr Vorel
2024-10-30 8:40 ` Andrea Cervesato via ltp
2024-10-09 9:45 ` [LTP] [PATCH v4 3/4] Delete obsolete strip_syscall.awk file Andrea Cervesato
2024-10-15 8:10 ` Li Wang
2024-10-25 10:23 ` Petr Vorel
2024-10-09 9:45 ` [LTP] [PATCH v4 4/4] Update syscalls files Andrea Cervesato
2024-10-15 6:49 ` Li Wang
2024-10-15 7:04 ` Li Wang
2024-10-15 17:17 ` Petr Vorel
2024-10-23 12:34 ` Andrea Cervesato via ltp
2024-10-23 12:57 ` Petr Vorel
2024-10-23 14:30 ` Andrea Cervesato via ltp
2024-10-25 9:37 ` Petr Vorel
2024-10-23 12:11 ` Andrea Cervesato via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241009-generate_syscalls-v4-0-5328a785bbad@suse.com \
--to=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox