Commit Graph

11 Commits

Author SHA1 Message Date
Bob Badour
e3bb741668 [LSC] Add LOCAL_LICENSE_KINDS to development
Added SPDX-license-identifier-Apache-2.0 to:
  apps/OBJViewer/Android.bp
  gki/kmi_abi_chk/kmi_compatibility_test.mk
  samples/HeavyWeight/Android.bp
  samples/MySampleRss/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I95aef6515eddf6e1737d7266f9d159f24ac278aa
2021-12-02 10:48:34 -08:00
Isaac Chen
3e7e4f8816 Merge "Build targets for checking GKI KMI compatibility" 2021-11-23 07:15:22 +00:00
Isaac Chen
a0914f1db4 Build targets for checking GKI KMI compatibility
Current/latest kernel symbol information files default to:
- kernel/prebuilts/5.4/arm64/Module.symvers (for GKI 5.4)
- kernel/prebuilts/5.10/arm64/vmlinux.symvers (for GKI 5.10)

All kernel symbol information files in this CL are manually copied
from AB of corresponding kernel branches.

The history kernel symbol information files in this CL are
sym-5.*/ directories. The ones without build ID suffix are
symbolic links to the latest ones and can be used for
testing the build test of this CL (see Test below).

After *.symvers diles are released to kernel/prebuilts/5.*/arm64
directories on the Android branch, they will be used as the
current/latest kernel symbol files by default.

3 moudules are created in this CL:
  gki_5_4_kmi_compatibility_test (for arm64 GKI 5.4)
  gki_5_10_kmi_compatibility_test (for arm64 GKI 5.10)
  gki_kmi_compatibility_test (for both arm64 GKI 5.4 & 5.10)

Bug: 206064990
Test: $ m gki_kmi_compatibility_test
Change-Id: I2e966070a392cfd6284676c7598138b5cad4717b
2021-11-22 16:46:02 +08:00
Isaac Chen
690d8e6020 Update arm64 GKI 5.4 kernel test module
2 symbols (get_net_ns and prepare_to_wait_exclusive) not supported
by the arm64 GKI KMI, were accidentally included in the related
kernel test module. This change removes those symbols

Bug: 205515339
Test: On a device booted with the recently released arm64 GKI 5.4:
      $ adb shell uname -a
      Linux localhost 5.4.147-android12-9-00038-g7eb444cc279e-ab7855344 #1 SMP PREEMPT Fri Oct 22 01:45:28 UTC 2021 aarch64
      $ atest kmi_comp_test
      ...
      Running Tests...
      arm64-v8a kmi_comp_test
      -----------------------
      kmi_comp_test (1 Test)
      [1/1] kmi_comp_test#kmi_comp_test: PASSED (136ms)
      Summary
      -------
      arm64-v8a kmi_comp_test: Passed: 1, Failed: 0, Ignored: 0, Assumption Failed: 0,
      All tests passed!
Change-Id: I79808936b389d7eae7b400f8d8d09626baa4d9bc
2021-11-08 16:49:36 +08:00
Isaac Chen
1531f41cff Create a test for GKI KMI compatibility
Use the kernel test modules to test GKIs for Android 12
- build 7833008 of Android 12 GKI 5.10	2021-10 release
- build 7855344 of Android 12 GKI 5.4	2021-10 release

Bug: 205495384
Test: Connect any arm64 Android 12 device running GKI 5.4 or 5.10
      $ atest kmi_comp_test
      ...
      Running Tests...
      arm64-v8a kmi_comp_test
      -----------------------
      kmi_comp_test (1 Test)
      [1/1] kmi_comp_test#kmi_comp_test: PASSED (169ms)
      Summary
      -------
      arm64-v8a kmi_comp_test: Passed: 1, Failed: 0, Ignored: 0, Assumption Failed: 0,
      All tests passed!
