Searched refs:gTisMapFd (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/libs/cputimeinstate/ |
D | cputimeinstate.cpp | 61 static unique_fd gTisMapFd; variable 149 gTisMapFd = unique_fd{bpf_obj_get(BPF_FS_PATH "map_timeInState_uid_time_in_state_map")}; in initGlobals() 150 if (gTisMapFd < 0) return false; in initGlobals() 317 if (findMapEntry(gTisMapFd, &key, vals.data())) { in getUidCpuFreqTimes() 319 if (errno != ENOENT || getFirstMapKey(gTisMapFd, &tmpKey)) return {}; in getUidCpuFreqTimes() 371 if (getFirstMapKey(gTisMapFd, &key)) { in getUidsUpdatedCpuFreqTimes() 387 if (findMapEntry(gTisMapFd, &key, vals.data())) return {}; in getUidsUpdatedCpuFreqTimes() 403 } while (prevKey = key, !getNextMapKey(gTisMapFd, &prevKey, &key)); in getUidsUpdatedCpuFreqTimes() 556 if (writeToMapEntry(gTisMapFd, &key, vals.data(), BPF_EXIST) && errno != ENOENT) in clearUidTimes() 558 if (deleteMapEntry(gTisMapFd, &key) && errno != ENOENT) return false; in clearUidTimes() [all …]
|