Home
last modified time | relevance | path

Searched refs:mCountersFd (Results 1 – 2 of 2) sorted by relevance

/system/extras/tests/icachetest/
DProfiler.cpp56 std::uninitialized_fill(mCountersFd.begin(), mCountersFd.end(), -1); in Profiler()
61 for (int fd : mCountersFd) { in ~Profiler()
70 for (int& fd : mCountersFd) { in resetEvents()
98 mCountersFd[INSTRUCTIONS] = fd; in resetEvents()
105 mCountersFd[CPU_CYCLES] = perf_event_open(&pe, 0, -1, groupFd, 0); in resetEvents()
106 if (mCountersFd[CPU_CYCLES] > 0) { in resetEvents()
115 mCountersFd[DCACHE_REFS] = perf_event_open(&pe, 0, -1, groupFd, 0); in resetEvents()
116 if (mCountersFd[DCACHE_REFS] > 0) { in resetEvents()
125 mCountersFd[DCACHE_MISSES] = perf_event_open(&pe, 0, -1, groupFd, 0); in resetEvents()
126 if (mCountersFd[DCACHE_MISSES] > 0) { in resetEvents()
[all …]
DProfiler.h80 bool isValid() const { return mCountersFd[0] >= 0; } in isValid()
171 int fd = mCountersFd[0]; in reset()
176 int fd = mCountersFd[0]; in start()
181 int fd = mCountersFd[0]; in stop()
187 ssize_t n = read(mCountersFd[0], &counters, sizeof(Counters)); in readCounters()
194 if (mCountersFd[i] >= 0) { in readCounters()
211 return (mCountersFd[BRANCHES] >= 0) && (mCountersFd[BRANCH_MISSES] >= 0); in hasBranchRates()
215 return (mCountersFd[ICACHE_REFS] >= 0) && (mCountersFd[ICACHE_MISSES] >= 0); in hasICacheRates()
223 std::array<int, EVENT_COUNT> mCountersFd; variable