Skip to content

Commit 946e697

Browse files
nhatsmrtakpm00
authored andcommitted
cachestat: wire up cachestat for other architectures
cachestat is previously only wired in for x86 (and architectures using the generic unistd.h table): https://lore.kernel.org/lkml/20230503013608.2431726-1-nphamcs@gmail.com/ This patch wires cachestat in for all the other architectures. [nphamcs@gmail.com: wire up cachestat for arm64] Link: https://lkml.kernel.org/r/20230511092843.3896327-1-nphamcs@gmail.com Link: https://lkml.kernel.org/r/20230510195806.2902878-1-nphamcs@gmail.com Signed-off-by: Nhat Pham <nphamcs@gmail.com> Tested-by: Michael Ellerman <mpe@ellerman.id.au> [powerpc] Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [m68k] Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Heiko Carstens <hca@linux.ibm.com> [s390] Cc: Alexander Gordeev <agordeev@linux.ibm.com> Cc: Christian Borntraeger <borntraeger@linux.ibm.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Chris Zankel <chris@zankel.net> Cc: David S. Miller <davem@davemloft.net> Cc: Helge Deller <deller@gmx.de> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: Matt Turner <mattst88@gmail.com> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Richard Henderson <richard.henderson@linaro.org> Cc: Rich Felker <dalias@libc.org> Cc: Russell King <linux@armlinux.org.uk> Cc: Sven Schnelle <svens@linux.ibm.com> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Vasily Gorbik <gor@linux.ibm.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent cf264e1 commit 946e697

File tree

16 files changed

+17
-1
lines changed

16 files changed

+17
-1
lines changed

arch/alpha/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,3 +490,4 @@
490490
558 common process_mrelease sys_process_mrelease
491491
559 common futex_waitv sys_futex_waitv
492492
560 common set_mempolicy_home_node sys_ni_syscall
493+
561 common cachestat sys_cachestat

arch/arm/tools/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,3 +464,4 @@
464464
448 common process_mrelease sys_process_mrelease
465465
449 common futex_waitv sys_futex_waitv
466466
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
467+
451 common cachestat sys_cachestat

arch/arm64/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
4040
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
4141

42-
#define __NR_compat_syscalls 451
42+
#define __NR_compat_syscalls 452
4343
#endif
4444

4545
#define __ARCH_WANT_SYS_CLONE

arch/arm64/include/asm/unistd32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,8 @@ __SYSCALL(__NR_process_mrelease, sys_process_mrelease)
907907
__SYSCALL(__NR_futex_waitv, sys_futex_waitv)
908908
#define __NR_set_mempolicy_home_node 450
909909
__SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
910+
#define __NR_cachestat 451
911+
__SYSCALL(__NR_cachestat, sys_cachestat)
910912

911913
/*
912914
* Please add new compat syscalls above this comment and update

arch/ia64/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,4 @@
371371
448 common process_mrelease sys_process_mrelease
372372
449 common futex_waitv sys_futex_waitv
373373
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
374+
451 common cachestat sys_cachestat

arch/m68k/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,3 +450,4 @@
450450
448 common process_mrelease sys_process_mrelease
451451
449 common futex_waitv sys_futex_waitv
452452
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
453+
451 common cachestat sys_cachestat

arch/microblaze/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,4 @@
456456
448 common process_mrelease sys_process_mrelease
457457
449 common futex_waitv sys_futex_waitv
458458
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
459+
451 common cachestat sys_cachestat

arch/mips/kernel/syscalls/syscall_n32.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,4 @@
389389
448 n32 process_mrelease sys_process_mrelease
390390
449 n32 futex_waitv sys_futex_waitv
391391
450 n32 set_mempolicy_home_node sys_set_mempolicy_home_node
392+
451 n32 cachestat sys_cachestat

arch/mips/kernel/syscalls/syscall_n64.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,3 +365,4 @@
365365
448 n64 process_mrelease sys_process_mrelease
366366
449 n64 futex_waitv sys_futex_waitv
367367
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
368+
451 n64 cachestat sys_cachestat

arch/mips/kernel/syscalls/syscall_o32.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,3 +438,4 @@
438438
448 o32 process_mrelease sys_process_mrelease
439439
449 o32 futex_waitv sys_futex_waitv
440440
450 o32 set_mempolicy_home_node sys_set_mempolicy_home_node
441+
451 o32 cachestat sys_cachestat

arch/parisc/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,3 +448,4 @@
448448
448 common process_mrelease sys_process_mrelease
449449
449 common futex_waitv sys_futex_waitv
450450
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
451+
451 common cachestat sys_cachestat

arch/powerpc/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,3 +537,4 @@
537537
448 common process_mrelease sys_process_mrelease
538538
449 common futex_waitv sys_futex_waitv
539539
450 nospu set_mempolicy_home_node sys_set_mempolicy_home_node
540+
451 common cachestat sys_cachestat

arch/s390/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,3 +453,4 @@
453453
448 common process_mrelease sys_process_mrelease sys_process_mrelease
454454
449 common futex_waitv sys_futex_waitv sys_futex_waitv
455455
450 common set_mempolicy_home_node sys_set_mempolicy_home_node sys_set_mempolicy_home_node
456+
451 common cachestat sys_cachestat sys_cachestat

arch/sh/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,3 +453,4 @@
453453
448 common process_mrelease sys_process_mrelease
454454
449 common futex_waitv sys_futex_waitv
455455
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
456+
451 common cachestat sys_cachestat

arch/sparc/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,3 +496,4 @@
496496
448 common process_mrelease sys_process_mrelease
497497
449 common futex_waitv sys_futex_waitv
498498
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
499+
451 common cachestat sys_cachestat

arch/xtensa/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,3 +421,4 @@
421421
448 common process_mrelease sys_process_mrelease
422422
449 common futex_waitv sys_futex_waitv
423423
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
424+
451 common cachestat sys_cachestat

0 commit comments

Comments
 (0)