Searched refs:gTisMapFd (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/libs/cputimeinstate/ |
D | cputimeinstate.cpp | 59 static unique_fd gTisMapFd; variable 131 gTisMapFd = unique_fd{bpf_obj_get(BPF_FS_PATH "map_time_in_state_uid_time_in_state_map")}; in initGlobals() 132 if (gTisMapFd < 0) return false; in initGlobals() 253 if (findMapEntry(gTisMapFd, &key, vals.data())) { in getUidCpuFreqTimes() 305 if (getFirstMapKey(gTisMapFd, &key)) { in getUidsUpdatedCpuFreqTimes() 321 if (findMapEntry(gTisMapFd, &key, vals.data())) return {}; in getUidsUpdatedCpuFreqTimes() 336 } while (prevKey = key, !getNextMapKey(gTisMapFd, &prevKey, &key)); in getUidsUpdatedCpuFreqTimes() 487 if (writeToMapEntry(gTisMapFd, &key, vals.data(), BPF_EXIST) && errno != ENOENT) in clearUidTimes() 489 if (deleteMapEntry(gTisMapFd, &key) && errno != ENOENT) return false; in clearUidTimes()
|