Home
last modified time | relevance | path

Searched refs:counts (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/openbmc/linux/tools/perf/util/
H A Dcounts.c12 struct perf_counts *counts = zalloc(sizeof(*counts)); in perf_counts__new() local
14 if (counts) { in perf_counts__new()
19 free(counts); in perf_counts__new()
23 counts->values = values; in perf_counts__new()
27 xyarray__delete(counts->values); in perf_counts__new()
28 free(counts); in perf_counts__new()
32 counts->loaded = values; in perf_counts__new()
35 return counts; in perf_counts__new()
38 void perf_counts__delete(struct perf_counts *counts) in perf_counts__delete() argument
40 if (counts) { in perf_counts__delete()
[all …]
H A Dcounts.h20 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts() argument
22 return xyarray__entry(counts->values, cpu_map_idx, thread); in perf_counts()
26 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts__is_loaded() argument
28 return *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)); in perf_counts__is_loaded()
32 perf_counts__set_loaded(struct perf_counts *counts, int cpu_map_idx, int thread, bool loaded) in perf_counts__set_loaded() argument
34 *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)) = loaded; in perf_counts__set_loaded()
38 void perf_counts__delete(struct perf_counts *counts);
39 void perf_counts__reset(struct perf_counts *counts);
H A Dstat.c158 struct perf_counts *counts; in evsel__alloc_prev_raw_counts() local
160 counts = perf_counts__new(cpu_map_nr, nthreads); in evsel__alloc_prev_raw_counts()
161 if (counts) in evsel__alloc_prev_raw_counts()
162 evsel->prev_raw_counts = counts; in evsel__alloc_prev_raw_counts()
164 return counts ? 0 : -ENOMEM; in evsel__alloc_prev_raw_counts()
253 *perf_counts(evsel->counts, idx, thread) = in evsel__copy_prev_raw_counts()
275 *ps->aggr[0].counts.values = avg_stats(&ps->res_stats); in evsel__copy_res_stats()
371 if (evsel->err || evsel->counts->scaled == -1) in evsel__count_has_error()
407 struct perf_counts_values *aggr_counts = &ps->aggr[thread].counts; in process_counter_values()
443 ps_aggr->counts.val = 0; in process_counter_values()
[all …]
H A Dbpf_counter.c233 struct perf_counts_values *counts; in bpf_program_profiler__read() local
242 counts = perf_counts(evsel->counts, idx, 0); in bpf_program_profiler__read()
243 counts->val = 0; in bpf_program_profiler__read()
244 counts->ena = 0; in bpf_program_profiler__read()
245 counts->run = 0; in bpf_program_profiler__read()
264 counts = perf_counts(evsel->counts, idx, 0); in bpf_program_profiler__read()
265 counts->val += values[bpf_cpu].counter; in bpf_program_profiler__read()
266 counts->ena += values[bpf_cpu].enabled; in bpf_program_profiler__read()
267 counts->run += values[bpf_cpu].running; in bpf_program_profiler__read()
615 struct perf_counts_values *counts; in bperf__read() local
[all …]
/openbmc/linux/tools/lib/perf/tests/
H A Dtest-evsel.c40 struct perf_counts_values counts = { .val = 0 }; in test_stat_cpu() local
42 perf_evsel__read(evsel, idx, 0, &counts); in test_stat_cpu()
43 __T("failed to read value for evsel", counts.val != 0); in test_stat_cpu()
55 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread() local
75 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread()
76 __T("failed to read value for evsel", counts.val != 0); in test_stat_thread()
87 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread_enable() local
108 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable()
109 __T("failed to read value for evsel", counts.val == 0); in test_stat_thread_enable()
114 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable()
[all …]
H A Dtest-evlist.c78 struct perf_counts_values counts = { .val = 0 }; in test_stat_cpu() local
80 perf_evsel__read(evsel, idx, 0, &counts); in test_stat_cpu()
81 __T("failed to read value for evsel", counts.val != 0); in test_stat_cpu()
94 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread() local
136 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread()
137 __T("failed to read value for evsel", counts.val != 0); in test_stat_thread()
149 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread_enable() local
193 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable()
194 __T("failed to read value for evsel", counts.val == 0); in test_stat_thread_enable()
200 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable()
[all …]
/openbmc/qemu/tests/bench/
H A Datomic_add-bench.c20 static struct count *counts; variable
68 qemu_mutex_lock(&counts[index].lock); in thread_func()
69 counts[index].val += 1; in thread_func()
70 qemu_mutex_unlock(&counts[index].lock); in thread_func()
72 qatomic_inc(&counts[index].val); in thread_func()
101 counts = qemu_memalign(64, sizeof(*counts) * range); in create_threads()
102 memset(counts, 0, sizeof(*counts) * range); in create_threads()
104 qemu_mutex_init(&counts[i].lock); in create_threads()
131 val += counts[i].val; in pr_stats()
/openbmc/qemu/contrib/plugins/
H A Dhwprofile.c34 IOCounts counts; member
110 GList *counts; in plugin_exit() local
123 counts = g_hash_table_get_values(devices); in plugin_exit()
124 if (counts && g_list_next(counts)) { in plugin_exit()
127 it = g_list_sort(counts, sort_cmp); in plugin_exit()
141 fmt_iocount_record(report, &loc->counts); in plugin_exit()
206 DeviceCounts *counts; in vcpu_haddr() local
209 counts = (DeviceCounts *) g_hash_table_lookup(devices, name); in vcpu_haddr()
211 if (!counts) { in vcpu_haddr()
213 counts = new_count(name, base); in vcpu_haddr()
[all …]
H A Dhowvec.c180 GList *counts; in plugin_exit() local
208 counts = g_hash_table_get_values(insns); in plugin_exit()
209 if (counts && g_list_next(counts)) { in plugin_exit()
211 counts = g_list_sort(counts, cmp_exec_count); in plugin_exit()
213 for (i = 0; i < limit && g_list_next(counts); in plugin_exit()
214 i++, counts = g_list_next(counts)) { in plugin_exit()
215 InsnExecCount *rec = (InsnExecCount *) counts->data; in plugin_exit()
225 g_list_free(counts); in plugin_exit()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dmsi.c223 struct msi_counts *counts = data; in count_non_bridge_devices() local
233 counts->num_devices++; in count_non_bridge_devices()
240 struct msi_counts *counts = data; in count_spare_msis() local
244 if (dn == counts->requestor) in count_spare_msis()
245 req = counts->request; in count_spare_msis()
259 if (req < counts->quota) in count_spare_msis()
260 counts->spare += counts->quota - req; in count_spare_msis()
261 else if (req > counts->quota) in count_spare_msis()
262 counts->over_quota++; in count_spare_msis()
270 struct msi_counts counts; in msi_quota_for_device() local
[all …]
/openbmc/linux/samples/bpf/
H A Dsampleip_user.c82 struct ipcount counts[MAX_IPS]; variable
102 counts[i].ip = next_key; in print_ip_map()
103 counts[i++].count = value; in print_ip_map()
109 qsort(counts, max, sizeof(struct ipcount), count_cmp); in print_ip_map()
111 if (counts[i].ip > _text_addr) { in print_ip_map()
112 sym = ksym_search(counts[i].ip); in print_ip_map()
118 printf("0x%-17llx %-32s %u\n", counts[i].ip, sym->name, in print_ip_map()
119 counts[i].count); in print_ip_map()
121 printf("0x%-17llx %-32s %u\n", counts[i].ip, "(user)", in print_ip_map()
122 counts[i].count); in print_ip_map()
/openbmc/linux/drivers/md/
H A Dmd-bitmap.c951 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_set_bit()
982 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_clear_bit()
1012 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_test_bit()
1113 unsigned long chunks = bitmap->counts.chunks; in md_bitmap_init_from_disk()
1127 int needed = ((sector_t)(i+1) << (bitmap->counts.chunkshift) in md_bitmap_init_from_disk()
1130 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk()
1210 int needed = ((sector_t)(i+1) << bitmap->counts.chunkshift in md_bitmap_init_from_disk()
1213 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk()
1301 struct bitmap_counts *counts; in md_bitmap_daemon_work() local
1355 counts = &bitmap->counts; in md_bitmap_daemon_work()
[all …]
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-vp9.c1674 const struct v4l2_vp9_frame_symbol_counts *counts, in _adapt_coeff() argument
1683 *counts->eob[i][j][k][l][m][1], in _adapt_coeff()
1684 *counts->eob[i][j][k][l][m][0] - *counts->eob[i][j][k][l][m][1], in _adapt_coeff()
1687 adapt_probs_variant_a_coef(p, *counts->coeff[i][j][k][l][m], uf); in _adapt_coeff()
1694 const struct v4l2_vp9_frame_symbol_counts *counts, in _adapt_coef_probs() argument
1702 _adapt_coeff(i, j, k, probs, counts, uf); in _adapt_coef_probs()
1706 struct v4l2_vp9_frame_symbol_counts *counts, in v4l2_vp9_adapt_coef_probs() argument
1711 _adapt_coef_probs(probs, counts, 112); in v4l2_vp9_adapt_coef_probs()
1714 _adapt_coef_probs(probs, counts, 128); in v4l2_vp9_adapt_coef_probs()
1716 _adapt_coef_probs(probs, counts, 112); in v4l2_vp9_adapt_coef_probs()
[all …]
/openbmc/qemu/tests/tcg/plugins/
H A Dbb.c24 static struct qemu_plugin_scoreboard *counts; variable
48 CPUCount *count = qemu_plugin_scoreboard_find(counts, i); in plugin_exit()
56 qemu_plugin_scoreboard_free(counts); in plugin_exit()
61 CPUCount *count = qemu_plugin_scoreboard_find(counts, cpu_index); in vcpu_idle()
73 CPUCount *count = qemu_plugin_scoreboard_find(counts, cpu_index); in vcpu_tb_exec()
121 counts = qemu_plugin_scoreboard_new(sizeof(CPUCount)); in qemu_plugin_install()
122 bb_count = qemu_plugin_scoreboard_u64_in_struct(counts, CPUCount, bb_count); in qemu_plugin_install()
124 counts, CPUCount, insn_count); in qemu_plugin_install()
H A Dmem.c59 static struct qemu_plugin_scoreboard *counts; variable
95 GList *counts = g_hash_table_get_values(regions); in plugin_exit() local
97 counts = g_list_sort(counts, addr_order); in plugin_exit()
101 if (counts && g_list_next(counts)) { in plugin_exit()
102 for (/* counts */; counts; counts = counts->next) { in plugin_exit()
103 RegionInfo *ri = (RegionInfo *) counts->data; in plugin_exit()
117 qemu_plugin_scoreboard_free(counts); in plugin_exit()
398 counts = qemu_plugin_scoreboard_new(sizeof(CPUCount)); in qemu_plugin_install()
400 counts, CPUCount, mem_count); in qemu_plugin_install()
401 io_count = qemu_plugin_scoreboard_u64_in_struct(counts, CPUCount, io_count); in qemu_plugin_install()
H A Dinline.c37 static struct qemu_plugin_scoreboard *counts; variable
173 qemu_plugin_scoreboard_free(counts); in plugin_exit()
280 counts = qemu_plugin_scoreboard_new(sizeof(CPUCount)); in qemu_plugin_install()
282 counts, CPUCount, count_tb); in qemu_plugin_install()
284 counts, CPUCount, count_insn); in qemu_plugin_install()
286 counts, CPUCount, count_mem); in qemu_plugin_install()
288 counts, CPUCount, count_tb_inline); in qemu_plugin_install()
290 counts, CPUCount, count_insn_inline); in qemu_plugin_install()
292 counts, CPUCount, count_mem_inline); in qemu_plugin_install()
294 counts, CPUCount, tb_cond_num_trigger); in qemu_plugin_install()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_btf_nokv.c21 struct ipv_counts *counts; in test_long_fname_2() local
24 counts = bpf_map_lookup_elem(&btf_map, &key); in test_long_fname_2()
25 if (!counts) in test_long_fname_2()
28 counts->v6++; in test_long_fname_2()
H A Dtest_btf_newkv.c22 struct ipv_counts *counts; in test_long_fname_2() local
25 counts = bpf_map_lookup_elem(&btf_map, &key); in test_long_fname_2()
26 if (!counts) in test_long_fname_2()
29 counts->v6++; in test_long_fname_2()
/openbmc/linux/arch/x86/hyperv/
H A Dhv_proc.c27 int *counts; in hv_call_deposit_pages() local
48 counts = kcalloc(HV_DEPOSIT_MAX, sizeof(int), GFP_KERNEL); in hv_call_deposit_pages()
49 if (!counts) { in hv_call_deposit_pages()
74 counts[i] = 1 << order; in hv_call_deposit_pages()
75 num_pages -= counts[i]; in hv_call_deposit_pages()
89 for (j = 0; j < counts[i]; ++j, ++page_count) in hv_call_deposit_pages()
107 for (j = 0; j < counts[i]; ++j) in hv_call_deposit_pages()
113 kfree(counts); in hv_call_deposit_pages()
/openbmc/linux/drivers/scsi/
H A Dch.c115 u_int counts[CH_TYPES]; member
230 ch->counts[i]) in ch_elem_to_typecode()
318 ch->counts[CHET_MT] = in ch_readconfig()
322 ch->counts[CHET_ST] = in ch_readconfig()
326 ch->counts[CHET_IE] = in ch_readconfig()
330 ch->counts[CHET_DT] = in ch_readconfig()
334 ch->counts[CHET_MT]); in ch_readconfig()
337 ch->counts[CHET_ST]); in ch_readconfig()
340 ch->counts[CHET_IE]); in ch_readconfig()
343 ch->counts[CHET_DT]); in ch_readconfig()
[all …]
/openbmc/linux/tools/lib/perf/Documentation/examples/
H A Dcounting.c24 struct perf_counts_values counts; in main() local
73 perf_evsel__read(evsel, 0, 0, &counts); in main()
75 counts.val, counts.ena, counts.run); in main()
/openbmc/linux/arch/x86/kernel/cpu/resctrl/
H A Dpseudo_lock.c956 struct residency_counts *counts) in measure_residency_fn() argument
1064 counts->miss_before = miss_before; in measure_residency_fn()
1065 counts->hits_before = hits_before; in measure_residency_fn()
1066 counts->miss_after = miss_after; in measure_residency_fn()
1067 counts->hits_after = hits_after; in measure_residency_fn()
1074 struct residency_counts counts = {0}; in measure_l2_residency() local
1096 measure_residency_fn(&perf_miss_attr, &perf_hit_attr, plr, &counts); in measure_l2_residency()
1101 trace_pseudo_lock_l2(counts.hits_after - counts.hits_before, in measure_l2_residency()
1102 counts.miss_after - counts.miss_before); in measure_l2_residency()
1112 struct residency_counts counts = {0}; in measure_l3_residency() local
[all …]
/openbmc/linux/tools/testing/kunit/
H A Dkunit_parser.py46 self.counts = TestCounts()
59 self.counts.errors += 1
102 def add_subtest_counts(self, counts: TestCounts) -> None:
112 self.passed += counts.passed
113 self.failed += counts.failed
114 self.crashed += counts.crashed
115 self.skipped += counts.skipped
116 self.errors += counts.errors
628 if test.ok_status() or test.counts.total() < 100:
648 counts = test.counts
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/accessories/
H A Dlink_dp_trace.c65 link->dp_trace.detect_lt_trace.counts.fail = fail_count; in dp_trace_lt_fail_count_update()
67 link->dp_trace.commit_lt_trace.counts.fail = fail_count; in dp_trace_lt_fail_count_update()
74 link->dp_trace.detect_lt_trace.counts.total++; in dp_trace_lt_total_count_increment()
76 link->dp_trace.commit_lt_trace.counts.total++; in dp_trace_lt_total_count_increment()
138 return &link->dp_trace.detect_lt_trace.counts; in dp_trace_get_lt_counts()
140 return &link->dp_trace.commit_lt_trace.counts; in dp_trace_get_lt_counts()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/iptraf/
H A Diptraf-ng_1.2.1.bb6 data like TCP connection packet and byte counts, interface statistics \
8 packet and byte counts. IPTraf-ng features include an IP traffic monitor \
9 which shows TCP flag information, packet and byte counts, ICMP \
12 packet counts, IP checksum errors, interface activity and packet size \
13 counts; a TCP and UDP service monitor showing counts of incoming and \

12345678910>>...13