Searched refs:counters (Results 1 - 25 of 44) sorted by relevance

12

/openbsd-current/sys/sys/
H A Dpercpu.h110 * per cpu counters
147 uint64_t *counters; local
149 counters = counters_enter(&ref, cm);
150 counters[c]++;
158 uint64_t *counters; local
160 counters = counters_enter(&ref, cm);
161 counters[c]--;
169 uint64_t *counters; local
171 counters = counters_enter(&ref, cm);
172 counters[
180 uint64_t *counters; local
[all...]
/openbsd-current/sys/kern/
H A Dsubr_percpu.c131 uint64_t *counters; local
139 CPUMEM_FOREACH(counters, &cmi, cm) {
141 counters[i] = 0;
166 uint64_t *gen, *counters, *temp = scratch; local
178 counters = gen + 1;
190 temp[i] = counters[i];
215 uint64_t *counters; local
218 counters = cpumem_first(&cmi, cm);
222 counters[i] = 0;
225 counters[
314 uint64_t *counters; local
329 uint64_t *counters; local
[all...]
H A Duipc_mbuf.c238 uint64_t *counters; local
248 counters = counters_enter(&cr, mbstat);
249 counters[type]++;
271 uint64_t *counters; local
281 counters = counters_enter(&cr, mbstat);
282 counters[type]++;
421 uint64_t *counters; local
428 counters = counters_enter(&cr, mbstat);
429 counters[m->m_type]--;
/openbsd-current/sys/uvm/
H A Duvm_meter.c252 uint64_t counters[exp_ncounters], scratch[exp_ncounters]; local
256 counters_read(uvmexp_counters, counters, exp_ncounters,
259 /* stat counters */
260 uexp->faults = (int)counters[faults];
261 uexp->pageins = (int)counters[pageins];
264 uexp->fltnoram = (int)counters[flt_noram];
265 uexp->fltnoanon = (int)counters[flt_noanon];
266 uexp->fltnoamap = (int)counters[flt_noamap];
267 uexp->fltpgwait = (int)counters[flt_pgwait];
268 uexp->fltpgrele = (int)counters[flt_pgrel
[all...]
/openbsd-current/gnu/gcc/gcc/
H A Dlibgcov.c58 void __gcov_merge_add (gcov_type *counters __attribute__ ((unused)),
63 void __gcov_merge_single (gcov_type *counters __attribute__ ((unused)),
68 void __gcov_merge_delta (gcov_type *counters __attribute__ ((unused)),
606 /* The profile merging function that just adds the counters. It is given
607 an array COUNTERS of N_COUNTERS old counters and it reads the same number
608 of counters from the gcov file. */
610 __gcov_merge_add (gcov_type *counters, unsigned n_counters) argument
612 for (; n_counters; counters++, n_counters--)
613 *counters += gcov_read_counter ();
619 It is given an array COUNTERS of N_COUNTERS old counters an
628 __gcov_merge_single(gcov_type *counters, unsigned n_counters) argument
667 __gcov_merge_delta(gcov_type *counters, unsigned n_counters) argument
702 __gcov_interval_profiler(gcov_type *counters, gcov_type value, int start, unsigned steps) argument
720 __gcov_pow2_profiler(gcov_type *counters, gcov_type value) argument
741 __gcov_one_value_profiler(gcov_type *counters, gcov_type value) argument
[all...]
H A Dvalue-prof.h47 gcov_type *counters; /* Pointer to first counter. */ member in struct:histogram_value_t::__anon355
51 unsigned n_counters; /* Number of required counters. */
H A Dvalue-prof.c154 free (th->hvalue.counters);
297 val = histogram->hvalue.counters[0];
298 count = histogram->hvalue.counters[1];
299 all = histogram->hvalue.counters[2];
464 wrong_values = histogram->hvalue.counters[0];
465 count = histogram->hvalue.counters[1];
650 all += histogram->hvalue.counters[i];
652 wrong_values += histogram->hvalue.counters[i];
653 wrong_values += histogram->hvalue.counters[i+1];
665 count += histogram->hvalue.counters[
[all...]
H A Dcoverage.c55 unsigned n_ctrs[GCOV_COUNTERS];/* number of counters. */
81 static unsigned prg_n_ctrs[GCOV_COUNTERS]; /* Total counters allocated. */
84 static unsigned fn_ctr_mask; /* Mask of counters used. */
103 generating counters at tree level. */
106 /* The names of merge functions for counters. */
276 error ("coverage mismatch for function %u while reading execution counters",
284 error ("coverage mismatch for function %u while reading execution counters",
286 error ("number of counters is %d instead of %d", entry->summary.num, n_counts);
292 error ("cannot merge separate %s counters for function %u",
323 /* Returns the counters fo
589 build_fn_info_type(unsigned int counters) argument
643 tree counters = build_int_cstu (get_gcov_unsigned_t (), local
[all...]
/openbsd-current/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_stoptheworld_test.cpp88 std::atomic_int counters[kThreadCount] = {}; member in struct:__sanitizer::AdvancedCallbackArgument
103 callback_argument.counters[this_thread_index]++;
121 counters_at_init[j] = callback_argument->counters[j];
125 if (callback_argument->counters[j] != counters_at_init[j]) {
H A Dsanitizer_allocator_test.cpp1199 Allocator64::PackedCounterArray counters(64, 1ULL << i, &no_memory_mapper);
1207 // Make sure counters request one memory page for the buffer.
1209 Allocator64::PackedCounterArray counters(
1211 counters.Inc(0);
1213 ASSERT_EQ(0ULL, counters.Get(c));
1214 counters.Inc(c);
1215 ASSERT_EQ(1ULL, counters.Get(c - 1));
1217 ASSERT_EQ(0ULL, counters.Get(kNumCounters - 1));
1218 counters.Inc(kNumCounters - 1);
1221 counters
[all...]
/openbsd-current/sys/netinet6/
H A Dip6_divert.c305 uint64_t counters[div6s_ncounters]; local
310 CTASSERT(sizeof(div6stat) == (nitems(counters) * sizeof(u_long)));
312 counters_read(div6counters, counters, nitems(counters), NULL);
314 for (i = 0; i < nitems(counters); i++)
315 words[i] = (u_long)counters[i];
H A Draw_ip6.c239 uint64_t *counters; local
256 counters = counters_enter(&ref, ip6counters);
257 counters[ip6s_delivered]--;
/openbsd-current/sys/netinet/
H A Dip_divert.c355 uint64_t counters[divs_ncounters]; local
360 CTASSERT(sizeof(divstat) == (nitems(counters) * sizeof(u_long)));
362 counters_read(divcounters, counters, nitems(counters), NULL);
364 for (i = 0; i < nitems(counters); i++)
365 words[i] = (u_long)counters[i];
H A Digmp.c683 uint64_t counters[igps_ncounters]; local
688 CTASSERT(sizeof(igmpstat) == (nitems(counters) * sizeof(u_long)));
690 counters_read(igmpcounters, counters, nitems(counters), NULL);
692 for (i = 0; i < nitems(counters); i++)
693 words[i] = (u_long)counters[i];
H A Draw_ip.c140 uint64_t *counters; local
210 counters = counters_enter(&ref, ipcounters);
211 counters[ips_noproto]++;
212 counters[ips_delivered]--;
H A Dip_icmp.c913 uint64_t counters[icps_ncounters]; local
918 CTASSERT(sizeof(icmpstat) == (nitems(counters) * sizeof(u_long)));
920 counters_read(icmpcounters, counters, nitems(counters), NULL);
922 for (i = 0; i < nitems(counters); i++)
923 words[i] = (u_long)counters[i];
H A Dudp_usrreq.c1327 uint64_t counters[udps_ncounters]; local
1332 CTASSERT(sizeof(udpstat) == (nitems(counters) * sizeof(u_long)));
1334 counters_read(udpcounters, counters, nitems(counters), NULL);
1336 for (i = 0; i < nitems(counters); i++)
1337 words[i] = (u_long)counters[i];
H A Dip_input.c1802 uint64_t counters[ips_ncounters]; local
1807 CTASSERT(sizeof(ipstat) == (nitems(counters) * sizeof(u_long)));
1809 counters_read(ipcounters, counters, nitems(counters), NULL);
1811 for (i = 0; i < nitems(counters); i++)
1812 words[i] = (u_long)counters[i];
/openbsd-current/usr.bin/systat/
H A Dpf.c315 ADD_LINE_VR("counter", pf_reasons[i], s->counters[i],
316 (double)s->counters[i] / (double)tm);
318 ADD_LINE_V("counter", pf_reasons[i], s->counters[i]);
/openbsd-current/sys/net/
H A Dpfkeyv2_convert.c279 * Initialize expirations and counters based on lifetime payload.
984 uint64_t counters[tdb_ncounters]; local
987 counters_read(tdb->tdb_counters, counters, tdb_ncounters, NULL);
992 scnt->sadb_x_counter_ipackets = counters[tdb_ipackets];
993 scnt->sadb_x_counter_opackets = counters[tdb_opackets];
994 scnt->sadb_x_counter_ibytes = counters[tdb_ibytes];
995 scnt->sadb_x_counter_obytes = counters[tdb_obytes];
996 scnt->sadb_x_counter_idrops = counters[tdb_idrops];
997 scnt->sadb_x_counter_odrops = counters[tdb_odrops];
998 scnt->sadb_x_counter_idecompbytes = counters[tdb_idecompbyte
[all...]
H A Dif.c2800 uint64_t counters[ifc_ncounters]; local
2802 counters_read(ifp->if_counters, counters, nitems(counters),
2805 data->ifi_ipackets += counters[ifc_ipackets];
2806 data->ifi_ierrors += counters[ifc_ierrors];
2807 data->ifi_opackets += counters[ifc_opackets];
2808 data->ifi_oerrors += counters[ifc_oerrors];
2809 data->ifi_collisions += counters[ifc_collisions];
2810 data->ifi_ibytes += counters[ifc_ibytes];
2811 data->ifi_obytes += counters[ifc_obyte
[all...]
H A Dif_pflow.c1289 uint64_t counters[pflow_ncounters]; local
1295 counters_read(pflow_counters, counters, pflow_ncounters, NULL);
1297 pflowstats.pflow_flows = counters[pflow_flows];
1298 pflowstats.pflow_packets = counters[pflow_packets];
1299 pflowstats.pflow_onomem = counters[pflow_onomem];
1300 pflowstats.pflow_oerrors = counters[pflow_oerrors];
/openbsd-current/gnu/llvm/compiler-rt/lib/profile/
H A DGCDAProfiling.c395 void llvm_gcda_emit_arcs(uint32_t num_counters, uint64_t *counters) { argument
406 /* There are counters present in the file. Merge them. */
417 "mismatched number of counters (%d)\n",
433 counters[i] += (old_ctrs ? old_ctrs[i] : 0);
434 write_64bit_value(counters[i]);
442 fprintf(stderr, "llvmgcda: %llu\n", (unsigned long long)counters[i]);
458 /* There are counters present in the file. Merge them. */
597 // Just reset the counters for this child process
/openbsd-current/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_primary64.h400 // A packed array of counters. Each counter occupies 2^n bits, enough to store
556 PackedCounterArray counters(allocated_pages_count,
558 if (!counters.IsAllocated())
570 counters.Inc(free_array[i] >> page_size_scaled_log);
574 counters.IncRange(
580 // Iterate over pages detecting ranges of pages with chunk counters equal
585 for (uptr i = 0; i < counters.GetCount(); i++)
586 range_tracker.NextPage(counters.Get(i) == full_pages_chunk_count_max);
600 for (uptr i = 0; i < counters.GetCount(); i++) {
614 range_tracker.NextPage(counters
[all...]
H A Dsanitizer_win.cpp840 PROCESS_MEMORY_COUNTERS counters;
841 if (!GetProcessMemoryInfo(GetCurrentProcess(), &counters, sizeof(counters)))
843 return counters.WorkingSetSize;

Completed in 199 milliseconds

12