Skip to contentSkip to conversation

arm64: dose arm64 support the sysfs system call?

DISCUSSION wangyufen 3 participants 5 messages Nov 21, 2014 – Dec 5, 2014 1 message not in the archive

lore
Share & tools
lore

wangyufen

author
#0 lore raw

Hi,

I did ltp test on arm64, the sysfs testcases failed:

sysfs01 0 TWARN : This test can only run on kernels that support the sysfs system call

because the __NR_sysfs didn't define in aarch64

Dose anyone know what number the sysfs system call is in aarch64?

Thanks,
Wang

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw
Quoted 7 lines · Wei Xu
Quoted 1 line · wangyufen

Hi,

Hi Yufen,

Quoted 8 lines
Quoted 5 lines

I did ltp test on arm64, the sysfs testcases failed:

sysfs01 0 TWARN : This test can only run on kernels that support the sysfs system call

because the __NR_sysfs didn't define in aarch64

Have you been enabled the *CONFIG_COMPAT* in your .config?

*CONFIG_COMPAT* already enabled
CONFIG_COMPAT_BRK=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_COMPAT=y

Quoted 3 lines

The __NR_sysfs is defined at arch/arm64/include/asm/unistd32.h and arch/arm64/kernel/sys32.S is including it.

in arch/arm64/include/asm/unistd32.h defined :
__SYSCALL(135, sys_sysfs)

So I used 135 to test sysfs, I straced sysfs01,

the syscall called rt_sigprocmask not sysfs:
rt_sigprocmask(SIG_UNBLOCK, [], 0x8, 0) = -1 EINVAL (Invalid argument)

Quoted 24 lines

Hope it will fix your issues.

Best Regards,
Wei

Quoted 12 lines

Dose anyone know what number the sysfs system call is in aarch64?

Thanks,
Wang

_______________________________________________
linuxarm mailing list
linuxarm at huawei.com
http://rnd-openeuler.huawei.com/mailman/listinfo/linuxarm

_______________________________________________
linuxarm mailing list
linuxarm at huawei.com
http://rnd-openeuler.huawei.com/mailman/listinfo/linuxarm

#3 lore raw
In reply to wangyufen
Quoted 9 lines · On Friday 21 November 2014 15:27:02 wangyufen wrote:

Hi,

I did ltp test on arm64, the sysfs testcases failed:

sysfs01 0 TWARN : This test can only run on kernels that support the sysfs system call

because the __NR_sysfs didn't define in aarch64

Dose anyone know what number the sysfs system call is in aarch64?

It's disabled of course, because we don't support ancient libc implementations. No modern Linux port has this.

Arnd

author
#4 lore raw
Quoted 7 lines · Arnd Bergmann
Quoted 6 lines · On Friday 21 November 2014 15:27:02 wangyufen wrote:

Hi,

I did ltp test on arm64, the sysfs testcases failed:

sysfs01 0 TWARN : This test can only run on kernels that support the sysfs system call

Quoted 10 lines
Quoted 3 lines

because the __NR_sysfs didn't define in aarch64

Dose anyone know what number the sysfs system call is in aarch64?

It's disabled of course, because we don't support ancient libc implementations. No modern Linux port has this.

Arnd

__NR__lchown32?__NR_lstat?__NR__sysctl?__NR_vserver have similar problems.

Dose aarch64 support those system call?

How I distinguish the ancient libc implementations.

#5 lore raw

Hi,

2014-12-05 11:07 GMT+09:00 wangyufen <[email protected]>:

Quoted 20 lines · Arnd Bergmann
Quoted 7 lines · On Friday 21 November 2014 15:27:02 wangyufen wrote:
Quoted 6 lines

Hi,

I did ltp test on arm64, the sysfs testcases failed:

sysfs01 0 TWARN : This test can only run on kernels that support the sysfs system call

Quoted 10 lines
Quoted 3 lines

because the __NR_sysfs didn't define in aarch64

Dose anyone know what number the sysfs system call is in aarch64?

It's disabled of course, because we don't support ancient libc implementations. No modern Linux port has this.

Arnd

Quoted 5 lines

__NR__lchown32?__NR_lstat?__NR__sysctl?__NR_vserver have similar problems.

Dose aarch64 support those system call?

How I distinguish the ancient libc implementations.

You can find the syscalls from include/uapi/asm-generic/unistd.h. Please note below definitions are not defined on aarch64. __ARCH_WANT_SYSCALL_NO_AT
__ARCH_WANT_SYSCALL_NO_FLAGS __ARCH_WANT_SYSCALL_DEPRECATED

Best Regards,
Chanho Park