Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 25 of 67) sorted by relevance

123

/aosp12/system/extras/simpleperf/
H A Drecord_lib_test.cpp50 std::vector<Counter> counters; in TEST() local
52 ASSERT_EQ(counters.size(), 3u); in TEST()
56 for (auto& counter : counters) { in TEST()
75 std::vector<Counter> counters; in TEST() local
82 ASSERT_LE(counters[0].time_running_in_ns, counters[0].time_enabled_in_ns); in TEST()
109 ASSERT_LE(counters[0].time_running_in_ns, counters[0].time_enabled_in_ns); in TEST()
115 prev_counter = counters[0]; in TEST()
128 std::vector<Counter> counters; in TEST() local
130 ASSERT_EQ(counters.size(), 1u); in TEST()
135 ASSERT_LE(counters[0].time_running_in_ns, counters[0].time_enabled_in_ns); in TEST()
[all …]
H A Drecord_lib_interface.cpp114 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 …]
H A Dcmd_stat.cpp563 std::vector<CountersInfo> counters; in Run() local
583 if (!event_selection_set_.ReadCounters(&counters)) { in Run()
589 AdjustToIntervalOnlyValues(counters); in Run()
591 if (!ShowCounters(counters, duration_in_sec, fp)) { in Run()
783 if (last_sum_values_.size() < counters.size()) { in AdjustToIntervalOnlyValues()
784 last_sum_values_.resize(counters.size()); in AdjustToIntervalOnlyValues()
786 for (size_t i = 0; i < counters.size(); i++) { in AdjustToIntervalOnlyValues()
787 std::vector<CounterInfo>& counters_per_event = counters[i].counters; in AdjustToIntervalOnlyValues()
813 for (auto& counters_info : counters) { in ShowCounters()
814 for (auto& counter_info : counters_info.counters) { in ShowCounters()
[all …]
/aosp12/system/extras/tests/icachetest/
H A DProfiler.h90 } counters[Profiler::EVENT_COUNT]; variable
97 lhs.counters[i].value -= rhs.counters[i].value;
104 uint64_t getCpuCycles() const { return counters[CPU_CYCLES].value; } in getCpuCycles()
109 uint64_t getBranchInstructions() const { return counters[BRANCHES].value; } in getBranchInstructions()
186 Counters counters; in readCounters() local
187 ssize_t n = read(mCountersFd[0], &counters, sizeof(Counters)); in readCounters()
190 outCounters->nr = counters.nr; in readCounters()
191 outCounters->time_enabled = counters.time_enabled; in readCounters()
192 outCounters->time_running = counters.time_running; in readCounters()
195 outCounters->counters[i] = counters.counters[mIds[i]]; in readCounters()
[all …]
H A Dicache_main.cpp102 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()
/aosp12/bionic/tests/
H A Dlink_test.cpp94 Counters& counters = *static_cast<Counters*>(data); in TEST() local
96 if (!counters.inited) { in TEST()
97 counters.inited = true; in TEST()
98 counters.adds = info->dlpi_adds; in TEST()
99 counters.subs = info->dlpi_subs; in TEST()
102 EXPECT_EQ(counters.adds, info->dlpi_adds); in TEST()
103 EXPECT_EQ(counters.subs, info->dlpi_subs); in TEST()
108 Counters counters {}; in TEST() local
109 EXPECT_EQ(0, dl_iterate_phdr(callback, &counters)); in TEST()
110 EXPECT_TRUE(counters.inited); in TEST()
[all …]
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dentry_counters.h32 explicit EntryCounts(const std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> &counters) in EntryCounts() argument
33 : mEntryCounts(counters) {} in EntryCounts()
58 const std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> &counters) in MutableEntryCounters()
59 : mEntryCounters(counters) {} in MutableEntryCounters()
/aosp12/system/extras/simpleperf/doc/
H A Dandroid_platform_profiling.md74 these events are mapped to PMU counters on each cpu core. But each core only has a limited number
75 of PMU counters. If number of events > number of PMU counters, then the counters are multiplexed
78 On Pixel devices, the number of PMU counters on each core is usually 7, of which 4 of them are used
79 by the kernel to monitor memory latency. So only 3 counters are available. It's fine to monitor up
80 to 3 PMU events at the same time. To monitor more than 3 events, the `--use-devfreq-counters` option
81 can be used to borrow from the counters used by the kernel.
/aosp12/system/core/trusty/fuzz/
H A Dcounters.cpp37 __attribute__((section("__libfuzzer_extra_counters"))) volatile uint8_t counters[kMaxNumCounters]; variable
54 assert(end - begin <= sizeof(counters)); in ExtraCounters()
90 *(counters + i) = *(begin + i); in Flush()
H A Dtipc_fuzzer.cpp79 ExtraCounters counters(record.get()); in LLVMFuzzerTestOneInput() local
80 counters.Reset(); in LLVMFuzzerTestOneInput()
/aosp12/system/netd/server/
H A DTetherControllerTest.cpp414 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()
/aosp12/frameworks/base/core/java/android/net/metrics/
H A DWakeupStats.java130 private static void increment(SparseIntArray counters, int key) { in increment() argument
131 int newcount = counters.get(key, 0) + 1; in increment()
132 counters.put(key, newcount); in increment()
/aosp12/bionic/libc/kernel/uapi/linux/netfilter_arp/
H A Darp_tables.h74 struct xt_counters counters; member
101 struct xt_counters __user * counters; member
/aosp12/bionic/libc/kernel/uapi/linux/netfilter_ipv4/
H A Dip_tables.h81 struct xt_counters counters; member
115 struct xt_counters __user * counters; member
/aosp12/system/core/trusty/apploader/fuzz/
H A Dapp_fuzzer.cpp100 ExtraCounters counters(&record); in LLVMFuzzerTestOneInput() local
101 counters.Reset(); in LLVMFuzzerTestOneInput()
/aosp12/system/unwinding/libunwindstack/benchmarks/
H A DElfBenchmark.cpp66 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkElfCreate()
68 state.counters["ALLOCATED_BYTES"] = alloc_bytes / static_cast<double>(state.iterations()); in BenchmarkElfCreate()
H A DSymbolBenchmark.cpp79 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkSymbolLookup()
81 state.counters["ALLOCATED_BYTES"] = alloc_bytes / static_cast<double>(state.iterations()); in BenchmarkSymbolLookup()
/aosp12/bionic/libc/kernel/uapi/linux/netfilter_ipv6/
H A Dip6_tables.h83 struct xt_counters counters; member
135 struct xt_counters __user * counters; member
/aosp12/system/core/trusty/confirmationui/fuzz/
H A Dmsg_fuzzer.cpp148 ExtraCounters counters(&record); in LLVMFuzzerTestOneInput() local
149 counters.Reset(); in LLVMFuzzerTestOneInput()
/aosp12/bionic/libc/kernel/uapi/linux/netfilter_bridge/
H A Debtables.h47 struct ebt_counter __user * counters; member
57 struct ebt_counter * counters; member
/aosp12/system/sepolicy/prebuilts/api/30.0/public/
H A Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/aosp12/system/sepolicy/prebuilts/api/29.0/public/
H A Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/aosp12/system/sepolicy/prebuilts/api/31.0/public/
H A Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/aosp12/system/sepolicy/prebuilts/api/32.0/public/
H A Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.
/aosp12/system/sepolicy/public/
H A Drss_hwm_reset.te1 # rss_hwm_reset resets RSS high-water mark counters for all procesess.

123