Skip to content

Commit

Permalink
linux-user, mips: update syscall-args-o32.c.inc to Linux v5.13
Browse files Browse the repository at this point in the history
Updated running scripts/update-mips-syscall-args.sh

scripts/update-mips-syscall-args.sh has been updated to reflect
file directory changes in strace repository.

Signed-off-by: Laurent Vivier <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
  • Loading branch information
vivier committed Jul 13, 2021
1 parent 3a2f19b commit e2dcdce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion linux-user/mips/syscall-args-o32.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
[ 355] = 3, /* bpf */
[ 356] = 5, /* execveat */
[ 357] = 1, /* userfaultfd */
[ 358] = 2, /* membarrier */
[ 358] = 3, /* membarrier */
[ 359] = 3, /* mlock2 */
[ 360] = 6, /* copy_file_range */
[ 361] = 6, /* preadv2 */
Expand Down Expand Up @@ -438,3 +438,6 @@
[ 437] = 4, /* openat2 */
[ 438] = 3, /* pidfd_getfd */
[ 439] = 4, /* faccessat2 */
[ 440] = 5, /* process_madvise */
[ 441] = 6, /* epoll_pwait2 */
[ 442] = 5, /* mount_setattr */
13 changes: 7 additions & 6 deletions scripts/update-mips-syscall-args.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

URL=https://raw.githubusercontent.com/strace/strace/master
URL=https://raw.githubusercontent.com/strace/strace/master/src
FILES="sysent.h sysent_shorthand_defs.h linux/mips/syscallent-compat.h \
linux/mips/syscallent-o32.h linux/syscallent-common-32.h \
linux/syscallent-common.h"
linux/mips/syscallent-o32.h linux/32/syscallent-common-32.h \
linux/generic/syscallent-common.h"

output="$1"
if [ "$output" = "" ] ; then
Expand All @@ -16,10 +16,11 @@ TMP=$(mktemp -d)
cd $TMP

for file in $FILES; do
curl -O $URL/$file
curl --create-dirs $URL/$file -o $TMP/$file
done

> subcall32.h
> linux/generic/subcallent.h
> linux/32/subcallent.h

cat > gen_mips_o32.c <<EOF
#include <stdio.h>
Expand Down Expand Up @@ -52,6 +53,6 @@ int main(void)
}
EOF

cc -o gen_mips_o32 gen_mips_o32.c && ./gen_mips_o32 > "$output/$INC"
cc -o gen_mips_o32 -I linux/mips -I linux/generic gen_mips_o32.c && ./gen_mips_o32 > "$output/$INC"

rm -fr "$TMP"

0 comments on commit e2dcdce

Please sign in to comment.