/openbmc/linux/tools/perf/util/ |
H A D | counts.c | 12 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() 28 free(counts); in perf_counts__new() 32 counts->loaded = values; in perf_counts__new() 35 return counts; in perf_counts__new() 40 if (counts) { in perf_counts__delete() 43 free(counts); in perf_counts__delete() 49 xyarray__reset(counts->loaded); in perf_counts__reset() [all …]
|
H A D | counts.h | 20 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 D | bpf_counter.c | 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() 635 counts = perf_counts(evsel->counts, j, 0); in bperf__read() 644 counts = perf_counts(evsel->counts, i, 0); in bperf__read() 651 counts = perf_counts(evsel->counts, 0, i); in bperf__read() 652 counts->val = 0; in bperf__read() 653 counts->ena = 0; in bperf__read() [all …]
|
H A D | stat.c | 158 struct perf_counts *counts; in evsel__alloc_prev_raw_counts() local 161 if (counts) in evsel__alloc_prev_raw_counts() 164 return counts ? 0 : -ENOMEM; in evsel__alloc_prev_raw_counts() 443 ps_aggr->counts.val = 0; in process_counter_values() 444 ps_aggr->counts.ena = 0; in process_counter_values() 618 counts.val += aggr->counts.val; in evsel__update_percore_stats() 619 counts.ena += aggr->counts.ena; in evsel__update_percore_stats() 620 counts.run += aggr->counts.run; in evsel__update_percore_stats() 631 aggr->counts.val = counts.val; in evsel__update_percore_stats() 632 aggr->counts.ena = counts.ena; in evsel__update_percore_stats() [all …]
|
H A D | branch.c | 27 st->counts[flags->type]++; in branch_type_count() 118 total += st->counts[i]; in branch_type_stat_display() 152 if (st->counts[i] > 0) in branch_type_stat_display() 156 (double)st->counts[i] / (double)total); in branch_type_stat_display() 180 total += st->counts[i]; in branch_type_str() 198 if (st->counts[i] > 0) in branch_type_str()
|
/openbmc/linux/tools/lib/perf/tests/ |
H A D | test-evsel.c | 75 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread() 108 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable() 114 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable() 175 start = counts.val; in test_stat_user_read() 180 end = counts.val; in test_stat_user_read() 198 struct perf_counts_values counts; in test_stat_read_format_single() local 212 memset(&counts, -1, sizeof(counts)); in test_stat_read_format_single() 221 __T("failed to read ID", counts.id); in test_stat_read_format_single() 233 struct perf_counts_values counts; in test_stat_read_format_group() local 258 memset(&counts, -1, sizeof(counts)); in test_stat_read_format_group() [all …]
|
H A D | test-evlist.c | 528 min = counts[0].val; in test_stat_multiplexing() 531 i, counts[i].val, counts[i].run, counts[i].ena); in test_stat_multiplexing() 536 counts[i].val, in test_stat_multiplexing() 537 (double)counts[i].run / (double)counts[i].ena * 100.0, in test_stat_multiplexing() 538 counts[i].run, counts[i].ena); in test_stat_multiplexing() 545 if (counts[i].val > max) in test_stat_multiplexing() 546 max = counts[i].val; in test_stat_multiplexing() 548 if (counts[i].val < min) in test_stat_multiplexing() 549 min = counts[i].val; in test_stat_multiplexing() 551 avg += counts[i].val; in test_stat_multiplexing() [all …]
|
/openbmc/qemu/tests/bench/ |
H A D | atomic_add-bench.c | 20 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 D | hwprofile.c | 34 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 211 if (!counts) { in vcpu_haddr() 213 counts = new_count(name, base); in vcpu_haddr() 218 hwprofile_match_hit(counts, off); in vcpu_haddr() [all …]
|
H A D | howvec.c | 176 GList *counts; in plugin_exit() local 203 counts = g_hash_table_get_values(insns); in plugin_exit() 204 if (counts && g_list_next(counts)) { in plugin_exit() 206 counts = g_list_sort(counts, cmp_exec_count); in plugin_exit() 208 for (i = 0; i < limit && g_list_next(counts); in plugin_exit() 209 i++, counts = g_list_next(counts)) { in plugin_exit() 210 InsnExecCount *rec = (InsnExecCount *) counts->data; in plugin_exit() 220 g_list_free(counts); in plugin_exit()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | msi.c | 233 counts->num_devices++; in count_non_bridge_devices() 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() 262 counts->over_quota++; in count_spare_msis() 270 struct msi_counts counts; in msi_quota_for_device() local 298 counts.quota = total / counts.num_devices; in msi_quota_for_device() 304 counts.request = request; in msi_quota_for_device() 309 counts.spare += total % counts.num_devices; in msi_quota_for_device() 312 if (counts.over_quota) in msi_quota_for_device() [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | sampleip_user.c | 82 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 D | md-bitmap.c | 1300 struct bitmap_counts *counts; in md_bitmap_daemon_work() local 1354 counts = &bitmap->counts; in md_bitmap_daemon_work() 1355 spin_lock_irq(&counts->lock); in md_bitmap_daemon_work() 1830 bp = bitmap->counts.bp; in md_bitmap_free() 2068 counts = &bitmap->counts; in md_bitmap_copy_from_slot() 2108 counts = &bitmap->counts; in md_bitmap_status() 2113 counts->pages - counts->missing_pages, in md_bitmap_status() 2114 counts->pages, in md_bitmap_status() 2115 (counts->pages - counts->missing_pages) in md_bitmap_status() 2221 old_counts = bitmap->counts; in md_bitmap_resize() [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-vp9.c | 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() 1702 _adapt_coeff(i, j, k, probs, counts, uf); in _adapt_coef_probs() 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() 1755 return noncoef_merge_prob(prob, counts[0], counts[1]); in adapt_prob() 1779 (*counts->single_ref)[i][j]); in v4l2_vp9_adapt_noncoef_probs() 1818 (*counts->bits)[i][j]); in v4l2_vp9_adapt_noncoef_probs() 1822 (*counts->class0_fp)[i][j]); in v4l2_vp9_adapt_noncoef_probs() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_btf_nokv.c | 21 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 D | test_btf_newkv.c | 22 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/tools/lib/perf/Documentation/examples/ |
H A D | counting.c | 24 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/hyperv/ |
H A D | hv_proc.c | 27 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 D | ch.c | 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() 660 if (ch->counts[CHET_V1]) { in ch_ioctl() [all …]
|
/openbmc/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | pseudo_lock.c | 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() 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() 1141 counts.miss_after -= counts.miss_before; in measure_l3_residency() 1151 counts.hits_after -= counts.hits_before; in measure_l3_residency() 1153 counts.hits_after -= min(counts.miss_after, counts.hits_after); in measure_l3_residency() 1155 counts.hits_after -= counts.hits_before; in measure_l3_residency() [all …]
|
/openbmc/qemu/tests/plugin/ |
H A D | bb.c | 32 static GPtrArray *counts; variable 53 g_ptr_array_foreach(counts, (GFunc) gen_one_cpu_report, report); in plugin_exit() 60 CPUCount *count = g_ptr_array_index(counts, cpu_index); in vcpu_idle() 73 g_ptr_array_index(counts, cpu_index) : &inline_count; in vcpu_tb_exec() 126 counts = g_ptr_array_new(); in qemu_plugin_install() 131 g_ptr_array_add(counts, count); in qemu_plugin_install()
|
/openbmc/linux/tools/testing/kunit/ |
H A D | kunit_parser.py | 46 self.counts = TestCounts() 59 self.counts.errors += 1 112 self.passed += counts.passed 113 self.failed += counts.failed 114 self.crashed += counts.crashed 116 self.errors += counts.errors 648 counts = test.counts 651 counts.add_subtest_counts(t.counts) 652 if counts.total() == 0: 653 counts.add_status(status) [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/accessories/ |
H A D | link_dp_trace.c | 65 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 D | iptraf-ng_1.2.1.bb | 6 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 \
|
/openbmc/u-boot/test/trace/ |
H A D | test-trace.sh | 48 counts="$(tr -d ',\r' <${tmp} | awk \ 52 if [ "${counts}" != "1 1 0 1 " ]; then 53 fail "trace collection error: ${counts}"
|