@@ -104,8 +104,8 @@ void init_syscall_names(void)
104
104
err = pclose (f );
105
105
if (err < 0 )
106
106
warn ("pclose: %s\n" , strerror (errno ));
107
- #if !defined(__x86_64__ ) && !defined(__aarch64__ ) && !defined(__riscv )
108
- /* Ignore the error for x86_64/arm64/riscv where we have a table compiled in */
107
+ #if !defined(__x86_64__ ) && !defined(__aarch64__ ) && !defined(__riscv ) && !defined( __loongarch64 )
108
+ /* Ignore the error for x86_64/arm64/riscv/loongarch64 where we have a table compiled in */
109
109
else if (err && WEXITSTATUS (err ) == 127 ) {
110
110
warn ("ausyscall required for syscalls number/name mapping\n" );
111
111
} else if (err ) {
@@ -487,7 +487,7 @@ static const char *syscall_names_x86_64[] = {
487
487
[438 ] = "pidfd_getfd" ,
488
488
};
489
489
size_t syscall_names_x86_64_size = sizeof (syscall_names_x86_64 )/sizeof (char * );
490
- #elif defined(__aarch64__ ) || defined(__riscv )
490
+ #elif defined(__aarch64__ ) || defined(__riscv ) || defined( __loongarch64 )
491
491
static const char * syscall_names_generic [] = {
492
492
[0 ] = "io_setup" ,
493
493
[1 ] = "io_destroy" ,
@@ -800,6 +800,12 @@ static const char *syscall_names_generic[] = {
800
800
[448 ] = "process_mrelease" ,
801
801
[449 ] = "futex_waitv" ,
802
802
[450 ] = "set_mempolicy_home_node" ,
803
+ [451 ] = "cachestat" ,
804
+ [452 ] = "fchmodat2" ,
805
+ [453 ] = "map_shadow_stack" ,
806
+ [454 ] = "futex_wake" ,
807
+ [455 ] = "futex_wait" ,
808
+ [456 ] = "futex_requeue" ,
803
809
};
804
810
size_t syscall_names_generic_size = sizeof (syscall_names_generic )/sizeof (char * );
805
811
#endif
@@ -813,7 +819,7 @@ void syscall_name(unsigned n, char *buf, size_t size)
813
819
#ifdef __x86_64__
814
820
else if (n < syscall_names_x86_64_size )
815
821
name = syscall_names_x86_64 [n ];
816
- #elif defined(__aarch64__ ) || defined(__riscv )
822
+ #elif defined(__aarch64__ ) || defined(__riscv ) || defined( __loongarch64 )
817
823
else if (n < syscall_names_generic_size )
818
824
name = syscall_names_generic [n ];
819
825
#endif
@@ -834,7 +840,7 @@ int list_syscalls(void)
834
840
size = syscall_names_x86_64_size ;
835
841
list = syscall_names_x86_64 ;
836
842
}
837
- #elif defined(__aarch64__ ) || defined(__riscv )
843
+ #elif defined(__aarch64__ ) || defined(__riscv ) || defined( __loongarch64 )
838
844
if (!size ) {
839
845
size = syscall_names_generic_size ;
840
846
list = syscall_names_generic ;
0 commit comments