/system/extras/simpleperf/ |
D | record_lib_test.cpp | 52 std::vector<Counter> counters; in TEST() local 53 ASSERT_TRUE(perf->ReadCounters(&counters)); in TEST() 54 ASSERT_EQ(counters.size(), 3u); in TEST() 55 ASSERT_EQ(counters[0].event, "cpu-cycles"); in TEST() 56 ASSERT_EQ(counters[1].event, "cpu-cycles:u"); in TEST() 57 ASSERT_EQ(counters[2].event, "cpu-cycles:k"); in TEST() 58 for (auto& counter : counters) { in TEST() 78 std::vector<Counter> counters; in TEST() local 79 ASSERT_TRUE(perf->ReadCounters(&counters)); in TEST() 80 ASSERT_EQ(counters.size(), 1u); in TEST() [all …]
|
D | record_lib_interface.cpp | 114 bool ReadCounters(std::vector<Counter>* counters) override; 119 bool ReadRawCounters(std::vector<Counter>* counters); 172 bool PerfEventSetForCounting::ReadRawCounters(std::vector<Counter>* counters) { in ReadRawCounters() argument 179 counters->resize(s.size()); in ReadRawCounters() 185 Counter& sum = (*counters)[i]; in ReadRawCounters() 190 for (CounterInfo& c : info.counters) { in ReadRawCounters() 244 bool PerfEventSetForCounting::ReadCounters(std::vector<Counter>* counters) { in ReadCounters() argument 246 *counters = accumulated_counters_; in ReadCounters() 249 if (!ReadRawCounters(counters)) { in ReadCounters() 253 SubCounter((*counters)[i], last_start_counters_[i]); in ReadCounters() [all …]
|
D | cmd_stat.cpp | 463 void AdjustToIntervalOnlyValues(std::vector<CountersInfo>& counters); 464 bool ShowCounters(const std::vector<CountersInfo>& counters, double duration_in_sec, FILE* fp); 586 std::vector<CountersInfo> counters; in Run() local 606 if (!event_selection_set_.ReadCounters(&counters)) { in Run() 612 AdjustToIntervalOnlyValues(counters); in Run() 614 if (!ShowCounters(counters, duration_in_sec, fp)) { in Run() 793 std::optional<bool> CheckHardwareCountersOnCpu(int cpu, size_t counters) { in CheckHardwareCountersOnCpu() argument 794 if (counters == 0) { in CheckHardwareCountersOnCpu() 807 for (size_t i = 0; i < counters; i++) { in CheckHardwareCountersOnCpu() 848 std::optional<size_t> counters = GetHardwareCountersOnCpu(cpu); in PrintHardwareCounters() local [all …]
|
D | event_selection_set.h | 52 std::vector<CounterInfo> counters; member 168 bool ReadCounters(std::vector<CountersInfo>* counters);
|
D | event_selection_set.cpp | 822 bool EventSelectionSet::ReadCounters(std::vector<CountersInfo>* counters) { in ReadCounters() argument 823 counters->clear(); in ReadCounters() 830 counters_info.counters = selection.hotplugged_counters; in ReadCounters() 836 counters_info.counters.push_back(counter); in ReadCounters() 838 counters->push_back(counters_info); in ReadCounters()
|
D | cmd_stat_test.cpp | 497 info.counters.resize(info.counters.size() + 1); in AddCounter() 498 CounterInfo& counter = info.counters.back(); in AddCounter()
|
D | cmd_stat_impl.h | 195 for (const auto& counter : info.counters) { in AddCountersForOneEventType()
|
D | Android.bp | 478 // It's linked to user's program, to get profile counters and samples for specific code ranges.
|
/system/extras/tests/icachetest/ |
D | Profiler.h | 90 } counters[Profiler::EVENT_COUNT]; variable 97 lhs.counters[i].value -= rhs.counters[i].value; 103 uint64_t getInstructions() const { return counters[INSTRUCTIONS].value; } in getInstructions() 104 uint64_t getCpuCycles() const { return counters[CPU_CYCLES].value; } in getCpuCycles() 105 uint64_t getL1DReferences() const { return counters[DCACHE_REFS].value; } in getL1DReferences() 106 uint64_t getL1DMisses() const { return counters[DCACHE_MISSES].value; } in getL1DMisses() 107 uint64_t getL1IReferences() const { return counters[ICACHE_REFS].value; } in getL1IReferences() 108 uint64_t getL1IMisses() const { return counters[ICACHE_MISSES].value; } in getL1IMisses() 109 uint64_t getBranchInstructions() const { return counters[BRANCHES].value; } in getBranchInstructions() 110 uint64_t getBranchMisses() const { return counters[BRANCH_MISSES].value; } in getBranchMisses() [all …]
|
D | icache_main.cpp | 102 Profiler::Counters counters; in main() local 113 profiler.readCounters(&counters); in main() 116 << counters.getCpuCycles()/double(REPETITIONS) << "\t" in main() 117 << counters.getL1IReferences()/double(REPETITIONS) << "\t" in main() 118 << counters.getMPKI(counters.getL1IMisses()) << "\t" in main()
|
/system/core/trusty/fuzz/ |
D | counters.cpp | 37 __attribute__((section("__libfuzzer_extra_counters"))) volatile uint8_t counters[kMaxNumCounters]; variable 51 assert(end - begin <= sizeof(counters)); in ExtraCounters() 67 memset_explicit(const_cast<uint8_t*>(counters), 0, sizeof(counters)); in Reset() 86 *(counters + i) = *(begin + i); in Flush()
|
D | tipc_fuzzer.cpp | 79 ExtraCounters counters(record.get()); in LLVMFuzzerTestOneInput() local 80 counters.Reset(); in LLVMFuzzerTestOneInput()
|
D | Android.bp | 40 "counters.cpp",
|
/system/unwinding/libunwindstack/benchmarks/ |
D | Utils.cpp | 85 state.counters["AVG_RSS_BYTES"] = total_rss_bytes_ / total_iterations; in SetBenchmarkCounters() 86 state.counters["MAX_RSS_BYTES"] = max_rss_bytes_; in SetBenchmarkCounters() 87 state.counters["MIN_RSS_BYTES"] = min_rss_bytes_; in SetBenchmarkCounters() 89 state.counters["AVG_ALLOCATED_BYTES"] = total_alloc_bytes_ / total_iterations; in SetBenchmarkCounters() 90 state.counters["MAX_ALLOCATED_BYTES"] = max_alloc_bytes_; in SetBenchmarkCounters() 91 state.counters["MIN_ALLOCATED_BYTES"] = min_alloc_bytes_; in SetBenchmarkCounters()
|
/system/core/trusty/utils/coverage-controller/ |
D | controller.cpp | 54 if (complete_cnt != counters[index] && start_cnt == complete_cnt) { in run() 59 counters[index]); in run() 62 counters[index]++; in run() 63 WRITE_ONCE(control->read_buffer_cnt, counters[index]); in run() 65 if(complete_cnt == counters[index] && in run() 125 counters.push_back(0); in setUpShm()
|
D | controller.h | 58 std::vector<uint64_t> counters; variable
|
/system/extras/simpleperf/doc/ |
D | android_platform_profiling.md | 69 these events are mapped to PMU counters on each cpu core. But each core only has a limited number 70 of PMU counters. If number of events > number of PMU counters, then the counters are multiplexed 72 show hardware counters (per core) available on the device. 74 On Pixel devices, the number of PMU counters on each core is usually 7, of which 4 of them are used 75 by the kernel to monitor memory latency. So only 3 counters are available. It's fine to monitor up 76 to 3 PMU events at the same time. To monitor more than 3 events, the `--use-devfreq-counters` option 77 can be used to borrow from the counters used by the kernel.
|
D | executable_commands_reference.md | 8 several hardware counters, counting events like how many cpu cycles have happened, how many 11 The Linux kernel wraps these hardware counters into hardware perf events. In addition, the Linux 20 2. The kernel enables counters while the profiled processes are running. 21 3. After profiling, simpleperf reads counters from the kernel, and reports a counter summary. 26 3. The kernel enables counters while the profiled processes are running. 127 hardware counters available in the PMU, the kernel shares hardware counters between events, so each 148 available CPU PMU hardware counters. That will trigger hardware counter 151 Use --print-hw-counter to show available hardware counters. 158 enough hardware counters to count hardware events at the same time. If not, it prints a warning. 161 available counters on each CPU. Then don't monitor more hardware events than counters available. [all …]
|
/system/netd/server/ |
D | TetherControllerTest.cpp | 414 std::string counters = Join(counterLines, "\n") + "\n"; in TEST_F() local 415 addIptablesRestoreOutput(counters, counters); in TEST_F() 426 counters = Join(counterLines, "\n") + "\n"; in TEST_F() 427 addIptablesRestoreOutput(counters, counters); in TEST_F()
|
/system/core/trusty/apploader/fuzz/ |
D | app_fuzzer.cpp | 96 ExtraCounters counters(&record); in LLVMFuzzerTestOneInput() local 97 counters.Reset(); in LLVMFuzzerTestOneInput()
|
/system/core/trusty/confirmationui/fuzz/ |
D | msg_fuzzer.cpp | 148 ExtraCounters counters(&record); in LLVMFuzzerTestOneInput() local 149 counters.Reset(); in LLVMFuzzerTestOneInput()
|
/system/sepolicy/public/ |
D | rss_hwm_reset.te | 1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
|
/system/extras/simpleperf/include/ |
D | simpleperf.h | 87 virtual bool ReadCounters(std::vector<Counter>* counters);
|
/system/gatekeeper/ |
D | Android.bp | 33 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp",
|
/system/sepolicy/private/ |
D | traced_probes.te | 99 # Allow access to the IHealth and IPowerStats HAL service for tracing battery counters.
|