tree: b356b3dd07b26e4ac6e2bcf00f1542302161ee9b [search]
  1. 16K-0001-ltp-Introduce-pgsize_helpers.h.patch
  2. 16K-0002-ltp-syscalls-msync-Fix-pagemap-index.patch
  3. 16K-0003-ltp-syscalls-signal-Fix-alignment-and-size-of-alts.patch
  4. 16K-0004-ltp-syscalls-mlock-Fix-fault-granularity.patch
  5. 16K-0005-ltp-controllers-memcg-Fix-fault-granularity.patch
  6. 16K-0006-ltp-syscalls-fcntl-Clarify-default-pipe-size-for-p.patch
  7. 16K-0007-ltp-syscalls-mincore-Iterate-vector-in-kernel-page.patch
  8. 16K-0008-ltp-security-dirtyc0w_shmem-Fix-backing-file-size.patch
  9. 16K-0009-ltp-syscalls-pipe2-Update-pipe-size-check.patch
  10. 16K-0010-ANDROID-Skip-ltps-userfaultfd-tests-for-emulated-1.patch
  11. 16K-0011-Revert-ltp-syscalls-mincore-Iterate-vector-in-kern.patch
  12. 16K-0012-ANDROID-ioctl-Use-kernel_page_size-for-VMA-page-si.patch
  13. 16K-0013-ANDROID-epoll_wait06-Use-kernel_page_size-for-EPOLLET.patch
  14. LAPI-0002-ANDROID-Bionic-compatibility-header-fixes.patch
  15. LAPI-0004-lapisyscalls-Add-fallback-definition-for-memfd_sec.patch
  16. LIB-0002-ANDROID-KVM-detection-via-vda.patch
  17. LIB-0005-tst_timer_test.c-Increase-sleep-timeout-threshold-.patch
  18. README.md
  19. SYS-0001-ANDROID-memcg-swap-handling-android.patch
  20. SYS-0002-ANDROID-proc01-android-proc-fixes.patch
  21. SYS-0005-ANDROID-perf_event_open02-stabilization.patch
  22. SYS-0006-ANDROID-Add-rt_sigpending-local-test.patch
  23. SYS-0007-ANDROID-Unconditionally-include-kvm-in-Makefile.patch
patches/README.md

LTP Local Patches

This directory contains local patches applied to the Android LTP repository on top of the upstream base version.

Base Commit

These patches are based on the upstream LTP commit: 8cd7644a52e348393d453d0ec5bf9424ea31a4cc (merged on May 17, 2026).

Naming Convention

Patches are organized by theme and numbered sequentially:

  • 16K-XXXX.patch: Modifications related to 16KB page size emulation on x86_64.
  • EAS-XXXX.patch: Energy Aware Scheduling tests (local additions).
  • LAPI-XXXX.patch: Linux API compatibility and fallback definitions.
  • LIB-XXXX.patch: LTP library and helper function modifications.
  • SYS-XXXX.patch: Specific syscall and controller test fixes.

AOSP-Specific Files and Diffs with Upstream

When comparing the AOSP LTP repository with clean upstream, several differences exist due to Android-specific packaging and platform requirements.

Untracked/Android-Only Files

These files are kept in the AOSP repository but do not exist in the upstream LTP repository:

  1. Android.bp, testcases/Android.bp, gen.bp: Soong build configuration files. gen.bp is auto-generated to compile LTP modules.
  2. android/: Contains Android-specific scripts, tools, skip lists (e.g., skipped-tests.txt), and Docker environment definitions.
  3. METADATA, OWNERS, TEST_MAPPING: AOSP meta-configuration files. TEST_MAPPING defines presubmit/postsubmit tests for VTS.
  4. LICENSE, NOTICE, MODULE_LICENSE_GPL: Compliance and legal notices.
  5. runtest/fcntl-locktests_android, runtest/sched_low_mem: Custom Android-specific test run lists (Runlists) defining exactly which test commands to execute in VTS testing.
  6. m4/ltp-pwritev2.m4, m4/ltp-syncfs.m4: Custom autoconf macros.

Deleted Submodules

Upstream LTP uses git submodules for some external tools. Since AOSP repository does not support git submodules, the following directories are deleted in AOSP:

  • testcases/kernel/mce-test
  • tools/kirk/kirk-src
  • tools/ltx/ltx-src
  • tools/sparse/sparse-src

Purpose

These patches are maintained to allow automated synchronization with upstream releases using go/external-updater while preserving necessary Android-specific modifications.