Home
last modified time | relevance | path

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

12

/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.cpp42 auto out = android::bpf::getUidCpuFreqTimes(uid); in getUidCpuFreqTimeMs()
93 android::bpf::getUidCpuFreqTimes(uid), deltaOutContainerNativePtr); in addDeltaFromBpf()
/frameworks/native/services/gpuservice/gpumem/
DGpuMem.cpp44 bpf::waitForProgsLoaded(); in initialize()
47 int fd = bpf::retrieveProgram(kGpuMemTotalProgPath); in initialize()
70 auto map = bpf::BpfMapRO<uint64_t, uint64_t>(kGpuMemTotalMapPath); in initialize()
81 void GpuMem::setGpuMemTotalMap(bpf::BpfMapRO<uint64_t, uint64_t>& map) { in setGpuMemTotalMap()
/frameworks/base/services/core/jni/
Dcom_android_server_power_stats_CpuPowerStatsCollector.cpp69 if (!android::bpf::startTrackingUidTimes()) { in nativeIsSupportedFeature()
72 auto totalByScalingStep = android::bpf::getTotalCpuFreqTimes(); in nativeIsSupportedFeature()
88 auto totalByScalingStep = android::bpf::getTotalCpuFreqTimes(); in nativeReadCpuStats()
99 auto data = android::bpf::getUidsUpdatedCpuFreqTimes(&newLastUpdate); in nativeReadCpuStats()
Dcom_android_server_am_OomConnection.cpp25 using namespace ::android::bpf::memevents;
/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/gpuMem.o)
/frameworks/native/services/gpuservice/gpumem/include/gpumem/
DGpuMem.h48 void setGpuMemTotalMap(bpf::BpfMapRO<uint64_t, uint64_t>& map);
57 android::bpf::BpfMapRO<uint64_t, uint64_t> mGpuMemTotalMap;
/frameworks/native/services/gpuservice/gpuwork/include/gpuwork/
DGpuWork.h95 bpf::BpfMap<GpuIdUid, UidTrackingInfo> mGpuWorkMap GUARDED_BY(mMutex);
98 bpf::BpfMap<uint32_t, GlobalData> mGpuWorkGlobalDataMap GUARDED_BY(mMutex);
/frameworks/native/services/gpuservice/gpuwork/
DGpuWork.cpp68 bool getBpfMap(const char* mapPath, bpf::BpfMap<Key, Value>* out) { in getBpfMap()
70 auto map = bpf::BpfMap<Key, Value>(mapPath); in getBpfMap()
122 bpf::waitForProgsLoaded(); in initialize()
196 const android::bpf::BpfMap<GpuIdUid, UidTrackingInfo>&) in dump()
229 base::unique_fd fd(bpf::retrieveProgram(programPath)); in attachTracepoint()
296 const android::bpf::BpfMap<GpuIdUid, UidTrackingInfo>&) in pullWorkAtoms()
/frameworks/av/media/libeffects/hapticgenerator/aidl/
DHapticGeneratorContext.cpp124 if (mProcessorsRecord.bpf != nullptr) { in setHgVibratorInformation()
125 mProcessorsRecord.bpf->setCoefficients(::android::audio_effect::haptic_generator::bpfCoefs( in setHgVibratorInformation()
279 auto bpf = ::android::audio_effect::haptic_generator::createBPF( in buildProcessingChain() local
281 mProcessorsRecord.bpf = bpf; in buildProcessingChain()
282 addBiquadFilter(bpf); in buildProcessingChain()
DHapticGeneratorContext.h60 std::shared_ptr<HapticBiquadFilter> bpf; member
/frameworks/native/services/gpuservice/tests/unittests/
DTestableGpuMem.h31 void setGpuMemTotalMap(bpf::BpfMapRO<uint64_t, uint64_t>& map) { in setGpuMemTotalMap()
DGpuMemTest.cpp63 bpf::setrlimitForTest(); in SetUp()
84 bpf::BpfMap<uint64_t, uint64_t> mTestMap;
DGpuMemTracerTest.cpp60 bpf::setrlimitForTest(); in SetUp()
95 bpf::BpfMap<uint64_t, uint64_t> mTestMap;
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp224 auto bpf = createBPF(param->resonantFrequency, param->bpfQ, sampleRate, channelCount); in HapticGenerator_buildProcessingChain() local
225 processorsRecord.bpf = bpf; in HapticGenerator_buildProcessingChain()
226 addBiquadFilter(processingChain, processorsRecord, bpf); in HapticGenerator_buildProcessingChain()
356 if (context->processorsRecord.bpf != nullptr) { in HapticGenerator_SetParameter()
357 context->processorsRecord.bpf->setCoefficients( in HapticGenerator_SetParameter()
DEffectHapticGenerator.h76 std::shared_ptr<HapticBiquadFilter> bpf; member
/frameworks/native/libs/cputimeinstate/fuzz/cputimeinstate_fuzzer/
Dcputimeinstate_fuzzer.cpp25 using namespace android::bpf;
/frameworks/native/services/gpuservice/gpuwork/bpfprogs/
DAndroid.bp19 bpf {
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.h23 namespace bpf {
Dcputimeinstate.cpp48 namespace bpf { namespace
/frameworks/native/services/gpuservice/bpfprogs/
DAndroid.bp24 bpf {
/frameworks/proto_logging/stats/atoms/kernel/
Dkernel_extension_atoms.proto47 // Millisecond uptime timestamp of when the kill was detected by the memevents bpf-program.

12