| /Linux-v6.1/tools/perf/util/ |
| 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() 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 …]
|
| D | counts.h | 21 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts() argument 23 return xyarray__entry(counts->values, cpu_map_idx, thread); in perf_counts() 27 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts__is_loaded() argument 29 return *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)); in perf_counts__is_loaded() 33 perf_counts__set_loaded(struct perf_counts *counts, int cpu_map_idx, int thread, bool loaded) in perf_counts__set_loaded() argument 35 *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)) = loaded; in perf_counts__set_loaded() 39 void perf_counts__delete(struct perf_counts *counts); 40 void perf_counts__reset(struct perf_counts *counts);
|
| D | bpf_counter.c | 233 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() 633 struct perf_counts_values *counts; in bperf__read() local [all …]
|
| 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()
|
| D | stat.c | 163 struct perf_counts *counts; in evsel__alloc_prev_raw_counts() local 165 counts = perf_counts__new(cpu_map_nr, nthreads); in evsel__alloc_prev_raw_counts() 166 if (counts) in evsel__alloc_prev_raw_counts() 167 evsel->prev_raw_counts = counts; in evsel__alloc_prev_raw_counts() 169 return counts ? 0 : -ENOMEM; in evsel__alloc_prev_raw_counts() 245 *perf_counts(evsel->counts, idx, thread) = in evsel__copy_prev_raw_counts() 250 evsel->counts->aggr = evsel->prev_raw_counts->aggr; in evsel__copy_prev_raw_counts() 364 struct perf_counts_values *aggr = &evsel->counts->aggr; in process_counter_values() 419 perf_counts(counter->counts, idx, thread))) in process_counter_maps() 430 struct perf_counts_values *aggr = &counter->counts->aggr; in perf_stat_process_counter() [all …]
|
| D | bpf_counter_cgroup.c | 245 struct perf_counts_values *counts; in bperf_cgrp__read() local 273 counts = perf_counts(evsel->counts, i, 0); in bperf_cgrp__read() 274 counts->val = values[cpu.cpu].counter; in bperf_cgrp__read() 275 counts->ena = values[cpu.cpu].enabled; in bperf_cgrp__read() 276 counts->run = values[cpu.cpu].running; in bperf_cgrp__read()
|
| /Linux-v6.1/tools/lib/perf/tests/ |
| D | test-evsel.c | 40 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 …]
|
| D | test-evlist.c | 78 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 …]
|
| /Linux-v6.1/arch/powerpc/platforms/pseries/ |
| D | msi.c | 223 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 …]
|
| /Linux-v6.1/samples/bpf/ |
| 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 > PAGE_OFFSET) { 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()
|
| D | trace_event_kern.c | 25 } counts SEC(".maps"); 71 val = bpf_map_lookup_elem(&counts, &key); in bpf_prog1() 75 bpf_map_update_elem(&counts, &key, &one, BPF_NOEXIST); in bpf_prog1()
|
| D | offwaketime_kern.c | 37 } counts SEC(".maps"); 101 val = bpf_map_lookup_elem(&counts, &key); in update_counts() 103 bpf_map_update_elem(&counts, &key, &zero, BPF_NOEXIST); in update_counts() 104 val = bpf_map_lookup_elem(&counts, &key); in update_counts()
|
| /Linux-v6.1/drivers/md/ |
| D | md-bitmap.c | 930 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_set_bit() 959 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_clear_bit() 987 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_test_bit() 1067 chunks = bitmap->counts.chunks; in md_bitmap_init_from_disk() 1076 int needed = ((sector_t)(i+1) << (bitmap->counts.chunkshift) in md_bitmap_init_from_disk() 1079 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk() 1157 int needed = ((sector_t)(i+1) << bitmap->counts.chunkshift in md_bitmap_init_from_disk() 1160 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk() 1232 struct bitmap_counts *counts; in md_bitmap_daemon_work() local 1286 counts = &bitmap->counts; in md_bitmap_daemon_work() [all …]
|
| /Linux-v6.1/drivers/media/v4l2-core/ |
| D | v4l2-vp9.c | 1674 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 …]
|
| /Linux-v6.1/tools/testing/selftests/bpf/progs/ |
| 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()
|
| 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()
|
| /Linux-v6.1/arch/x86/hyperv/ |
| 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()
|
| /Linux-v6.1/tools/testing/kunit/ |
| D | kunit_parser.py | 45 self.counts = TestCounts() 58 self.counts.errors += 1 107 def add_subtest_counts(self, counts: TestCounts) -> None: 117 self.passed += counts.passed 118 self.failed += counts.failed 119 self.crashed += counts.crashed 120 self.skipped += counts.skipped 121 self.errors += counts.errors 603 counts = test.counts 606 counts.add_subtest_counts(t.counts) [all …]
|
| /Linux-v6.1/tools/lib/perf/Documentation/examples/ |
| 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()
|
| /Linux-v6.1/drivers/scsi/ |
| D | ch.c | 115 u_int counts[CH_TYPES]; member 229 ch->counts[i]) in ch_elem_to_typecode() 317 ch->counts[CHET_MT] = in ch_readconfig() 321 ch->counts[CHET_ST] = in ch_readconfig() 325 ch->counts[CHET_IE] = in ch_readconfig() 329 ch->counts[CHET_DT] = in ch_readconfig() 333 ch->counts[CHET_MT]); in ch_readconfig() 336 ch->counts[CHET_ST]); in ch_readconfig() 339 ch->counts[CHET_IE]); in ch_readconfig() 342 ch->counts[CHET_DT]); in ch_readconfig() [all …]
|
| /Linux-v6.1/arch/x86/kernel/cpu/resctrl/ |
| D | pseudo_lock.c | 942 struct residency_counts *counts) in measure_residency_fn() argument 1050 counts->miss_before = miss_before; in measure_residency_fn() 1051 counts->hits_before = hits_before; in measure_residency_fn() 1052 counts->miss_after = miss_after; in measure_residency_fn() 1053 counts->hits_after = hits_after; in measure_residency_fn() 1060 struct residency_counts counts = {0}; in measure_l2_residency() local 1082 measure_residency_fn(&perf_miss_attr, &perf_hit_attr, plr, &counts); in measure_l2_residency() 1087 trace_pseudo_lock_l2(counts.hits_after - counts.hits_before, in measure_l2_residency() 1088 counts.miss_after - counts.miss_before); in measure_l2_residency() 1098 struct residency_counts counts = {0}; in measure_l3_residency() local [all …]
|
| /Linux-v6.1/drivers/gpu/drm/amd/display/dc/link/ |
| D | link_dp_trace.c | 64 link->dp_trace.detect_lt_trace.counts.fail = fail_count; in dp_trace_lt_fail_count_update() 66 link->dp_trace.commit_lt_trace.counts.fail = fail_count; in dp_trace_lt_fail_count_update() 73 link->dp_trace.detect_lt_trace.counts.total++; in dp_trace_lt_total_count_increment() 75 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 dc_dp_trace_get_lt_counts() 140 return &link->dp_trace.commit_lt_trace.counts; in dc_dp_trace_get_lt_counts()
|
| /Linux-v6.1/drivers/media/platform/mediatek/vcodec/vdec/ |
| D | vdec_vp9_req_lat_if.c | 365 struct vdec_vp9_slice_mem counts; member 477 struct mtk_vcodec_mem counts; member 622 if (!instance->counts.va) { in vdec_vp9_slice_alloc_working_buffer() 623 instance->counts.size = VP9_COUNTS_BUF_SIZE; in vdec_vp9_slice_alloc_working_buffer() 624 if (mtk_vcodec_mem_alloc(ctx, &instance->counts)) in vdec_vp9_slice_alloc_working_buffer() 653 if (instance->counts.va) in vdec_vp9_slice_free_working_buffer() 654 mtk_vcodec_mem_free(ctx, &instance->counts); in vdec_vp9_slice_free_working_buffer() 1003 vsi->counts.dma_addr = instance->counts.dma_addr; in vdec_vp9_slice_setup_lat_buffer() 1004 vsi->counts.size = instance->counts.size; in vdec_vp9_slice_setup_lat_buffer() 1197 struct vdec_vp9_slice_frame_counts *counts, in vdec_vp9_slice_map_counts_eob_coef() argument [all …]
|
| /Linux-v6.1/tools/perf/tests/ |
| D | mmap-basic.c | 172 struct perf_counts_values counts = { .val = 0 }; in test_stat_user_read() local 226 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_user_read() 227 if (counts.val == 0) { in test_stat_user_read() 238 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_user_read() 239 start = counts.val; in test_stat_user_read() 243 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_user_read() 244 end = counts.val; in test_stat_user_read()
|
| /Linux-v6.1/tools/lib/perf/Documentation/ |
| D | libperf-counting.txt | 37 * reads and displays event counts 171 Now we need to get the counts from events, following code iterates through the 172 events list and read counts: 177 82 perf_evsel__read(evsel, 0, 0, &counts); 179 84 counts.val, counts.ena, counts.run);
|