Home
last modified time | relevance | path

Searched refs:isAtLeastKernelVersion (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/tests/mts/
Dbpf_existence_test.cpp32 using android::bpf::isAtLeastKernelVersion;
194 DO_EXPECT(IsAtLeastR() && !IsAtLeastS() && isAtLeastKernelVersion(4, 9, 0), PLATFORM_ONLY_IN_R); in TEST_F()
197 if (IsAtLeastS()) ASSERT_TRUE(isAtLeastKernelVersion(4, 9, 0)); in TEST_F()
199 DO_EXPECT(IsAtLeastS() && isAtLeastKernelVersion(5, 10, 0), MAINLINE_FOR_S_5_10_PLUS); in TEST_F()
205 DO_EXPECT(IsAtLeastT() && isAtLeastKernelVersion(4, 14, 0), MAINLINE_FOR_T_4_14_PLUS); in TEST_F()
206 DO_EXPECT(IsAtLeastT() && isAtLeastKernelVersion(4, 19, 0), MAINLINE_FOR_T_4_19_PLUS); in TEST_F()
207 DO_EXPECT(IsAtLeastT() && isAtLeastKernelVersion(5, 15, 0), MAINLINE_FOR_T_5_15_PLUS); in TEST_F()
210 if (IsAtLeastU()) ASSERT_TRUE(isAtLeastKernelVersion(4, 14, 0)); in TEST_F()
212 DO_EXPECT(IsAtLeastU() && isAtLeastKernelVersion(5, 10, 0), MAINLINE_FOR_U_5_10_PLUS); in TEST_F()
215 if (IsAtLeastV()) ASSERT_TRUE(isAtLeastKernelVersion(4, 19, 0)); in TEST_F()
[all …]
/packages/modules/Connectivity/netd/
DBpfHandler.cpp80 if (!bpf::isAtLeastKernelVersion(4, 9, 0)) { in initPrograms()
85 if (modules::sdklevel::IsAtLeastU() && !bpf::isAtLeastKernelVersion(4, 14, 0)) { in initPrograms()
112 if (bpf::isAtLeastKernelVersion(4, 14, 0)) { in initPrograms()
131 if (bpf::isAtLeastKernelVersion(5, 4, 0)) { in initPrograms()
138 if (bpf::isAtLeastKernelVersion(5, 10, 0)) { in initPrograms()
144 if (bpf::isAtLeastKernelVersion(4, 19, 0)) { in initPrograms()
169 if (bpf::isAtLeastKernelVersion(5, 4, 0)) { in initPrograms()
174 if (bpf::isAtLeastKernelVersion(5, 10, 0)) { in initPrograms()
270 if (bpf::isAtLeastKernelVersion(4, 14, 0)) { in initMaps()
/packages/modules/Connectivity/netbpfload/
DNetBpfLoad.cpp321 if (isAtLeastT && !isAtLeastKernelVersion(4, 9, 0)) { in doLoad()
327 if (isAtLeastU && !isAtLeastKernelVersion(4, 14, 0)) { in doLoad()
334 if (isAtLeastV && !isAtLeastKernelVersion(4, 19, 0)) { in doLoad()
341 if (isAtLeastV && isKernel32Bit() && isAtLeastKernelVersion(5, 16, 0)) { in doLoad()
361 if (isKernelVersion(maj, min) && !isAtLeastKernelVersion(maj, min, sub)) { \ in doLoad()
380 if (isUserspace32bit() && isAtLeastKernelVersion(6, 2, 0)) { in doLoad()
423 isAtLeastKernelVersion(5, 13, 0)) return 1; in doLoad()
Dloader.cpp569 if (!isAtLeastKernelVersion(4, 14, 0)) return true; in mapMatchesExpectations()
709 if (type == BPF_MAP_TYPE_DEVMAP && !isAtLeastKernelVersion(4, 14, 0)) { in createMaps()
719 if (type == BPF_MAP_TYPE_DEVMAP_HASH && !isAtLeastKernelVersion(5, 4, 0)) { in createMaps()
774 if (isAtLeastKernelVersion(4, 15, 0)) in createMaps()
1018 if (isAtLeastKernelVersion(4, 15, 0)) in loadCodeSections()
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/
DKernelUtils.h45 static inline bool isAtLeastKernelVersion(unsigned major, unsigned minor, unsigned sub) { in isAtLeastKernelVersion() function
50 return isAtLeastKernelVersion(major, minor, 0) && !isAtLeastKernelVersion(major, minor + 1, 0); in isKernelVersion()
DBpfMap.h64 if (isAtLeastKernelVersion(4, 14, 0)) { in abortOnMismatch()
/packages/modules/Connectivity/staticlibs/native/tcutils/tests/
Dtcutils_test.cpp85 const int errNOENT = bpf::isAtLeastKernelVersion(4, 19, 0) ? ENOENT : EINVAL; in TEST()
121 const int errNOENT = bpf::isAtLeastKernelVersion(4, 19, 0) ? ENOENT : EINVAL; in TEST()
/packages/modules/Connectivity/service/jni/
Dcom_android_server_TestNetworkService.cpp77 if (!bpf::isAtLeastKernelVersion(6, 0, 0)) { in createTunTapImpl()
/packages/modules/Connectivity/staticlibs/native/bpf_headers/
DBpfRingbufTest.cpp49 if (!android::bpf::isAtLeastKernelVersion(5, 8, 0)) { in SetUp()
/packages/modules/Connectivity/staticlibs/native/bpfmapjni/
Dcom_android_net_module_util_BpfMap.cpp62 if (bpf::isAtLeastKernelVersion(4, 14, 0)) { in com_android_net_module_util_BpfMap_nativeBpfFdGet()
/packages/modules/Connectivity/tests/native/connectivity_native_test/
Dconnectivity_native_test.cpp50 if (!android::bpf::isAtLeastKernelVersion(5, 4, 0)) in SetUp()
/packages/modules/Connectivity/staticlibs/native/tcutils/
Dtcutils.cpp498 static bool is_pre_5_11_kernel = !bpf::isAtLeastKernelVersion(5, 11, 0); in isEthernet()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp83 if (!android::bpf::isAtLeastKernelVersion(4, 9, 0)) \
177 if (!android::bpf::isAtLeastKernelVersion(major, minor, sub)) \