All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: Alistair Francis <alistair.francis@wdc.com>,
	qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: alistair23@gmail.com, palmer@dabbelt.com
Subject: Re: [PATCH v2 0/2] linux-user: generate syscall_nr.sh for RISC-V
Date: Tue, 25 Feb 2020 14:39:07 +0100	[thread overview]
Message-ID: <306320d5-b305-1890-3185-05353363cce5@vivier.eu> (raw)
In-Reply-To: <cover.1582586444.git.alistair.francis@wdc.com>

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

Le 25/02/2020 à 00:21, Alistair Francis a écrit :
> This series updates the RISC-V syscall_nr.sh based on the 5.5 kernel.
> 
> There are two parts to this. One is just adding the new syscalls, the
> other part is updating the RV32 syscalls to match the fact that RV32 is
> a 64-bit time_t architectures (y2038) safe.
> 
> we need to make some changes to syscall.c to avoid warnings/errors
> during compliling with the new syscall.
> 
> I did some RV32 user space testing after applying these patches. I ran the
> glibc testsuite in userspace and I don't see any regressions.
> 
> Alistair Francis (2):
>   linux-user: Protect more syscalls
>   linux-user/riscv: Update the syscall_nr's to the 5.5 kernel
> 
>  linux-user/riscv/syscall32_nr.h | 314 ++++++++++++++++++++++++++++++++
>  linux-user/riscv/syscall64_nr.h | 303 ++++++++++++++++++++++++++++++
>  linux-user/riscv/syscall_nr.h   | 294 +-----------------------------
>  linux-user/strace.c             |   2 +
>  linux-user/syscall.c            |  20 ++
>  5 files changed, 641 insertions(+), 292 deletions(-)
>  create mode 100644 linux-user/riscv/syscall32_nr.h
>  create mode 100644 linux-user/riscv/syscall64_nr.h
> 

I have written a shell script to generate the syscall_nr.h from the
asm-generic, but as it uses a lot of cpp, tr, sed and grep, the result
needs to be checked.

If it can help, it is in attachment.

Put it in scripts, and run it as:

scripts/gensyscalls.sh /path/to/linux

then check the result with something like "git diff -w"

Thanks,
Laurent

[-- Attachment #2: gensyscalls.sh --]
[-- Type: application/x-shellscript, Size: 1912 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Laurent Vivier <laurent@vivier.eu>
To: Alistair Francis <alistair.francis@wdc.com>,
	qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: palmer@dabbelt.com, alistair23@gmail.com
Subject: Re: [PATCH v2 0/2] linux-user: generate syscall_nr.sh for RISC-V
Date: Tue, 25 Feb 2020 14:39:07 +0100	[thread overview]
Message-ID: <306320d5-b305-1890-3185-05353363cce5@vivier.eu> (raw)
In-Reply-To: <cover.1582586444.git.alistair.francis@wdc.com>

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

Le 25/02/2020 à 00:21, Alistair Francis a écrit :
> This series updates the RISC-V syscall_nr.sh based on the 5.5 kernel.
> 
> There are two parts to this. One is just adding the new syscalls, the
> other part is updating the RV32 syscalls to match the fact that RV32 is
> a 64-bit time_t architectures (y2038) safe.
> 
> we need to make some changes to syscall.c to avoid warnings/errors
> during compliling with the new syscall.
> 
> I did some RV32 user space testing after applying these patches. I ran the
> glibc testsuite in userspace and I don't see any regressions.
> 
> Alistair Francis (2):
>   linux-user: Protect more syscalls
>   linux-user/riscv: Update the syscall_nr's to the 5.5 kernel
> 
>  linux-user/riscv/syscall32_nr.h | 314 ++++++++++++++++++++++++++++++++
>  linux-user/riscv/syscall64_nr.h | 303 ++++++++++++++++++++++++++++++
>  linux-user/riscv/syscall_nr.h   | 294 +-----------------------------
>  linux-user/strace.c             |   2 +
>  linux-user/syscall.c            |  20 ++
>  5 files changed, 641 insertions(+), 292 deletions(-)
>  create mode 100644 linux-user/riscv/syscall32_nr.h
>  create mode 100644 linux-user/riscv/syscall64_nr.h
> 

I have written a shell script to generate the syscall_nr.h from the
asm-generic, but as it uses a lot of cpp, tr, sed and grep, the result
needs to be checked.

If it can help, it is in attachment.

Put it in scripts, and run it as:

scripts/gensyscalls.sh /path/to/linux

then check the result with something like "git diff -w"

Thanks,
Laurent

[-- Attachment #2: gensyscalls.sh --]
[-- Type: application/x-shellscript, Size: 1912 bytes --]

  parent reply	other threads:[~2020-02-25 14:09 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24 23:21 [PATCH v2 0/2] linux-user: generate syscall_nr.sh for RISC-V Alistair Francis
2020-02-24 23:21 ` Alistair Francis
2020-02-24 23:21 ` [PATCH v2 1/2] linux-user: Protect more syscalls Alistair Francis
2020-02-24 23:21   ` Alistair Francis
2020-02-25 11:59   ` Laurent Vivier
2020-02-25 11:59     ` Laurent Vivier
2020-02-26  0:43     ` Alistair Francis
2020-02-26  0:43       ` Alistair Francis
2020-02-24 23:21 ` [PATCH v2 2/2] linux-user/riscv: Update the syscall_nr's to the 5.5 kernel Alistair Francis
2020-02-24 23:21   ` Alistair Francis
2020-02-25 11:50   ` Laurent Vivier
2020-02-25 11:50     ` Laurent Vivier
2020-02-26 19:32     ` Alistair Francis
2020-02-26 19:32       ` Alistair Francis
2020-02-27  0:02       ` Laurent Vivier
2020-02-27  0:02         ` Laurent Vivier
2020-02-27  0:10         ` Alistair Francis
2020-02-27  0:10           ` Alistair Francis
2020-02-27  0:41           ` Laurent Vivier
2020-02-27  0:41             ` Laurent Vivier
2020-02-25 13:39 ` Laurent Vivier [this message]
2020-02-25 13:39   ` [PATCH v2 0/2] linux-user: generate syscall_nr.sh for RISC-V Laurent Vivier
2020-02-26 19:26   ` Alistair Francis
2020-02-26 19:26     ` Alistair Francis

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=306320d5-b305-1890-3185-05353363cce5@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=alistair.francis@wdc.com \
    --cc=alistair23@gmail.com \
    --cc=palmer@dabbelt.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.