linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.28k stars 1k forks source link

64 bit syscalls tests #943

Closed Ankita-020696 closed 2 years ago

Ankita-020696 commented 2 years ago

Hi, Are there any syscalls tests specific to only 64 bit Linux or all tests are generic(works for both 32/64 bit)?

Thanks

metan-ucw commented 2 years ago

That actually depends on for which architecture LTP is compiled. If you compile LTP for example on 32bit PC i.e. x86 the testcases are testing 32bit ABI, and if you, for example, compile it on 64bit PC i.e. x86_64 you are testing 64bit ABI.

You can also compile LTP for 32bit ABI on a 64bit architecture in cases where it's supported and this is actually used to test the kernel 32bit compat layer. You can do that with passing -m32 in both 'CFLAGS' and 'LDFLAGS' to the 'configure' script.