commit | 861f11c9db15c0f5001110ac87fb594002f61b01 | [log] [tgz] |
---|---|---|
author | Motomu Utsumi <motomuman@google.com> | Fri Mar 21 15:29:00 2025 +0900 |
committer | Motomu Utsumi <motomuman@google.com> | Fri Mar 21 15:42:45 2025 +0900 |
tree | ab1ce8806cdecab034c4b0d9a7d6d8a9965f042a | |
parent | 62b1c8836735463e48cd5aed4d4e5f35208bf9ac [diff] |
Skip enabling BTF on kernel older than 5.10 BTF_KIND_VAR and BTF_KIND_DATASEC were introduced in 5.2. It should be possible to enable BTF on 4.18 or above since libbpf can load BTF. Also, current code should work on 5.4 but this is untested. For now, this CL enables BTF on 5.10 or above. Test: boot on 4.9, 4.19, 5.10 Test: adb logcat | grep NetBpfLoad Change-Id: I3da4970464afcf9a76b1f2645ed79c44750bcd6a