Home
last modified time | relevance | path

Searched refs:NumCounters (Results 1 – 18 of 18) sorted by relevance

/external/scudo/standalone/tests/
Drelease_test.cpp39 const scudo::uptr NumCounters = in TEST() local
41 scudo::PackedCounterArray Counters(1U, NumCounters, 1UL << ((1UL << I) - 1)); in TEST()
43 for (scudo::uptr C = 1; C < NumCounters - 1; C++) { in TEST()
48 EXPECT_EQ(0UL, Counters.get(0U, NumCounters - 1)); in TEST()
49 Counters.inc(0U, NumCounters - 1); in TEST()
51 Counters.incRange(0U, 0U, NumCounters - 1); in TEST()
52 for (scudo::uptr C = 0; C < NumCounters; C++) in TEST()
/external/scudo/standalone/
Drelease.h54 : Regions(NumberOfRegions), NumCounters(CountersPerRegion) { in PackedCounterArray()
56 CHECK_GT(NumCounters, 0); in PackedCounterArray()
73 roundUpTo(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in PackedCounterArray()
97 uptr getCount() const { return NumCounters; } in getCount()
101 DCHECK_LT(I, NumCounters); in get()
118 const uptr Top = Min(To + 1, NumCounters); in incRange()
129 const uptr NumCounters; variable
/external/compiler-rt/lib/profile/
DInstrProfilingMerge.c76 SrcData->NumCounters != DstData->NumCounters) in __llvm_profile_check_compatibility()
111 NC = SrcData->NumCounters; in __llvm_profile_merge_from_buffer()
DInstrProfilingPlatformOther.c46 CountersLast = (uint64_t *)Data->CounterPtr + Data->NumCounters; in __llvm_profile_register_function()
55 CountersLast, (uint64_t *)Data->CounterPtr + Data->NumCounters); in __llvm_profile_register_function()
DInstrProfData.inc90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \
91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
/external/mesa3d/src/mesa/main/
Dperformance_monitor.c89 BITSET_WORDS(g->NumCounters)); in new_performance_monitor()
141 if (id >= group_obj->NumCounters) in get_counter()
190 *numCounters = group_obj->NumCounters; in _mesa_GetPerfMonitorCountersAMD()
194 unsigned n = MIN2(group_obj->NumCounters, (GLuint) countersSize); in _mesa_GetPerfMonitorCountersAMD()
467 if (counterList[i] >= group_obj->NumCounters) { in _mesa_SelectPerfMonitorCountersAMD()
566 BITSET_FOREACH_SET(counter, m->ActiveCounters[group], g->NumCounters) { in perf_monitor_result_size()
Dmtypes.h1985 GLuint NumCounters; member
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp223 uint64_t NumCounters; in readNextRecord() local
226 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord()
228 if (NumCounters == 0) in readNextRecord()
233 Record.Counts.reserve(NumCounters); in readNextRecord()
234 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord()
371 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local
373 if (NumCounters == 0) in readRawCounts()
376 auto RawCounts = makeArrayRef(getCounter(CounterPtr), NumCounters); in readRawCounts()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/
DInstrProfReader.cpp249 uint64_t NumCounters; in readNextRecord() local
252 if ((Line++)->getAsInteger(10, NumCounters)) in readNextRecord()
254 if (NumCounters == 0) in readNextRecord()
259 Record.Counts.reserve(NumCounters); in readNextRecord()
260 for (uint64_t I = 0; I < NumCounters; ++I) { in readNextRecord()
393 uint32_t NumCounters = swap(Data->NumCounters); in readRawCounts() local
395 if (NumCounters == 0) in readRawCounts()
398 auto RawCounts = makeArrayRef(getCounter(CounterPtr), NumCounters); in readRawCounts()
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp346 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in getOrCreateRegionCounters() local
348 ArrayType *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in getOrCreateRegionCounters()
449 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local
458 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes()
459 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes()
468 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
DPGOInstrumentation.cpp346 unsigned NumCounters = 0; in instrumentOneFunc() local
350 NumCounters++; in instrumentOneFunc()
366 Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters), in instrumentOneFunc()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_perfmon.c92 BITSET_FOREACH_SET(cid, m->ActiveCounters[gid], g->NumCounters) { in init_perf_monitor()
391 struct gl_perf_monitor_counter *c = &counters[g->NumCounters]; in st_InitPerfMonitorGroups()
392 struct st_perf_monitor_counter *stc = &stcounters[g->NumCounters]; in st_InitPerfMonitorGroups()
434 g->NumCounters++; in st_InitPerfMonitorGroups()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp720 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in getOrCreateRegionCounters() local
722 ArrayType *CounterTy = ArrayType::get(Type::getInt64Ty(Ctx), NumCounters); in getOrCreateRegionCounters()
824 uint64_t NumCounters = TotalNS * NumCountersPerValueSite; in emitVNodes() local
833 if (NumCounters < INSTR_PROF_MIN_VAL_COUNTS) in emitVNodes()
834 NumCounters = std::max(INSTR_PROF_MIN_VAL_COUNTS, (int)NumCounters * 2); in emitVNodes()
843 ArrayType *VNodesTy = ArrayType::get(VNodeTy, NumCounters); in emitVNodes()
DPGOInstrumentation.cpp566 unsigned NumCounters = 0; in getNumCounters() local
569 NumCounters++; in getNumCounters()
571 return NumCounters + SIVisitor.getNumOfSelectInsts(); in getNumCounters()
725 unsigned NumCounters = FuncInfo.getNumCounters(); in instrumentOneFunc() local
740 Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters), in instrumentOneFunc()
745 FuncInfo.SIVisitor.instrumentSelects(F, &I, NumCounters, FuncInfo.FuncNameVar, in instrumentOneFunc()
747 assert(I == NumCounters); in instrumentOneFunc()
773 F, NumCounters, FuncInfo.FuncNameVar, FuncInfo.FunctionHash); in instrumentOneFunc()
DGCOVProfiling.cpp1068 auto *NumCounters = in insertCounterWriteout() local
1075 Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters); in insertCounterWriteout()
1106 auto *CounterLoopCond = Builder.CreateICmpSLT(NextJV, NumCounters); in insertCounterWriteout()
/external/llvm/lib/Fuzzer/
DFuzzerLoop.cpp70 size_t NumCounters = EF->__sanitizer_get_number_of_counters(); in Prepare() local
71 C->CounterBitmap.resize(NumCounters); in Prepare()
/external/llvm/include/llvm/ProfileData/
DInstrProfData.inc90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \
91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DInstrProfData.inc90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \
91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))