Re: [PATCH 2/5] selftests/fs/statmount: build with tools include dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/8/25 4:36 AM, Amir Goldstein wrote:
> On Thu, May 8, 2025 at 9:31 AM John Hubbard <jhubbard@xxxxxxxxxx> wrote:
>> On 5/7/25 1:42 PM, Amir Goldstein wrote:
> ...
>> Yes, syscalls are the weak point for this approach, and the above is
>> reasonable, given the situation, which is: we are not set up to recreate
>> per-arch syscall tables for kselftests to use. But this does leave the
>> other big arch out in the cold: arm64.
>>
>> It's easy to add, though, if and when someone wants it.
> 
> I have no problem adding || defined(__arm64__)
> it's the same syscall numbers anyway.
> 
> Or I could do
> #if !defined(__alpha__) && !defined(_MIPS_SIM)
> 
> but I could not bring myself to do the re-definitions that Christian
> added in mount_setattr_test.c for
> __NR_mount_setattr, __NR_open_tree, __NR_move_mount
> 
> Note that there are stale definitions for __ia64__ in that file
> and the stale definition for __NR_move_mount is even wrong ;)
> 
> Christian,
> 
> How about moving the definitions from mount_setattr_test.c into wrappers.h
> and leaving only the common !defined(__alpha__) && !defined(_MIPS_SIM)
> case?
> 

By the way, is this approach possibly something that the larger kselftests
could use (not in this series, of course)? I recall most of them are doing
something that is x86-only, as well. And so if you have made some observations
about syscall numbers such as "only alpha and mips are different" (?), I
could definitely take that and run with it for the overall kselftests.

thanks,
-- 
John Hubbard





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux