/external/scudo/standalone/tests/ |
D | release_test.cpp | 39 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/ |
D | release.h | 54 : 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/ |
D | InstrProfilingMerge.c | 76 SrcData->NumCounters != DstData->NumCounters) in __llvm_profile_check_compatibility() 111 NC = SrcData->NumCounters; in __llvm_profile_merge_from_buffer()
|
D | InstrProfilingPlatformOther.c | 46 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()
|
D | InstrProfData.inc | 90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \ 91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
|
/external/mesa3d/src/mesa/main/ |
D | performance_monitor.c | 89 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()
|
D | mtypes.h | 1985 GLuint NumCounters; member
|
/external/llvm/lib/ProfileData/ |
D | InstrProfReader.cpp | 223 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/ |
D | InstrProfReader.cpp | 249 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/ |
D | InstrProfiling.cpp | 346 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()
|
D | PGOInstrumentation.cpp | 346 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/ |
D | st_cb_perfmon.c | 92 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/ |
D | InstrProfiling.cpp | 720 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()
|
D | PGOInstrumentation.cpp | 566 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()
|
D | GCOVProfiling.cpp | 1068 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/ |
D | FuzzerLoop.cpp | 70 size_t NumCounters = EF->__sanitizer_get_number_of_counters(); in Prepare() local 71 C->CounterBitmap.resize(NumCounters); in Prepare()
|
/external/llvm/include/llvm/ProfileData/ |
D | InstrProfData.inc | 90 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/ |
D | InstrProfData.inc | 90 INSTR_PROF_DATA(const uint32_t, llvm::Type::getInt32Ty(Ctx), NumCounters, \ 91 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
|