Change-Id: I7474cecf0ad701080b02ffb5193e4f0fe1d46c02
2021-11-08 12:18:28 +08:00
Isaac Chen
dbd8f14727 Merge "Add kernel test modules for Android 12 GKI 5.4" 2021-11-01 02:41:09 +00:00
Isaac Chen
28ac820d0e Merge "Add test modules for arm64 GKI 5.10 Oct release" 2021-11-01 02:40:23 +00:00
Isaac Chen
405570f206 Add test modules for arm64 GKI 5.10 Oct release
7833008	Android 12 GKI 5.10 (Oct, 2021)

Bug: 201603411
Test: # Set up GKI_DIR and export it.
      $ export GKI_BID=7833008
      $ make ARCH=arm64 CROSS_COMPILE=aarch64 LLVM=1 LLVM_IAS=1 LTO=thin
      $ ls prebuilts
      kmi_sym-a12-5.10-7833008.ko
      # On any arm64 Android 12 device running GKI 5.10
      $ uname -a
      Linux localhost 5.10.43-android12-9-00095-g142d4b0ce255-ab7833008 #1 SMP PREEMPT Fri Oct 15 06:45:00 UTC 2021 aarch64
      $ insmod kmi_sym-a12-5.10-7833008.ko; echo $?
      0
      $ lsmod | grep kmi_sym
      kmi_sym                61440  0
      $ rmmod kmi_sym
      $ dmesg | grep GKI
      [  213.352577] GKI build: 7833008
      [  213.353253] 6037 GKI KMI symbols at 000000009798cabe
      [  246.806967] Cleaning up GKI KMI test.
Change-Id: I5213e2b79ac103bb8819d2f6445b8ca43269a218
2021-10-29 17:21:25 +08:00
Isaac Chen
e92152d1ff Add kernel test modules for Android 12 GKI 5.4
7855344 Android 12 GKI 5.4 Oct, 2021
7732866 Android 12 GKI 5.4 Sep, 2021

Bug: 204516946
Test: # Set up GKI_DIR and export it.
      $ export GKI_BID=7732866
      $ make ARCH=arm64 CROSS_COMPILE=aarch64 LLVM=1 LLVM_IAS=1 LTO=thin
      $ ls prebuilts
      kmi_sym-a12-5.4-7732866.ko
      # On any arm64 Android 12 device running GKI 5.4
      $ insmod /data/local/tmp/kmi_sym-a12-5.4-7732866.ko; echo $?
      0
      $ lsmod | grep kmi
      kmi_sym                53248  0
      $ rmmod kmi_sym
      $ dmesg | grep GKI
      [  122.637127] GKI build: 7732866
      [  122.637391] 4332 GKI KMI symbols at 00000000d17bba78
      [  138.187845] Cleaning up GKI KMI test.
Change-Id: I117cc46d0f0cf5d50e383ed224f3600a055c5f70
2021-10-29 15:02:55 +08:00
Isaac Chen
a60994f0e0 Add kernel test modules for arm64 GKI 5.10
7748709	Android 12 GKI 5.10 m9
7739788	Android 12 GKI 5.10 m8 (r2)
7618735	Android 12 GKI 5.10 m7 (r5)

Bug: 201603411
Test: # Set up GKI_DIR and export it.
      $ export GKI_BID=7748709
      $ make ARCH=arm64 CROSS_COMPILE=aarch64 LLVM=1 LLVM_IAS=1 LTO=thin
      $ ls prebuilts
      kmi_sym-a12-5.10-7748709.ko
Change-Id: Iaf01184de60533940f7b5ae1d1d27d3ded8930cc
2021-09-30 12:23:51 +08:00
Isaac Chen
bc82a1de7e Create an arm64 kernel module to test arm64 KMI
This kernel module uses all the kernel symbols supported by arm64 GKI
build 7618735, the first arm64 GKI release (respin 5) for Android 12.

Bug: 196933449
Test: Load kmi_sym.ko on arm64 GKI on GF successfully. See README for details.
Change-Id: Idf4c9f5dcac128faf4d08bf9cdec780d0dd54ed8
2021-09-03 12:15:01 +08:00