aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-02Merge changes from topic "ltp-20230929-android14-tests" into android14-tests-devandroid14-tests-devTreehugger Robot
* changes: cgroup: Fix scanning V1 mount options cgroup: Handle trailing new line in cgroup.controllers compare_ltp_projects.py: Fix test sorting, adjust printing madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported madvise11: Replace /etc/mtab with /proc/mounts syscalls/process_madvise01: fix smaps scan and min_swap_avail tst_clocks.c: Fix stack smashing on 32bit tst_kvercmp: Handle larger kernel version numbers getpgid01: On Android, pgid(1) is 0 instead of 1 pipe07: refactor exp_num_pipes pipe07: close /proc/self/fd after counting fds config.h: Compile with linux/ioprio.h to fix ioprio_set03 sched.h: Don't exclude clone_args_minimal when HAVE_STRUCT_CLONE_ARGS is set ltp-version.h: Generate with genrule mq_notify03: disable test because don't have mqueue kvm: Disable kvm tests make_parser.py: Handle as (gnu assembler) command in makefile android_build_generator.py: Print more info when failing with compile target LTP 20230929 Merge tag '20230929'
2024-03-27input_helper: Modify the check range of the input event numberakihisa.kogure.ke
If the input event number is greater than 32, the newly added event ID will be 256 or later. When there were already 32 input events in the device, this test program only checked 0~99, so it failed because it could not find a new input event ID. In order to eliminate this failure, we changed the event ID range to be checked by this test program to 0~1023. (https://github.com/torvalds/linux/commit/7f8d4cad1e4e11a45d02bd6e024cc2812963c38a, it looks like the upper limit should be 1023.) Bug: 330269984 Test: ltp Change-Id: I1b53008b15641fcdccf214af9183de1c29a3309c
2024-01-18cgroup: Fix scanning V1 mount optionsRichard Palethorpe
The validation in cgroup_find_ctrl did not take into consideration how we scan V1 mounts. For V1 we try using each mount option as if it is a controller name. Some mount options contain characters which would be invalid in a controller name. This commit ignores errors when scanning V1 mount options. Ideally we would have a place where we can read the subsys name knowing that only subsys names will be read from that location. Such as with V2. One possibility is /proc/cgroups which contains a numeric value for the hierarchy. However it would require more investigation. Fixes: #1093 Fixes: 5292c46e5 "cgroup: Handle trailing new line in cgroup.controllers" Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com> Reviewed-by: Cyril Hrubis <chrubis@suse.cz> (cherry picked from commit 6e86277cc5440f781282f8fb982a810b7a5e5a5d) Test: N/A Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:22ab8b7c2f44bf29435b14435da3597aedd163d0) Bug: 305297408 Change-Id: I11e47073bcdafda0a847ddf95bb52a889f498c6b Merged-In: I11e47073bcdafda0a847ddf95bb52a889f498c6b
2024-01-18cgroup: Handle trailing new line in cgroup.controllersRichard Palethorpe
The last item in cgroup.controllers (misc or rdma in my case) contained a new line character which caused the controller search to fail. This commit avoids including the newline character inside the name comparison. The search failure caused the "cgroup_regression_test.sh" test to fail with a confusing error when it tries to mount a V1 subsys thus removing the V2 and causing the available set of V2s to change between scans. According to the V2 docs subsys names can only include lowercase characters and '_'. So we strictly look for those characters. The newline (and delimiting space) is just what the kernel currently prints. IDK if it is specified anywhere, but if it changes then the error should be obvious. Fixes: 310da3784 ("Add new CGroups APIs") Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com> Reviewed-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Marius Kittler <mkittler@suse.de> (cherry picked from commit 5292c46e5032011337d73119f27d365f29140004) Test: N/A Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:6130f433e5225c4a534a7515571d5ea741f94c0e) Bug: 305297408 Change-Id: Iad436c8bc7a854553da962f90d8623359a7654fb Merged-In: Iad436c8bc7a854553da962f90d8623359a7654fb
2024-01-18compare_ltp_projects.py: Fix test sorting, adjust printingEdward Liaw
Changed tests should be sorted alphabetically. Also, refactor the print order to display added tests in the first column. This is easier to use for reporting. Finally, left-align everything. Test: ./android/tools/compare_ltp_projects.py -o . Test: ./android/tools/compare_ltp_projects.py -n . Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:f444456605a9cf2e2e3c2da872ca12095b515d23) Bug: 305297408 Change-Id: I5cb75905998c828c02322a5dc7a9b62745e78652 Merged-In: I5cb75905998c828c02322a5dc7a9b62745e78652
2024-01-18madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supportedEdward Liaw
madvise11 will exit with TFAIL if CONFIG_MEMORY_FAILURE is not configured. Require it to be set instead. Suggested-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Edward Liaw <edliaw@google.com> Reviewed-by: Cyril Hrubis <chrubis@suse.cz> (cherry picked from commit 55c77edb505500e0e6c8733b0788dc5a4181971b) Bug: 305297408 Test: atest -a vts_ltp_test_x86_64:syscalls.madvise11_64bit (cherry picked from https://android-review.googlesource.com/q/commit:c32841407198109c89d0ba490f855278010cf856) Change-Id: I424d11ad0004ce6256237e1edeada5f0af2593c8 Merged-In: I424d11ad0004ce6256237e1edeada5f0af2593c8
2024-01-18madvise11: Replace /etc/mtab with /proc/mountsEdward Liaw
Android does not have the /etc/mtab symlink, so trying to open it fails with TBROK. Replace it with /proc/mounts. Link: https://lore.kernel.org/ltp/20231102230054.3195864-1-edliaw@google.com/ Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from commit 1c613b33680e4f75cbfd742a39472ffb32f3dd19) Bug: 305297408 Test: atest -a vts_ltp_test_x86_64:syscalls.madvise11_64bit (cherry picked from https://android-review.googlesource.com/q/commit:3e45fe2350e8a10f14b8cea77038a7dc60a12840) Change-Id: Id3da0097bdb8ba04922354fdbbbfb6555696796c Merged-In: Id3da0097bdb8ba04922354fdbbbfb6555696796c
2024-01-18syscalls/process_madvise01: fix smaps scan and min_swap_availJan Stancek
smaps matching can prematurely end, because the comparison to "VmFlags" string is not exact. So depending on address on line, it can break before it finds Swap line. This makes the test fail on recent aarch64 kernels. min_swap_avail per documentation is in MB not KB. Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Andrea Cervesato <andrea.cervesato@mailbox.org> (cherry picked from commit a3830bafbe8350be8190d48176321fe79812f4c2) Bug: 305297408 Test: atest -a vts_ltp_test_x86_64:syscalls.process_madvise01_64bit Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:f6fbadd71f8357db8254dd2f7913d6ee9c1c73d1) Change-Id: I85da5f16af8c237fa404437315ed1d1466547c28 Merged-In: I85da5f16af8c237fa404437315ed1d1466547c28
2024-01-18tst_clocks.c: Fix stack smashing on 32bitPetr Vorel
63e8c1eba introduced a regression on 32 bit compilation when compiled with -fstack-protector-strong, because struct timespec is probably too small for timespec64. PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig CFLAGS="-m32 -fstack-protector-strong" LDFLAGS="-m32 -fstack-protector-strong" ./configure ... # gdb ./abort01 (gdb) set follow-fork-mode child (gdb) run Starting program: testcases/kernel/syscalls/abort/abort01 Missing separate debuginfos, use: zypper install glibc-32bit-debuginfo-2.31-150300.52.2.x86_64 tst_test.c:1690: TINFO: LTP version: 20230929-7-gff6cdc67f tst_test.c:1576: TINFO: Timeout per run is 0h 00m 30s [Attaching after process 3357 fork to child process 3360] [New inferior 2 (process 3360)] [Detaching after fork from parent process 3357] [Inferior 1 (process 3357) detached] *** stack smashing detected ***: terminated Thread 2.1 "abort01" received signal SIGABRT, Aborted. [Switching to process 3360] 0xf7fd2559 in __kernel_vsyscall () (gdb) bt #0 0xf7fd2559 in __kernel_vsyscall () #1 0xf7e08aa2 in raise () from /lib/libc.so.6 #2 0xf7e09efd in abort () from /lib/libc.so.6 #3 0xf7e4d91b in __libc_message () from /lib/libc.so.6 #4 0xf7eeb2cc in __fortify_fail () from /lib/libc.so.6 #5 0xf7eeb299 in __stack_chk_fail () from /lib/libc.so.6 #6 0x0805c501 in syscall_supported_by_kernel (sysnr=403) at tst_clocks.c:27 #7 0x0805c80d in tst_clock_gettime (clk_id=1, ts=0x807cfb0 <tst_start_time>) at tst_clocks.c:66 #8 0x080531df in heartbeat () at tst_test.c:1374 #9 0x08053ba2 in testrun () at tst_test.c:1458 #10 fork_testrun () at tst_test.c:1608 #11 0x08055afa in tst_run_tcases (argc=<optimized out>, argv=<optimized out>, self=<optimized out>) at tst_test.c:1704 #12 0x0804b3f0 in main (argc=1, argv=0xffffc414) at ../../../../include/tst_test.h:401 (gdb) Test timeouted, sending SIGKILL! Test timeouted, sending SIGKILL! Fixes: 63e8c1eba ("tst_clocks: Fix unaddressable byte warning") Reported-by: Petr Cervinka <pcervinka@suse.com> Suggested-by: Cyril Hrubis <chrubis@suse.cz> Reviewed-by: Marius Kittler <mkittler@suse.de> Signed-off-by: Petr Vorel <pvorel@suse.cz> (cherry picked from commit 7c3530391ed62d9286ba0b7ae19ffebe426dee8e) Test: atest -a vts_ltp_test_x86 Bug: 305297408 Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:a927ea96fa62313191899c6b9bf0e171ba67e83b) Change-Id: I482a5cdcdd127bb31930465493f1deb3913d8ed4 Merged-In: I482a5cdcdd127bb31930465493f1deb3913d8ed4
2024-01-18tst_kvercmp: Handle larger kernel version numbersEdward Liaw
Current implementation can only handle revision numbers up to 256. Bump this up to 1024 as some revision numbers are in the 300s. Test: atest -a vts_ltp_test_x86_64:syscalls.mmap20_64bit Link: https://lore.kernel.org/ltp/20231018015016.1897021-1-edliaw@google.com/ Reviewed-by: Petr Vorel <pvorel@suse.cz> Tested-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from commit 603bac198043d03fecc55b5ee3e545fc2773370d) (cherry picked from https://android-review.googlesource.com/q/commit:352bee2ec17478283e391da8885f581a05992b88) Bug: 305297408 Change-Id: I6b4d69b62a61c8b5af386ab34211a11f1546d98e Merged-In: I6b4d69b62a61c8b5af386ab34211a11f1546d98e
2024-01-12getpgid01: On Android, pgid(1) is 0 instead of 1Edward Liaw
Android's init does not call setpgid(0, 0) so it does not have pgid=1. In either case, the pgid should match /proc/1/stat, so compare getpgid(1) against that. Bug: 276300873 Bug: 305297408 Test: atest -a vts_ltp_test_x86_64:syscalls.getpgid01_64bit Link: https://lore.kernel.org/ltp/20231027190029.3820505-1-edliaw@google.com/ Reviewed-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from commit 0e9c283fd713c33c1b5f35406a5fcc96a55e1c0f) (cherry picked from https://android-review.googlesource.com/q/commit:b6c3211d6aa9441feca137843cdd7259ba6553c5) Change-Id: I4e7ae5175197325392450dc7a0d6dc7e7393c3a1 Merged-In: I4e7ae5175197325392450dc7a0d6dc7e7393c3a1
2024-01-12pipe07: refactor exp_num_pipesEdward Liaw
Move doubling the exp_num_pipes into the value. Bug: 305297408 Test: atest -a vts_ltp_test_x86_64:syscalls.pipe07_64bit Link: https://lore.kernel.org/ltp/20231002173416.1080347-3-edliaw@google.com/ Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from commit 8bc92979113d86d3baad3f89d0c9b21402be29f3) (cherry picked from https://android-review.googlesource.com/q/commit:95f391ab8219504e8b34f4715674f5bb096d32be) Change-Id: Idb2b861443424c14092f34feebc67b846c7f4bc2 Merged-In: Idb2b861443424c14092f34feebc67b846c7f4bc2
2024-01-12pipe07: close /proc/self/fd after counting fdsEdward Liaw
Leaving the directory fd open will count against the max number of fds opened, so the final expected count will be off when (max_fds - record_open_fds()) is even. Bug: 305297408 Test: atest -a vts_ltp_test_x86_64:syscalls.pipe07_64bit Link: https://lore.kernel.org/ltp/20231002173416.1080347-2-edliaw@google.com/ Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from commit decd76383268048c7b298a3f45bd88575bc7c520) (cherry picked from https://android-review.googlesource.com/q/commit:0dcbd33f2d3e42c5334f28be53535f24de75682f) Change-Id: If85e083fa5fbb29bc3f79de34f32127afa7ee12d Merged-In: If85e083fa5fbb29bc3f79de34f32127afa7ee12d
2024-01-12config.h: Compile with linux/ioprio.h to fix ioprio_set03Edward Liaw
Use bionic's ioprio header for testing. Bug: 297317502 Bug: 295032179 Test: atest vts_ltp_test_x86_64:syscalls.ioprio_set03_64bit Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:65e659e248cfc231ff34999630f7b32529bb463c) Change-Id: I175eee5b0b010fe0dc466505064601273e066093 Merged-In: I175eee5b0b010fe0dc466505064601273e066093
2024-01-12sched.h: Don't exclude clone_args_minimal when HAVE_STRUCT_CLONE_ARGS is setEdward Liaw
Bug: 305297408 Test: atest -a vts_ltp_test_x86_64 Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:fce8e9e6c810e2efddf789b83fbb483aea637ad7) Change-Id: Iabe52229bafb29f9420be720596915bc7ccf2af6 Merged-In: Iabe52229bafb29f9420be720596915bc7ccf2af6
2024-01-12ltp-version.h: Generate with genruleEdward Liaw
Replace the gen_version.sh script with genrule in Android.bp. Bug: 305297408 Test: mma Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:fbfeb934ff32cf425e6fa64520e95b599bc0d460) Change-Id: Iba5bb1d0010e880ff434eafb76055fded227d50d Merged-In: Iba5bb1d0010e880ff434eafb76055fded227d50d
2024-01-12mq_notify03: disable test because don't have mqueueEdward Liaw
Bug: 305297408 Test: N/A Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:2f253cf8ff1aa4bbc592817ab3f67e3f7e7a88f6) Change-Id: I497e4a111db4423d5d7001ae1ee5988c03496cb6 Merged-In: I497e4a111db4423d5d7001ae1ee5988c03496cb6
2024-01-12kvm: Disable kvm testsEdward Liaw
Parser needs to be able to support objcopy / ld commands for the elf files. Bug: 246845416 Test: git clean -dfx && android/tools/gen_android_build.sh && git clean -dfx && mma . Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:749d7ebc95c16d7bdea87266f5b3d84c609a6164) Change-Id: I13a093052006ae1f189a439bb4980f8034a88198 Merged-In: I13a093052006ae1f189a439bb4980f8034a88198
2024-01-12make_parser.py: Handle as (gnu assembler) command in makefileEdward Liaw
Bug: 305297408 Test: git clean -dfx && android/tools/gen_android_build.sh Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:0a4fd52fff248e50d6a9ae9551306396c11042ff) Change-Id: I305bd90eefd89ed4914fcf1f8d22d6a17cfd9786 Merged-In: I305bd90eefd89ed4914fcf1f8d22d6a17cfd9786
2024-01-12android_build_generator.py: Print more info when failing with compile targetEdward Liaw
Bug: 305297408 Test: git clean -dfx && android/tools/gen_android_build.sh Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:23607b1610ea24db33e194e3b72ab67224f0b6b1) Change-Id: Ib679a105a4f06895ad559efd6c518ec3213cef99 Merged-In: Ib679a105a4f06895ad559efd6c518ec3213cef99
2024-01-12LTP 20230929Edward Liaw
************************* Tests ************************** Added (67) Deleted (25) containers.mqns_01_unshare containers.mqns_03 containers.mqns_02_unshare containers.mqns_04 containers.mqns_03_unshare containers.utstest_clone_1 containers.mqns_04_unshare containers.utstest_clone_2 containers.utsname01 containers.utstest_clone_3 containers.utsname02 containers.utstest_clone_4 containers.utsname03_clone containers.utstest_clone_5 containers.utsname03_unshare containers.utstest_unshare_1 containers.utsname04_clone containers.utstest_unshare_2 containers.utsname04_unshare containers.utstest_unshare_3 controllers.cgroup_core03 containers.utstest_unshare_4 cve.cve-2017-18344 containers.utstest_unshare_5 cve.cve-2017-8890 ipc.sem01 cve.cve-2018-11508 ipc.sem02 cve.cve-2018-6927 staging.fanotify23 cve.cve-2020-36557 syscalls-ipc.semget03 cve.cve-2021-38604 syscalls-ipc.semget06 cve.cve-2021-4197_1 syscalls.fcntl06 cve.cve-2021-4197_2 syscalls.fcntl06_64 cve.cve-2021-4204 syscalls.ioctl01_02 cve.cve-2022-0185 syscalls.mmap07 cve.cve-2022-23222 syscalls.semget03 cve.cve-2023-1829 syscalls.semget06 hugetlb.hugemmap32 syscalls.setgroups04 kvm.kvm_svm01 syscalls.setgroups04_16 kvm.kvm_svm02 kvm.kvm_svm03 net.nfs.nfs3_08 net.nfs.nfs3_ipv6_08 net.nfs.nfs3t_08 net.nfs.nfs3t_ipv6_08 net.nfs.nfs41_08 net.nfs.nfs41_ipv6_08 net.nfs.nfs42_08 net.nfs.nfs42_ipv6_08 net.nfs.nfs4_08 net.nfs.nfs4_ipv6_08 sched.starvation syscalls.clone303 syscalls.epoll_wait05 syscalls.epoll_wait06 syscalls.epoll_wait07 syscalls.eventfd02 syscalls.eventfd03 syscalls.eventfd04 syscalls.eventfd05 syscalls.eventfd06 syscalls.faccessat02 syscalls.faccessat201 syscalls.faccessat202 syscalls.fanotify23 syscalls.fsconfig03 syscalls.ioctl01 syscalls.ioctl02 syscalls.madvise11 syscalls.mmap20 syscalls.mount07 syscalls.mprotect05 syscalls.mq_notify03 syscalls.mremap06 syscalls.pipe14 syscalls.process_madvise01 syscalls.semop04 syscalls.semop05 syscalls.statx10 syscalls.statx11 syscalls.statx12 Bug: 305297408 Test: N/A Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:2e14464a4c0ba901000f47dbfbdd01c0f85691e3) Change-Id: I965e0a20186abd1c1cb263f98dc10130a045b742 Merged-In: I965e0a20186abd1c1cb263f98dc10130a045b742
2024-01-12Merge tag '20230929'Edward Liaw
Update LTP to 20230929 release. Bug: 305297408 Test: N/A Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:4750afbdd3e27b386491f9544f484abe6e38c9f6) [edliaw: remove submodules] Change-Id: I5d31e9e04a69ad8178cc8c1350aa20236d688a4a Merged-In: I5d31e9e04a69ad8178cc8c1350aa20236d688a4a
2024-01-09[automerger skipped] clock_gettime01: avoid zero exec runtime due to irq and ↵Jan Stancek
steal time accounting am: 316222cbcd -s ours am skip reason: Merged-In Iecd9f56d8980a8fe0db7d70f2a276de5a2503908 with SHA-1 b2cf0a4e3d is already in history Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2899047 Change-Id: I4f5581dc8147814b68daec9d85c56e407cfe1d90 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-05clock_gettime01: avoid zero exec runtime due to irq and steal time accountingandroid13-tests-devJan Stancek
Test is sporadically failing on KVM guests with zero-ed timespec returned by CLOCK_{PROCESS,THREAD}_CPUTIME_ID. This can be reproduced on kernels v4.18 and v5.13-rc3 which have IRQ and PARAVIRT TIME ACCOUNTING enabled. Task exectime is usually updated on call of clock_gettime(). But update_rq_clock_task() may not update clock_task if there's more unaccounted irq or steal time than rq->clock delta since last call. In this instance rq->clock_task does not advance and it is left for next update to account rest. Because LTP test is quick and checks only once, it sometimes sees zero timespec and treats it as failure. Add a small warm-up to setup() in form of busy loop, to make sure that clock_task advanced. In case of bug we would either hit a timeout or still report zeroed timespec. Signed-off-by: Jan Stancek <jstancek@redhat.com> Reviewed-by: Cyril Hrubis <chrubis@suse.cz> (cherry picked from commit 783164765c77cb1180e285e495e51eb60186ece5) Bug: 193878093 Test: atest -a vts_ltp_test_x86_64:syscalls.clock_gettime01_64bit Change-Id: Iebfe4e42d46ea62f9bdfb699cf82ee2355c5fd60 Merged-In: Iecd9f56d8980a8fe0db7d70f2a276de5a2503908 Signed-off-by: Edward Liaw <edliaw@google.com>
2023-09-28syscalls/statx06: use a fine-grained timestamp for the second time fetchandroid-vts-14.0_r2android-cts-14.0_r2Jeff Layton
I have a patchset in progress to change the kernel to sometimes use fine-grained timestamps for the mtime/ctime. With this, the statx06 test sometimes fails. Change the test to grab a fine-grained timestamp for the "after" value, which fixes the issue. Link: https://lore.kernel.org/ltp/20230518113216.126233-1-jlayton@kernel.org/ Reviewed-by: Cyril Hrubis <chrubis@suse.cz> Reviewed-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Yang Xu <xuyang2018.jy@fujitsu.com> [ pvorel: Although patchset [1] has not been merged, we agreed that the change is backward compatible anyway. ] Signed-off-by: Jeff Layton <jlayton@kernel.org> [1] https://lore.kernel.org/lkml/20230411143702.64495-1-jlayton@kernel.org/ (cherry picked from commit 604701dc19c5499403ae5afe48103b8e2872952b) Bug: 300322453 Bug: 300116501 Test: atest vts_ltp_test_x86:syscalls.statx06_32bit Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:70e19f414a3ed8d8779d642fbb76fb3bb7720e65) Merged-In: I5a82c25878782daf6cef3dcc87e9b2b2a41b4bcf Change-Id: I5a82c25878782daf6cef3dcc87e9b2b2a41b4bcf
2023-08-24syscalls/timerfd04: incorrect CLOCK_BOOTIME end am: ce11153699Edward Liaw
Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2714474 Change-Id: I9a12e3f6f7bec510348ecb695ddfb8e39c1c6dd3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-17syscalls/timerfd04: incorrect CLOCK_BOOTIME endEdward Liaw
The end time was hardcoded to CLOCK_MONOTONIC and needs to be changed to the clk_id of the test case. Fixes: 0c443ca40 ("syscalls/timerfd04: Add time namespace test") Fixes: 2f8f989d1 ("syscalls/timerfd: Add support for time64 tests") Bug: 241307310 Test: atest vts_ltp_test_arm_64:syscalls.timerfd04_64bit#syscalls.timerfd04_64bit Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from commit 2761a81c4ddfac3e1003618768ae028668ceef12) Change-Id: I28c5b7d0132bf32cae6c50faa7d300ded42cc9f7
2023-08-02tst_timer_test.c: Increase sleep timeout threshold for arm/arm64Edward Liaw
When the test thread is primarily scheduled on a little cpu, the additional latency can cause the test to exceed the timeout threshold. With recent scheduling changes to improve power efficiency, this has a higher probability of happening, so increase the timeout base from 400 to 500. Bug: 289747344 Test: atest vts_ltp_test_arm_64 Signed-off-by: Edward Liaw <edliaw@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:191a2bd3732e240da819b1ce2dbba037b7666eea) Merged-In: Ib90e8318e955860511c32d0d4b85232b3452e5e1 Change-Id: Ib90e8318e955860511c32d0d4b85232b3452e5e1
2023-07-17Add buffer for RT throttling default configAndrew Yang
perf_event_open02 will run testing about 4s as RT thread then get HW instruction and SW task clock event counter to compare. Under kernel RT throttling default config (sched_rt_period_us=1000000, sched_rt_runtime_us=950000), the RT testing thread will sleep around 50ms for 4 times because of RT throttling. The sleeping will lead device enter idle then exit idle for 4 times. This behavior leads overhead and affect perf event counter. After update RT throttling config (sched_rt_period_us=3000000, sched_rt_runtime_us=2850000), the test case could pass because of less idle times. With more low power features are introduced to new platforms, we need to add more buffer to cover the impact of RT throttling. Bug: 285838050 Test: run vts -m vts_ltp_test_arm_64 Signed-off-by: Andrew Yang <andrew.yang@mediatek.com> (cherry picked from https://android-review.googlesource.com/q/commit:df0335180e6d97dd5c0f1c27e659bea0cdde38d9) Merged-In: I526a8339fdbf9bfb671e826f8129d30a22f9eccc Change-Id: I526a8339fdbf9bfb671e826f8129d30a22f9eccc (cherry picked from commit 69c8971d4fd021f71f50db8ea8b9bec480df924f)
2023-06-08Add buffer for RT throttling default configandroid14-devBen Niu
perf_event_open02 will run testing about 4s as RT thread then get HW instruction and SW task clock event counter to compare. Under kernel RT throttling default config (sched_rt_period_us=1000000, sched_rt_runtime_us=950000), the RT testing thread will sleep around 50ms for 4 times because of RT throttling. The sleeping will lead device enter idle then exit idle for 4 times. This behavior leads overhead and affect perf event counter. After update RT throttling config (sched_rt_period_us=3000000, sched_rt_runtime_us=2850000), the test case could pass because of less idle times. Bug: 285838050 Test: run vts vts_ltp_test_arm_64 (cherry picked from https://android-review.googlesource.com/q/commit:d1d611252c553db4b3b1cd9ab2f18e0e1c14396e) Merged-In: I643ed60c051f799a5c28746ac033acf563fae615 Change-Id: I643ed60c051f799a5c28746ac033acf563fae615
2023-05-09Merge "fcntl{34,36}: Use arch dependent types for my_flock64 am: b196559cba ↵Treehugger Robot
am: 8cee1a1ae7 am: 4343fe4cdb am: 5b83cb0098 am: 06e362031f am: 12fdf11a67" into udc-dev
2023-05-06fcntl{34,36}: Use arch dependent types for my_flock64 am: b196559cba am: ↵Edward Liaw
8cee1a1ae7 am: 4343fe4cdb am: 5b83cb0098 am: 06e362031f am: 12fdf11a67 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2572814 Bug: 280967914 Change-Id: I26c2539c409f69660c3b4493d832c349c40c1816 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> (cherry picked from commit 8da0c9c48e489b07d4f8a7daf7de9a050395af9b)
2023-05-06fcntl{34, 36}: Only use fcntl64 with 32bit ABI am: 0314d61fdb am: ce09d86a0d ↵Edward Liaw
am: fcf0bdba65 am: 2ae81a1910 am: c0bebbc4d4 am: 10bd0d8ecb Bug: 280967914 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2572813 Change-Id: Ibde85e90c1e8101f80fd0b6134e704f7f0a55d3a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> (cherry picked from commit d1ddfcaa4f7d8b45496eed64afa6a57ef6e8bb87)
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cdde6b7938 am: 9b42adfaec am: 0fb7aa477c am: 44188ec858 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: Ice44b492262cb65425e12003a3152ea129fa0769 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cf939854ca am: 023a2242d4 am: 81ca76e274 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: Ib2c4873bd63b326bf75a9d9081525055f5f893e4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cdde6b7938 am: 9b42adfaec am: 0fb7aa477c Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: I8a901f40bec198c280159c9143bd3559e8024837 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cdde6b7938 am: 9b42adfaec Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: I65906c97c916d09dc00bcefd1d72c8191da3180e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cdde6b7938 am: ad8ebc28f6 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: Ied7433ac6ee48de5b9551427d2e64e566ecb2a33 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cf939854ca am: 023a2242d4 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: If7ed95ba0a362ece525a4aebc5b500ba30196d83 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cdde6b7938 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: Id5f94a38840382cfa30e15923bd53305dc225b88 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cdde6b7938 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: Iabbbcbc1c15159e0725642276f26ebdd8bef16b7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-15Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 am: cf939854ca Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: I0e2736587d16e57eb825a43123ea072c5c531641 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: Ia4c2035e3fd397a459a38963033d2ef85937f49b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 am: 4db5eced58 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: I09300c2cdc7343b94af3c579e51844ce752b0c57 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵Edward Liaw
am: 029808df43 am: 24d8f39ec3 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: I555f05709dca47383b3ebff04f2cd8f7ff7adb58 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "syscall01: use 32bit syscalls if available" into android12-tests-dev ↵android12L-tests-devEdward Liaw
am: 029808df43 Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2528106 Change-Id: Ic9fe3b512db5c835d8868d00ea2b494076289a70 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14Merge "syscall01: use 32bit syscalls if available" into android12-tests-devandroid12-tests-devEdward Liaw
2023-04-14[automerger skipped] Merge "BACKPORT: ltp: Add owners" into ↵Treehugger Robot
android12-tests-dev am: 2b3060598e -s ours am: 891c69d0d2 -s ours am: cbba593365 -s ours am: 9745b79226 -s ours am: 3af3b28004 -s ours am: c706a8381d -s ours am: 2a0ebe7007 -s ours am skip reason: Merged-In Ie9b6bb6cfe590d5c609fe2c92dd6b6cd3e6242d2 with SHA-1 bbbbcfb3a0 is already in history Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2531766 Change-Id: I586b1a3d8372debe2013e00eb6cee60e83526816 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14[automerger skipped] BACKPORT: ltp: Add owners am: 1499742557 -s ours am: ↵Edward Liaw
a36d16afb8 -s ours am: 6071d91a8f -s ours am: 21c4df5053 -s ours am: bb03acf34e -s ours am: 78e299eb91 -s ours am: 6ac97c36f0 -s ours am skip reason: Merged-In Ie9b6bb6cfe590d5c609fe2c92dd6b6cd3e6242d2 with SHA-1 bbbbcfb3a0 is already in history Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2531766 Change-Id: I4218aa93638e83a63d1309a829d9ecc97a1bcb6d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-14[automerger skipped] Merge "BACKPORT: ltp: Add owners" into ↵Treehugger Robot
android12-tests-dev am: 2b3060598e -s ours am: 891c69d0d2 -s ours am: cbba593365 -s ours am: 9745b79226 -s ours am: 3af3b28004 -s ours am: c706a8381d -s ours am skip reason: Merged-In Ie9b6bb6cfe590d5c609fe2c92dd6b6cd3e6242d2 with SHA-1 bbbbcfb3a0 is already in history Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2531766 Change-Id: Ib72cd6fa00991656d985a6dbb4a825ff50a36cac Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>