Home
last modified time | relevance | path

Searched refs:bpf (Results 1 – 21 of 21) sorted by relevance

/frameworks/libs/net/common/native/bpf_syscall_wrappers/include/
DBpfSyscallWrappers.h34 namespace bpf {
41 inline int bpf(int cmd, const bpf_attr& attr) { in bpf() function
47 return bpf(BPF_MAP_CREATE, { in createMap()
58 return bpf(BPF_MAP_UPDATE_ELEM, { in writeToMapEntry()
67 return bpf(BPF_MAP_LOOKUP_ELEM, { in findMapEntry()
75 return bpf(BPF_MAP_DELETE_ELEM, { in deleteMapEntry()
82 return bpf(BPF_MAP_GET_NEXT_KEY, { in getNextMapKey()
94 return bpf(BPF_OBJ_PIN, { in bpfFdPin()
101 return bpf(BPF_OBJ_GET, { in bpfFdGet()
129 return bpf(BPF_PROG_ATTACH, { in attachProgram()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_KernelCpuBpfTracking.cpp24 return android::bpf::isTrackingUidTimesSupported() ? JNI_TRUE : JNI_FALSE; in KernelCpuBpfTracking_isSupported()
28 return android::bpf::startTrackingUidTimes(); in KernelCpuBpfTracking_startTrackingInternal()
32 auto freqs = android::bpf::getCpuFreqs(); in KernelCpuBpfTracking_getFreqsInternal()
47 auto freqs = android::bpf::getCpuFreqs(); in KernelCpuBpfTracking_getFreqsClustersInternal()
Dcom_android_internal_os_KernelCpuUidBpfMapReader.cpp59 if (!android::bpf::clearUidTimes(uid)) return false; in KernelCpuUidFreqTimeBpfMapReader_removeUidRange()
69 auto data = android::bpf::getUidsUpdatedCpuFreqTimes(&newLastUpdate); in KernelCpuUidFreqTimeBpfMapReader_readBpfData()
95 auto data = android::bpf::getUidsUpdatedConcurrentTimes(&newLastUpdate); in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
128 auto data = android::bpf::getUidsUpdatedConcurrentTimes(&newLastUpdate); in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
145 auto times = android::bpf::getUidConcurrentTimes(0); in KernelCpuUidClusterTimeBpfMapReader_getDataDimensions()
Dcom_android_internal_os_KernelSingleProcessCpuThreadReader.cpp72 std::optional<std::vector<std::vector<uint32_t>>> cpuFreqs = android::bpf::getCpuFreqs(); in getCpuFrequencyCount()
87 return android::bpf::startTrackingProcessCpuTimes(tgid); in startTrackingProcessCpuTimes()
91 return android::bpf::startAggregatingTaskCpuTimes(pid, aggregationKey); in startAggregatingTaskCpuTimes()
96 return android::bpf::getAggregatedTaskCpuFreqTimes(pid, aggregationKeys); in getAggregatedTaskCpuFreqTimes()
Dcom_android_internal_os_KernelCpuTotalBpfMapReader.cpp24 auto freqTimes = android::bpf::getTotalCpuFreqTimes(); in KernelCpuTotalBpfMapReader_readInternal()
Dcom_android_internal_os_KernelSingleUidTimeReader.cpp40 auto out = android::bpf::getUidCpuFreqTimes(uid); in getUidCpuFreqTimeMs()
/frameworks/native/services/gpuservice/gpumem/
DGpuMem.cpp44 bpf::waitForProgsLoaded(); in initialize()
47 int fd = bpf::retrieveProgram(kGpuMemTotalProgPath); in initialize()
69 auto map = bpf::BpfMapRO<uint64_t, uint64_t>(kGpuMemTotalMapPath); in initialize()
80 void GpuMem::setGpuMemTotalMap(bpf::BpfMap<uint64_t, uint64_t>& map) { in setGpuMemTotalMap()
/frameworks/native/services/gpuservice/gpumem/include/gpumem/
DGpuMem.h47 void setGpuMemTotalMap(bpf::BpfMap<uint64_t, uint64_t>& map);
52 android::bpf::BpfMap<uint64_t, uint64_t> mGpuMemTotalMap;
/frameworks/native/services/gpuservice/
DCleanSpec.mk48 …l add-clean-step, rm -rf $(OUT_DIR)/soong/.intermediates/frameworks/native/services/gpuservice/bpf)
51 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/bpf/gpu_mem.o)
/frameworks/native/services/gpuservice/tests/unittests/
DGpuMemTest.cpp62 bpf::setrlimitForTest(); in SetUp()
68 mTestMap = bpf::BpfMap<uint64_t, uint64_t>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, in SetUp()
85 bpf::BpfMap<uint64_t, uint64_t> mTestMap;
DGpuMemTracerTest.cpp59 bpf::setrlimitForTest(); in SetUp()
67 mTestMap = bpf::BpfMap<uint64_t, uint64_t>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, in SetUp()
96 bpf::BpfMap<uint64_t, uint64_t> mTestMap;
DTestableGpuMem.h31 void setGpuMemTotalMap(bpf::BpfMap<uint64_t, uint64_t>& map) { in setGpuMemTotalMap()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp180 auto bpf = createBPF(param->resonantFrequency, param->bpfQ, sampleRate, channelCount); in HapticGenerator_buildProcessingChain() local
181 processorsRecord.bpf = bpf; in HapticGenerator_buildProcessingChain()
182 addBiquadFilter(processingChain, processorsRecord, bpf); in HapticGenerator_buildProcessingChain()
300 if (context->processorsRecord.bpf != nullptr) { in HapticGenerator_SetParameter()
301 context->processorsRecord.bpf->setCoefficients( in HapticGenerator_SetParameter()
DEffectHapticGenerator.h75 std::shared_ptr<HapticBiquadFilter> bpf; member
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsService.cpp36 using android::bpf::bpfGetUidStats;
37 using android::bpf::bpfGetIfaceStats;
Dcom_android_server_net_NetworkStatsFactory.cpp39 using android::bpf::parseBpfNetworkStatsDetail;
40 using android::bpf::stats_line;
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.h23 namespace bpf {
Dcputimeinstate.cpp48 namespace bpf { namespace
Dtesttimeinstate.cpp36 namespace bpf { namespace
/frameworks/libs/net/common/native/bpf_syscall_wrappers/
DAndroid.bp37 "//system/bpf/libbpf_android",
/frameworks/native/services/gpuservice/bpfprogs/
DAndroid.bp24 bpf {