| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | counts.c | 11 struct perf_counts *counts = zalloc(sizeof(*counts)); in perf_counts__new() local 13 if (counts) { in perf_counts__new() 18 free(counts); in perf_counts__new() 22 counts->values = values; in perf_counts__new() 26 xyarray__delete(counts->values); in perf_counts__new() 27 free(counts); in perf_counts__new() 31 counts->loaded = values; in perf_counts__new() 34 return counts; in perf_counts__new() 37 void perf_counts__delete(struct perf_counts *counts) in perf_counts__delete() argument 39 if (counts) { in perf_counts__delete() [all …]
|
| H A D | counts.h | 21 perf_counts(struct perf_counts *counts, int cpu, int thread) in perf_counts() argument 23 return xyarray__entry(counts->values, cpu, thread); in perf_counts() 27 perf_counts__is_loaded(struct perf_counts *counts, int cpu, int thread) in perf_counts__is_loaded() argument 29 return *((bool *) xyarray__entry(counts->loaded, cpu, thread)); in perf_counts__is_loaded() 33 perf_counts__set_loaded(struct perf_counts *counts, int cpu, int thread, bool loaded) in perf_counts__set_loaded() argument 35 *((bool *) xyarray__entry(counts->loaded, cpu, 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);
|
| H A D | branch.c | 24 st->counts[flags->type]++; in branch_type_count() 67 total += st->counts[i]; in branch_type_stat_display() 101 if (st->counts[i] > 0) in branch_type_stat_display() 105 (double)st->counts[i] / (double)total); in branch_type_stat_display() 120 total += st->counts[i]; in branch_type_str() 135 if (st->counts[i] > 0) in branch_type_str()
|
| H A D | stat.c | 153 struct perf_counts *counts; in evsel__alloc_prev_raw_counts() local 155 counts = perf_counts__new(ncpus, nthreads); in evsel__alloc_prev_raw_counts() 156 if (counts) in evsel__alloc_prev_raw_counts() 157 evsel->prev_raw_counts = counts; in evsel__alloc_prev_raw_counts() 159 return counts ? 0 : -ENOMEM; in evsel__alloc_prev_raw_counts() 239 *perf_counts(evsel->counts, cpu, thread) = in perf_evsel__copy_prev_raw_counts() 245 evsel->counts->aggr = evsel->prev_raw_counts->aggr; in perf_evsel__copy_prev_raw_counts() 329 struct perf_counts_values *aggr = &evsel->counts->aggr; in process_counter_values() 390 perf_counts(counter->counts, cpu, thread))) in process_counter_maps() 401 struct perf_counts_values *aggr = &counter->counts->aggr; in perf_stat_process_counter() [all …]
|
| H A D | stat-display.c | 438 if (run == 0 || ena == 0 || counter->counts->scaled == -1) { in printout() 511 val += perf_counts(counter->counts, cpu, 0)->val; in aggr_update_shadow() 600 struct perf_counts_values *counts; in aggr_cb() local 607 counts = perf_counts(counter->counts, cpu, 0); in aggr_cb() 612 if (counts->ena == 0 || counts->run == 0 || in aggr_cb() 613 counter->counts->scaled == -1) { in aggr_cb() 618 ad->val += counts->val; in aggr_cb() 619 ad->ena += counts->ena; in aggr_cb() 620 ad->run += counts->run; in aggr_cb() 717 val += perf_counts(counter->counts, cpu, thread)->val; in sort_aggr_thread() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/ |
| H A D | msi.c | 231 struct msi_counts *counts = data; in count_non_bridge_devices() local 241 counts->num_devices++; in count_non_bridge_devices() 248 struct msi_counts *counts = data; in count_spare_msis() local 252 if (dn == counts->requestor) in count_spare_msis() 253 req = counts->request; in count_spare_msis() 267 if (req < counts->quota) in count_spare_msis() 268 counts->spare += counts->quota - req; in count_spare_msis() 269 else if (req > counts->quota) in count_spare_msis() 270 counts->over_quota++; in count_spare_msis() 278 struct msi_counts counts; in msi_quota_for_device() local [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/tests/ |
| H A D | test-evsel.c | 36 struct perf_counts_values counts = { .val = 0 }; in test_stat_cpu() local 38 perf_evsel__read(evsel, idx, 0, &counts); in test_stat_cpu() 39 __T("failed to read value for evsel", counts.val != 0); in test_stat_cpu() 51 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread() local 71 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread() 72 __T("failed to read value for evsel", counts.val != 0); in test_stat_thread() 83 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread_enable() local 104 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable() 105 __T("failed to read value for evsel", counts.val == 0); in test_stat_thread_enable() 110 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable() [all …]
|
| H A D | test-evlist.c | 68 struct perf_counts_values counts = { .val = 0 }; in test_stat_cpu() local 70 perf_evsel__read(evsel, idx, 0, &counts); in test_stat_cpu() 71 __T("failed to read value for evsel", counts.val != 0); in test_stat_cpu() 84 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread() local 122 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread() 123 __T("failed to read value for evsel", counts.val != 0); in test_stat_thread() 135 struct perf_counts_values counts = { .val = 0 }; in test_stat_thread_enable() local 175 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable() 176 __T("failed to read value for evsel", counts.val == 0); in test_stat_thread_enable() 182 perf_evsel__read(evsel, 0, 0, &counts); in test_stat_thread_enable() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A 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() 1068 chunks = bitmap->counts.chunks; in md_bitmap_init_from_disk() 1077 int needed = ((sector_t)(i+1) << (bitmap->counts.chunkshift) in md_bitmap_init_from_disk() 1080 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk() 1158 int needed = ((sector_t)(i+1) << bitmap->counts.chunkshift in md_bitmap_init_from_disk() 1161 (sector_t)i << bitmap->counts.chunkshift, in md_bitmap_init_from_disk() 1233 struct bitmap_counts *counts; in md_bitmap_daemon_work() local 1287 counts = &bitmap->counts; in md_bitmap_daemon_work() [all …]
|
| /OK3568_Linux_fs/kernel/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 > 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()
|
| H A D | offwaketime_kern.c | 36 } counts SEC(".maps"); 100 val = bpf_map_lookup_elem(&counts, &key); in update_counts() 102 bpf_map_update_elem(&counts, &key, &zero, BPF_NOEXIST); in update_counts() 103 val = bpf_map_lookup_elem(&counts, &key); in update_counts()
|
| H A D | trace_event_kern.c | 26 } counts SEC(".maps"); 72 val = bpf_map_lookup_elem(&counts, &key); in bpf_prog1() 76 bpf_map_update_elem(&counts, &key, &one, BPF_NOEXIST); in bpf_prog1()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_btf_newkv.c | 34 struct ipv_counts *counts; in test_long_fname_2() local 37 counts = bpf_map_lookup_elem(&btf_map, &key); in test_long_fname_2() 38 if (!counts) in test_long_fname_2() 41 counts->v6++; in test_long_fname_2() 44 counts = bpf_map_lookup_elem(&btf_map_legacy, &key); in test_long_fname_2() 45 if (!counts) in test_long_fname_2()
|
| H A D | test_btf_nokv.c | 23 struct ipv_counts *counts; in test_long_fname_2() local 26 counts = bpf_map_lookup_elem(&btf_map, &key); in test_long_fname_2() 27 if (!counts) in test_long_fname_2() 30 counts->v6++; in test_long_fname_2()
|
| H A D | test_btf_haskv.c | 26 struct ipv_counts *counts; in test_long_fname_2() local 29 counts = bpf_map_lookup_elem(&btf_map, &key); in test_long_fname_2() 30 if (!counts) in test_long_fname_2() 33 counts->v6++; in test_long_fname_2()
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/resctrl/ |
| H A D | pseudo_lock.c | 938 struct residency_counts *counts) in measure_residency_fn() argument 1046 counts->miss_before = miss_before; in measure_residency_fn() 1047 counts->hits_before = hits_before; in measure_residency_fn() 1048 counts->miss_after = miss_after; in measure_residency_fn() 1049 counts->hits_after = hits_after; in measure_residency_fn() 1056 struct residency_counts counts = {0}; in measure_l2_residency() local 1078 measure_residency_fn(&perf_miss_attr, &perf_hit_attr, plr, &counts); in measure_l2_residency() 1083 trace_pseudo_lock_l2(counts.hits_after - counts.hits_before, in measure_l2_residency() 1084 counts.miss_after - counts.miss_before); in measure_l2_residency() 1094 struct residency_counts counts = {0}; in measure_l3_residency() local [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/vp9/ |
| H A D | vp9d_parser.c | 1090 memset(s->counts.coef, 0, sizeof(s->counts.coef)); in decode_parser_header() 1091 memset(s->counts.eob, 0, sizeof(s->counts.eob)); in decode_parser_header() 1093 memset(&s->counts, 0, sizeof(s->counts)); in decode_parser_header() 1395 RK_U32 *e = s->counts.eob[i][j][k][l][m]; in adapt_probs() 1396 RK_U32 *c = s->counts.coef[i][j][k][l][m]; in adapt_probs() 1413 fwrite(&s->counts, 1, sizeof(s->counts), vp9_p_fp); in adapt_probs() 1427 adapt_prob(&p->skip[i], s->counts.skip[i][0], s->counts.skip[i][1], 20, 128); in adapt_probs() 1431 adapt_prob(&p->intra[i], s->counts.intra[i][0], s->counts.intra[i][1], 20, 128); in adapt_probs() 1436 adapt_prob(&p->comp[i], s->counts.comp[i][0], s->counts.comp[i][1], 20, 128); in adapt_probs() 1442 adapt_prob(&p->comp_ref[i], s->counts.comp_ref[i][0], in adapt_probs() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/yocto/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 \
|
| /OK3568_Linux_fs/yocto/poky/meta/classes/ |
| H A D | migrate_localcount.bbclass | 16 counts = localcounts.get_by_pattern('%%-%s_count' % pn) 17 if not revs or not counts: 20 if len(revs) != len(counts): 28 value = max(int(count) for count in counts)
|
| /OK3568_Linux_fs/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}"
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/Documentation/ |
| H A 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);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_core_irq.c | 114 int i, ret = 0, counts; in dpu_core_irq_enable() local 121 counts = atomic_read(&dpu_kms->irq_obj.enable_counts[irq_idxs[0]]); in dpu_core_irq_enable() 122 if (counts) in dpu_core_irq_enable() 123 DRM_ERROR("irq_idx=%d enable_count=%d\n", irq_idxs[0], counts); in dpu_core_irq_enable() 169 int i, ret = 0, counts; in dpu_core_irq_disable() local 176 counts = atomic_read(&dpu_kms->irq_obj.enable_counts[irq_idxs[0]]); in dpu_core_irq_disable() 177 if (counts == 2) in dpu_core_irq_disable() 178 DRM_ERROR("irq_idx=%d enable_count=%d\n", irq_idxs[0], counts); in dpu_core_irq_disable()
|
| /OK3568_Linux_fs/kernel/tools/perf/Documentation/ |
| H A D | perf-stat.txt | 50 'percore' is a event qualifier that sums up the event counts for both 123 Do not aggregate counts across all monitored CPUs. 135 print counts using a CSV-style output to make it easy to import directly into 241 If the metric exists, it is calculated by the counts generated in this interval and the metric is p… 261 Aggregate counts per processor socket for system-wide mode measurements. This 268 Aggregate counts per processor die for system-wide mode measurements. This 275 Aggregate counts per physical processor for system-wide mode measurements. This 281 Aggregate counts per monitored threads, when monitoring threads (-t option) 285 Aggregate counts per NUMA nodes for system-wide mode measurements. This 336 Aggregate counts per processor socket for system-wide mode measurements. [all …]
|