Home
last modified time | relevance | path

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

123456

/openbsd-src/gnu/gcc/gcc/
H A Dlibgcov.c58 void __gcov_merge_add (gcov_type *counters __attribute__ ((unused)), in __gcov_merge_add() argument
63 void __gcov_merge_single (gcov_type *counters __attribute__ ((unused)), in __gcov_merge_single() argument
68 void __gcov_merge_delta (gcov_type *counters __attribute__ ((unused)), in __gcov_merge_delta() argument
610 __gcov_merge_add (gcov_type *counters, unsigned n_counters) in __gcov_merge_add() argument
612 for (; n_counters; counters++, n_counters--) in __gcov_merge_add()
613 *counters += gcov_read_counter (); in __gcov_merge_add()
628 __gcov_merge_single (gcov_type *counters, unsigned n_counters) in __gcov_merge_single() argument
635 for (i = 0; i < n_measures; i++, counters += 3) in __gcov_merge_single()
641 if (counters[0] == value) in __gcov_merge_single()
642 counters[1] += counter; in __gcov_merge_single()
[all …]
H A Dvalue-prof.c154 free (th->hvalue.counters); in tree_value_profile_transformations()
297 val = histogram->hvalue.counters[0]; in tree_divmod_fixed_value_transform()
298 count = histogram->hvalue.counters[1]; in tree_divmod_fixed_value_transform()
299 all = histogram->hvalue.counters[2]; in tree_divmod_fixed_value_transform()
464 wrong_values = histogram->hvalue.counters[0]; in tree_mod_pow2_value_transform()
465 count = histogram->hvalue.counters[1]; in tree_mod_pow2_value_transform()
650 all += histogram->hvalue.counters[i]; in tree_mod_subtract_transform()
652 wrong_values += histogram->hvalue.counters[i]; in tree_mod_subtract_transform()
653 wrong_values += histogram->hvalue.counters[i+1]; in tree_mod_subtract_transform()
665 count += histogram->hvalue.counters[i]; in tree_mod_subtract_transform()
[all …]
H A Dvalue-prof.h47 gcov_type *counters; /* Pointer to first counter. */ member
/openbsd-src/sys/uvm/
H A Duvm_meter.c252 uint64_t counters[exp_ncounters], scratch[exp_ncounters]; in uvmexp_read() local
256 counters_read(uvmexp_counters, counters, exp_ncounters, in uvmexp_read()
259 /* stat counters */ in uvmexp_read()
260 uexp->faults = (int)counters[faults]; in uvmexp_read()
261 uexp->pageins = (int)counters[pageins]; in uvmexp_read()
264 uexp->fltnoram = (int)counters[flt_noram]; in uvmexp_read()
265 uexp->fltnoanon = (int)counters[flt_noanon]; in uvmexp_read()
266 uexp->fltnoamap = (int)counters[flt_noamap]; in uvmexp_read()
267 uexp->fltpgwait = (int)counters[flt_pgwait]; in uvmexp_read()
268 uexp->fltpgrele = (int)counters[flt_pgrel in uvmexp_read()
[all...]
/openbsd-src/sys/sys/
H A Dpercpu.h147 uint64_t *counters; in counters_inc() local
149 counters = counters_enter(&ref, cm); in counters_inc()
150 counters[c]++; in counters_inc()
158 uint64_t *counters; in counters_dec() local
160 counters = counters_enter(&ref, cm); in counters_dec()
161 counters[c]--; in counters_dec()
169 uint64_t *counters; in counters_add() local
171 counters = counters_enter(&ref, cm); in counters_add()
172 counters[c] += v; in counters_add()
180 uint64_t *counters; in counters_pkt() local
[all …]
/openbsd-src/sys/kern/
H A Dsubr_percpu.c131 uint64_t *counters; in counters_alloc() local
139 CPUMEM_FOREACH(counters, &cmi, cm) { in counters_alloc()
141 counters[i] = 0; in counters_alloc()
166 uint64_t *gen, *counters, *temp = scratch; in counters_read() local
178 counters = gen + 1; in counters_read()
190 temp[i] = counters[i]; in counters_read()
215 uint64_t *counters; in counters_zero() local
218 counters = cpumem_first(&cmi, cm); in counters_zero()
222 counters[i] = 0; in counters_zero()
225 counters[i] = 0; in counters_zero()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Target/
H A DTargetPfmCounters.td9 // This file defines the target-independent interfaces for performance counters.
13 // Definition of a hardware counters from libpfm identifiers.
17 // measured value is the sum of events on these counters.
21 // Issue counters can be tied to a ProcResource
43 // A binding of a set of counters to a CPU.
44 class PfmCountersBinding<string cpu_name, ProcPfmCounters counters> {
46 ProcPfmCounters Counters = counters;
50 class PfmCountersDefaultBinding<ProcPfmCounters counters>
51 : PfmCountersBinding<"", counters> {}
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_stoptheworld_test.cpp88 std::atomic_int counters[kThreadCount] = {}; member
103 callback_argument.counters[this_thread_index]++; in AdvancedIncrementerThread()
121 counters_at_init[j] = callback_argument->counters[j]; in AdvancedCallback()
125 if (callback_argument->counters[j] != counters_at_init[j]) { in AdvancedCallback()
H A Dsanitizer_allocator_test.cpp1199 Allocator64::PackedCounterArray counters(64, 1ULL << i, &no_memory_mapper); in TEST() local
1209 Allocator64::PackedCounterArray counters( in TEST() local
1211 counters.Inc(0); in TEST()
1213 ASSERT_EQ(0ULL, counters.Get(c)); in TEST()
1214 counters.Inc(c); in TEST()
1215 ASSERT_EQ(1ULL, counters.Get(c - 1)); in TEST()
1217 ASSERT_EQ(0ULL, counters.Get(kNumCounters - 1)); in TEST()
1218 counters.Inc(kNumCounters - 1); in TEST()
1221 counters.IncRange(0, kNumCounters - 1); in TEST()
1223 ASSERT_EQ(2ULL, counters.Get(c)); in TEST()
/openbsd-src/sys/netinet6/
H A Dip6_divert.c307 uint64_t counters[div6s_ncounters]; in divert6_sysctl_div6stat()
312 CTASSERT(sizeof(div6stat) == (nitems(counters) * sizeof(u_long))); in divert6_sysctl_div6stat()
314 counters_read(div6counters, counters, nitems(counters), NULL); in divert6_sysctl_div6stat()
316 for (i = 0; i < nitems(counters); i++) in divert6_sysctl_div6stat()
317 words[i] = (u_long)counters[i];
302 uint64_t counters[div6s_ncounters]; divert6_sysctl_div6stat() local
/openbsd-src/sys/netinet/
H A Dip_divert.c331 uint64_t counters[divs_ncounters]; in divert_sysctl_divstat()
336 CTASSERT(sizeof(divstat) == (nitems(counters) * sizeof(u_long))); in divert_sysctl_divstat()
338 counters_read(divcounters, counters, nitems(counters), NULL); in divert_sysctl_divstat()
340 for (i = 0; i < nitems(counters); i++) in divert_sysctl_divstat()
341 words[i] = (u_long)counters[i];
326 uint64_t counters[divs_ncounters]; divert_sysctl_divstat() local
H A Digmp.c700 uint64_t counters[igps_ncounters];
705 CTASSERT(sizeof(igmpstat) == (nitems(counters) * sizeof(u_long)));
707 counters_read(igmpcounters, counters, nitems(counters), NULL);
709 for (i = 0; i < nitems(counters); i++)
710 words[i] = (u_long)counters[i];
683 uint64_t counters[igps_ncounters]; igmp_sysctl_igmpstat() local
H A Draw_ip.c211 uint64_t *counters; in rip_input()
219 counters = counters_enter(&ref, ipcounters); in rip_input()
220 counters[ips_noproto]++; in rip_input()
221 counters[ips_delivered]--; in rip_input()
137 uint64_t *counters; rip_input() local
H A Dip_icmp.c922 uint64_t counters[icps_ncounters]; in icmp_sysctl_icmpstat()
927 CTASSERT(sizeof(icmpstat) == (nitems(counters) * sizeof(u_long))); in icmp_sysctl_icmpstat()
929 counters_read(icmpcounters, counters, nitems(counters), NULL);
931 for (i = 0; i < nitems(counters); i++) in icmp_mtudisc_clone()
932 words[i] = (u_long)counters[i]; in icmp_mtudisc_clone()
914 uint64_t counters[icps_ncounters]; icmp_sysctl_icmpstat() local
/openbsd-src/sys/net/
H A Dpfkeyv2_convert.c984 uint64_t counters[tdb_ncounters]; in export_counter() local
987 counters_read(tdb->tdb_counters, counters, tdb_ncounters, NULL); in export_counter()
992 scnt->sadb_x_counter_ipackets = counters[tdb_ipackets]; in export_counter()
993 scnt->sadb_x_counter_opackets = counters[tdb_opackets]; in export_counter()
994 scnt->sadb_x_counter_ibytes = counters[tdb_ibytes]; in export_counter()
995 scnt->sadb_x_counter_obytes = counters[tdb_obytes]; in export_counter()
996 scnt->sadb_x_counter_idrops = counters[tdb_idrops]; in export_counter()
997 scnt->sadb_x_counter_odrops = counters[tdb_odrops]; in export_counter()
998 scnt->sadb_x_counter_idecompbytes = counters[tdb_idecompbytes]; in export_counter()
999 scnt->sadb_x_counter_ouncompbytes = counters[tdb_ouncompbytes]; in export_counter()
H A Dif.c2821 uint64_t counters[ifc_ncounters]; in if_getdata()
2823 counters_read(ifp->if_counters, counters, nitems(counters), in if_getdata()
2826 data->ifi_ipackets += counters[ifc_ipackets]; in if_getdata()
2827 data->ifi_ierrors += counters[ifc_ierrors]; in if_getdata()
2828 data->ifi_opackets += counters[ifc_opackets]; in if_getdata()
2829 data->ifi_oerrors += counters[ifc_oerrors]; in if_getdata()
2830 data->ifi_collisions += counters[ifc_collisions]; in if_getdata()
2831 data->ifi_ibytes += counters[ifc_ibytes];
2832 data->ifi_obytes += counters[ifc_obyte
2800 uint64_t counters[ifc_ncounters]; if_getdata() local
[all...]
/openbsd-src/usr.bin/systat/
H A Dpf.c315 ADD_LINE_VR("counter", pf_reasons[i], s->counters[i], in print_pf()
316 (double)s->counters[i] / (double)tm); in print_pf()
318 ADD_LINE_V("counter", pf_reasons[i], s->counters[i]); in print_pf()
/openbsd-src/gnu/llvm/llvm/docs/
H A DCoverageMappingFormat.rst44 source ranges and the profiling instrumentation counters.
50 profile instrumentation counters), and the source ranges in a file.
69 profile instrumentation counters are associated with a specific function.
72 the profile instrumentation counters for that function.
84 counters`_. They make up the majority of the mapping regions. They are used
102 `coverage mapping counters`_, as the frontend knows that they are never
118 expanded file id. They don't associate with `coverage mapping counters`_,
176 .. _coverage mapping counters:
187 coverage mapping counters or other expressions.
215 The zero counters allow the code coverage tool to display proper line execution
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_primary64.h556 PackedCounterArray counters(allocated_pages_count, in ReleaseFreeMemoryToOS()
558 if (!counters.IsAllocated()) in ReleaseFreeMemoryToOS()
570 counters.Inc(free_array[i] >> page_size_scaled_log); in ReleaseFreeMemoryToOS()
574 counters.IncRange( in ReleaseFreeMemoryToOS()
585 for (uptr i = 0; i < counters.GetCount(); i++) in ReleaseFreeMemoryToOS()
586 range_tracker.NextPage(counters.Get(i) == full_pages_chunk_count_max); in ReleaseFreeMemoryToOS()
600 for (uptr i = 0; i < counters.GetCount(); i++) { in ReleaseFreeMemoryToOS()
614 range_tracker.NextPage(counters.Get(i) == chunks_per_page); in ReleaseFreeMemoryToOS()
/openbsd-src/gnu/llvm/compiler-rt/lib/profile/
H A DGCDAProfiling.c395 void llvm_gcda_emit_arcs(uint32_t num_counters, uint64_t *counters) { in llvm_gcda_emit_arcs() argument
433 counters[i] += (old_ctrs ? old_ctrs[i] : 0); in llvm_gcda_emit_arcs()
434 write_64bit_value(counters[i]); in llvm_gcda_emit_arcs()
442 fprintf(stderr, "llvmgcda: %llu\n", (unsigned long long)counters[i]); in llvm_gcda_emit_arcs()
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsPfmCounters.td9 // This describes the available hardware counters for Mips.
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64PfmCounters.td9 // This describes the available hardware counters for AArch64.
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCPfmCounters.td9 // This describes the available hardware counters for PPC.
/openbsd-src/gnu/llvm/clang/docs/
H A DSanitizerCoverage.rst122 Inline 8bit-counters
127 With ``-fsanitize-coverage=inline-8bit-counters`` the compiler will insert
132 Users need to implement a single function to capture the counters at startup.
138 // [start,end) is the array of 8-bit counters created for the current DSO.
139 // Capture this array in order to read/modify the counters.
175 instrumented PCs. Requires either ``-fsanitize-coverage=inline-8bit-counters``,
189 // of 8-bit counters (-fsanitize-coverage=inline-8bit-counters), or
282 of ``-fsanitize-coverage={trace-pc,inline-8bit-counters,inline-bool}``
/openbsd-src/gnu/llvm/llvm/docs/CommandGuide/
H A Dllvm-profdata.rst173 the ratio of the number of zero counters divided by the total number of
174 counters is above the threshold, the profile of the function will be regarded
235 information about the profile counters for this file and
362 Here c{1|2}_i (i = 1 .. n) are matched counters and c1_u_i (i = 1 .. s) and
363 c2_v_i (i = 1 .. v) are unmatched counters (or counters only existing in)

123456