/Linux-v4.19/tools/perf/util/ |
D | counts.c | 10 struct perf_counts *counts = zalloc(sizeof(*counts)); in perf_counts__new() local 12 if (counts) { in perf_counts__new() 17 free(counts); in perf_counts__new() 21 counts->values = values; in perf_counts__new() 24 return counts; in perf_counts__new() 27 void perf_counts__delete(struct perf_counts *counts) in perf_counts__delete() argument 29 if (counts) { in perf_counts__delete() 30 xyarray__delete(counts->values); in perf_counts__delete() 31 free(counts); in perf_counts__delete() 35 static void perf_counts__reset(struct perf_counts *counts) in perf_counts__reset() argument [all …]
|
D | branch.c | 25 st->counts[flags->type]++; in branch_type_count() 68 total += st->counts[i]; in branch_type_stat_display() 102 if (st->counts[i] > 0) in branch_type_stat_display() 106 (double)st->counts[i] / (double)total); in branch_type_stat_display() 121 total += st->counts[i]; in branch_type_str() 136 if (st->counts[i] > 0) in branch_type_str()
|
D | stat.c | 142 struct perf_counts *counts; in perf_evsel__alloc_prev_raw_counts() local 144 counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_prev_raw_counts() 145 if (counts) in perf_evsel__alloc_prev_raw_counts() 146 evsel->prev_raw_counts = counts; in perf_evsel__alloc_prev_raw_counts() 148 return counts ? 0 : -ENOMEM; in perf_evsel__alloc_prev_raw_counts() 260 struct perf_counts_values *aggr = &evsel->counts->aggr; in process_counter_values() 319 perf_counts(counter->counts, cpu, thread))) in process_counter_maps() 330 struct perf_counts_values *aggr = &counter->counts->aggr; in perf_stat_process_counter() 332 u64 *count = counter->counts->aggr.values; in perf_stat_process_counter() 359 perf_counts_values__scale(aggr, config->scale, &counter->counts->scaled); in perf_stat_process_counter() [all …]
|
D | counts.h | 27 perf_counts(struct perf_counts *counts, int cpu, int thread) in perf_counts() argument 29 return xyarray__entry(counts->values, cpu, thread); in perf_counts() 33 void perf_counts__delete(struct perf_counts *counts);
|
/Linux-v4.19/arch/powerpc/platforms/pseries/ |
D | msi.c | 234 struct msi_counts *counts = data; in count_non_bridge_devices() local 244 counts->num_devices++; in count_non_bridge_devices() 251 struct msi_counts *counts = data; in count_spare_msis() local 255 if (dn == counts->requestor) in count_spare_msis() 256 req = counts->request; in count_spare_msis() 270 if (req < counts->quota) in count_spare_msis() 271 counts->spare += counts->quota - req; in count_spare_msis() 272 else if (req > counts->quota) in count_spare_msis() 273 counts->over_quota++; in count_spare_msis() 281 struct msi_counts counts; in msi_quota_for_device() local [all …]
|
/Linux-v4.19/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() 113 printf("0x%-17llx %-32s %u\n", counts[i].ip, sym->name, in print_ip_map() 114 counts[i].count); in print_ip_map() 116 printf("0x%-17llx %-32s %u\n", counts[i].ip, "(user)", in print_ip_map() 117 counts[i].count); in print_ip_map()
|
D | trace_event_kern.c | 20 struct bpf_map_def SEC("maps") counts = { 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 | 25 struct bpf_map_def SEC("maps") counts = { 94 val = bpf_map_lookup_elem(&counts, &key); in update_counts() 96 bpf_map_update_elem(&counts, &key, &zero, BPF_NOEXIST); in update_counts() 97 val = bpf_map_lookup_elem(&counts, &key); in update_counts()
|
D | test_lru_dist.c | 178 unsigned int counts = 0; in read_keys() local 194 counts++; in read_keys() 196 counts++; /* in case the last line has no \n */ in read_keys() 198 retkeys = malloc(counts * sizeof(unsigned long long)); in read_keys() 201 counts = 0; in read_keys() 203 retkeys[counts++] = strtoull(l, NULL, 10); in read_keys() 208 return counts; in read_keys()
|
/Linux-v4.19/drivers/md/ |
D | md-bitmap.c | 931 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_set_bit() 960 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_clear_bit() 988 unsigned long chunk = block >> bitmap->counts.chunkshift; in md_bitmap_file_test_bit() 1070 chunks = bitmap->counts.chunks; in md_bitmap_init_from_disk() 1079 int needed = ((sector_t)(i+1) << (bitmap->counts.chunkshift) in md_bitmap_init_from_disk() 1082 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk() 1160 int needed = ((sector_t)(i+1) << bitmap->counts.chunkshift in md_bitmap_init_from_disk() 1163 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk() 1235 struct bitmap_counts *counts; in md_bitmap_daemon_work() local 1289 counts = &bitmap->counts; in md_bitmap_daemon_work() [all …]
|
/Linux-v4.19/kernel/gcov/ |
D | gcc_3_4.c | 81 struct gcov_ctr_info counts[0]; member 178 memset(info->counts[i].values, 0, in gcov_info_reset() 179 info->counts[i].num * sizeof(gcov_type)); in gcov_info_reset() 208 for (j = 0; j < dest->counts[i].num; j++) { in gcov_info_add() 209 dest->counts[i].values[j] += in gcov_info_add() 210 source->counts[i].values[j]; in gcov_info_add() 267 struct gcov_ctr_info *ctr = &info->counts[i]; in gcov_info_dup() 270 dup->counts[i].num = ctr->num; in gcov_info_dup() 271 dup->counts[i].merge = ctr->merge; in gcov_info_dup() 272 dup->counts[i].values = vmalloc(size); in gcov_info_dup() [all …]
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_btf_nokv.c | 28 struct ipv_counts *counts; in _dummy_tracepoint() local 34 counts = bpf_map_lookup_elem(&btf_map, &key); in _dummy_tracepoint() 35 if (!counts) in _dummy_tracepoint() 38 counts->v6++; in _dummy_tracepoint()
|
D | test_btf_haskv.c | 30 struct ipv_counts *counts; in _dummy_tracepoint() local 36 counts = bpf_map_lookup_elem(&btf_map, &key); in _dummy_tracepoint() 37 if (!counts) in _dummy_tracepoint() 40 counts->v6++; in _dummy_tracepoint()
|
/Linux-v4.19/drivers/scsi/ |
D | ch.c | 115 u_int counts[CH_TYPES]; member 228 ch->counts[i]) in ch_elem_to_typecode() 316 ch->counts[CHET_MT] = in ch_readconfig() 320 ch->counts[CHET_ST] = in ch_readconfig() 324 ch->counts[CHET_IE] = in ch_readconfig() 328 ch->counts[CHET_DT] = in ch_readconfig() 332 ch->counts[CHET_MT]); in ch_readconfig() 335 ch->counts[CHET_ST]); in ch_readconfig() 338 ch->counts[CHET_IE]); in ch_readconfig() 341 ch->counts[CHET_DT]); in ch_readconfig() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_core_irq.c | 123 int i, ret = 0, counts; in dpu_core_irq_enable() local 130 counts = atomic_read(&dpu_kms->irq_obj.enable_counts[irq_idxs[0]]); in dpu_core_irq_enable() 131 if (counts) in dpu_core_irq_enable() 132 DRM_ERROR("irq_idx=%d enable_count=%d\n", irq_idxs[0], counts); in dpu_core_irq_enable() 178 int i, ret = 0, counts; in dpu_core_irq_disable() local 185 counts = atomic_read(&dpu_kms->irq_obj.enable_counts[irq_idxs[0]]); in dpu_core_irq_disable() 186 if (counts == 2) in dpu_core_irq_disable() 187 DRM_ERROR("irq_idx=%d enable_count=%d\n", irq_idxs[0], counts); in dpu_core_irq_disable()
|
/Linux-v4.19/tools/perf/tests/ |
D | openat-syscall.c | 52 if (perf_counts(evsel->counts, 0, 0)->val != nr_openat_calls) { in test__openat_syscall_event() 54 nr_openat_calls, perf_counts(evsel->counts, 0, 0)->val); in test__openat_syscall_event()
|
D | openat-syscall-all-cpus.c | 110 if (perf_counts(evsel->counts, cpu, 0)->val != expected) { in test__openat_syscall_event_on_all_cpus() 112 expected, cpus->map[cpu], perf_counts(evsel->counts, cpu, 0)->val); in test__openat_syscall_event_on_all_cpus()
|
/Linux-v4.19/drivers/watchdog/ |
D | loongson1_wdt.c | 45 unsigned int counts; in ls1x_wdt_set_timeout() local 49 counts = drvdata->clk_rate * min(timeout, max_hw_heartbeat); in ls1x_wdt_set_timeout() 50 writel(counts, drvdata->base + WDT_TIMER); in ls1x_wdt_set_timeout()
|
/Linux-v4.19/arch/ia64/kernel/ |
D | smp.c | 258 unsigned short *counts = __ia64_per_cpu_var(shadow_flush_counts); in smp_flush_tlb_cpumask() local 266 counts[cpu] = local_tlb_flush_counts[cpu].count & 0xffff; in smp_flush_tlb_cpumask() 280 while(counts[cpu] == (local_tlb_flush_counts[cpu].count & 0xffff)) in smp_flush_tlb_cpumask()
|
/Linux-v4.19/tools/perf/ |
D | builtin-stat.c | 359 count = perf_counts(counter->counts, cpu, thread); in read_counter() 367 counter->counts->scaled = -1; in read_counter() 368 perf_counts(counter->counts, cpu, thread)->ena = 0; in read_counter() 369 perf_counts(counter->counts, cpu, thread)->run = 0; in read_counter() 1165 if (run == 0 || ena == 0 || counter->counts->scaled == -1) { in printout() 1240 val += perf_counts(counter->counts, cpu, 0)->val; in aggr_update_shadow() 1325 struct perf_counts_values *counts; in aggr_cb() local 1332 counts = perf_counts(counter->counts, cpu, 0); in aggr_cb() 1337 if (counts->ena == 0 || counts->run == 0 || in aggr_cb() 1338 counter->counts->scaled == -1) { in aggr_cb() [all …]
|
/Linux-v4.19/Documentation/networking/ |
D | altera_tse.txt | 195 statistic counts the number of packets transmitted that were not addressed to 199 statistic counts the number of packets transmitted that were addressed to a 203 statistic counts the number of packets transmitted that were addressed to a 207 This statistic counts the number of packets dropped due to lack of internal 211 This statistic counts the total number of bytes received by the controller, 215 This statistic counts the total number of packets received by the controller, 219 This statistic counts the number of correctly formed packets received less 223 This statistic counts the number of correctly formed packets greater than 1518 227 This statistic counts the total number of packets received that were 64 octets 231 2819. This statistic counts the total number of packets received that were [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/mfd/ |
D | mxs-lradc.txt | 17 2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at 20 1 ... 2047. It counts at 2 kHz and its default is
|
/Linux-v4.19/tools/usb/ |
D | ffs-test.c | 246 const __le32 counts[]; in descs_to_legacy() member 248 const __le32 *counts = in->counts; in descs_to_legacy() local 268 ret = le32_to_cpu(*counts); \ in descs_to_legacy() 270 ++counts; \ in descs_to_legacy() 280 descs_start = (const void *)counts; in descs_to_legacy()
|
/Linux-v4.19/tools/perf/Documentation/ |
D | perf-stat.txt | 104 Do not aggregate counts across all monitored CPUs. 116 print counts using a CSV-style output to make it easy to import directly into 194 Aggregate counts per processor socket for system-wide mode measurements. This 201 Aggregate counts per physical processor for system-wide mode measurements. This 207 Aggregate counts per monitored threads, when monitoring threads (-t option) 237 Aggregate counts per processor socket for system-wide mode measurements. 240 Aggregate counts per physical processor for system-wide mode measurements. 251 Do not aggregate counts across all monitored CPUs. 290 stat will, by default, aggregate the event counts and show the result 292 the individual events and counts.
|
/Linux-v4.19/Documentation/media/kapi/ |
D | dtv-common.rst | 51 Flushing the buffer counts as a read operation. 52 Resetting the buffer counts as a read and write operation.
|