/linux-master/tools/perf/util/ |
H A D | counts.c | 6 #include "counts.h" 12 struct perf_counts *counts = zalloc(sizeof(*counts)); local 14 if (counts) { 19 free(counts); 23 counts->values = values; 27 xyarray__delete(counts->values); 28 free(counts); 32 counts->loaded = values; 35 return counts; 38 perf_counts__delete(struct perf_counts *counts) argument 47 perf_counts__reset(struct perf_counts *counts) argument [all...] |
H A D | counts.h | 20 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) argument 22 return xyarray__entry(counts->values, cpu_map_idx, thread); 26 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int thread) argument 28 return *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)); 32 perf_counts__set_loaded(struct perf_counts *counts, int cpu_map_idx, int thread, bool loaded) argument 34 *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)) = loaded; 38 void perf_counts__delete(struct perf_counts *counts); 39 void perf_counts__reset(struct perf_counts *counts);
|
H A D | stat.c | 7 #include "counts.h" 158 struct perf_counts *counts; local 160 counts = perf_counts__new(cpu_map_nr, nthreads); 161 if (counts) 162 evsel->prev_raw_counts = counts; 164 return counts ? 0 : -ENOMEM; 253 *perf_counts(evsel->counts, idx, thread) = 272 * For GLOBAL aggregation mode, it updates the counts for each run 275 *ps->aggr[0].counts.values = avg_stats(&ps->res_stats); 371 if (evsel->err || evsel->counts 605 struct perf_counts_values counts = { 0, }; local [all...] |
H A D | bpf_counter.c | 17 #include "counts.h" 236 struct perf_counts_values *counts; local 245 counts = perf_counts(evsel->counts, idx, 0); 246 counts->val = 0; 247 counts->ena = 0; 248 counts->run = 0; 267 counts = perf_counts(evsel->counts, idx, 0); 268 counts 618 struct perf_counts_values *counts; local [all...] |
H A D | branch.c | 27 st->counts[flags->type]++; 118 total += st->counts[i]; 152 if (st->counts[i] > 0) 156 (double)st->counts[i] / (double)total); 180 total += st->counts[i]; 198 if (st->counts[i] > 0)
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_btf_nokv.c | 21 struct ipv_counts *counts; local 24 counts = bpf_map_lookup_elem(&btf_map, &key); 25 if (!counts) 28 counts->v6++;
|
H A D | test_btf_newkv.c | 22 struct ipv_counts *counts; local 25 counts = bpf_map_lookup_elem(&btf_map, &key); 26 if (!counts) 29 counts->v6++;
|
/linux-master/tools/lib/perf/tests/ |
H A D | test-evsel.c | 40 struct perf_counts_values counts = { .val = 0 }; local 42 perf_evsel__read(evsel, idx, 0, &counts); 43 __T("failed to read value for evsel", counts.val != 0); 55 struct perf_counts_values counts = { .val = 0 }; local 75 perf_evsel__read(evsel, 0, 0, &counts); 76 __T("failed to read value for evsel", counts.val != 0); 87 struct perf_counts_values counts = { .val = 0 }; local 108 perf_evsel__read(evsel, 0, 0, &counts); 109 __T("failed to read value for evsel", counts.val == 0); 114 perf_evsel__read(evsel, 0, 0, &counts); 129 struct perf_counts_values counts = { .val = 0 }; local 198 struct perf_counts_values counts; local 233 struct perf_counts_values counts; local [all...] |
H A D | test-evlist.c | 78 struct perf_counts_values counts = { .val = 0 }; local 80 perf_evsel__read(evsel, idx, 0, &counts); 81 __T("failed to read value for evsel", counts.val != 0); 94 struct perf_counts_values counts = { .val = 0 }; local 136 perf_evsel__read(evsel, 0, 0, &counts); 137 __T("failed to read value for evsel", counts.val != 0); 149 struct perf_counts_values counts = { .val = 0 }; local 193 perf_evsel__read(evsel, 0, 0, &counts); 194 __T("failed to read value for evsel", counts.val == 0); 200 perf_evsel__read(evsel, 0, 0, &counts); 442 struct perf_counts_values counts[EVENT_NUM] = {{ .val = 0 },}; local [all...] |
/linux-master/tools/perf/scripts/python/bin/ |
H A D | syscall-counts-report | 2 # description: system-wide syscall counts 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts.py $comm
|
H A D | syscall-counts-by-pid-report | 2 # description: system-wide syscall counts, by pid 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm
|
/linux-master/samples/bpf/ |
H A D | sampleip_user.c | 82 struct ipcount counts[MAX_IPS]; variable in typeref:struct:ipcount 98 /* fetch IPs and counts */ 102 counts[i].ip = next_key; 103 counts[i++].count = value; 109 qsort(counts, max, sizeof(struct ipcount), count_cmp); 111 if (counts[i].ip > _text_addr) { 112 sym = ksym_search(counts[i].ip); 118 printf("0x%-17llx %-32s %u\n", counts[i].ip, sym->name, 119 counts[i].count); 121 printf("0x%-17llx %-32s %u\n", counts[ [all...] |
H A D | trace_event_kern.c | 25 } counts SEC(".maps"); 71 val = bpf_map_lookup_elem(&counts, &key); 75 bpf_map_update_elem(&counts, &key, &one, BPF_NOEXIST);
|
H A D | offwaketime.bpf.c | 32 } counts SEC(".maps"); 94 val = bpf_map_lookup_elem(&counts, &key); 96 bpf_map_update_elem(&counts, &key, &zero, BPF_NOEXIST); 97 val = bpf_map_lookup_elem(&counts, &key);
|
/linux-master/tools/lib/perf/Documentation/examples/ |
H A D | counting.c | 24 struct perf_counts_values counts; local 73 perf_evsel__read(evsel, 0, 0, &counts); 75 counts.val, counts.ena, counts.run);
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | msi.c | 224 struct msi_counts *counts = data; local 234 counts->num_devices++; 241 struct msi_counts *counts = data; local 245 if (dn == counts->requestor) 246 req = counts->request; 260 if (req < counts->quota) 261 counts->spare += counts->quota - req; 262 else if (req > counts->quota) 263 counts 271 struct msi_counts counts; local [all...] |
/linux-master/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; 67 link->dp_trace.commit_lt_trace.counts.fail = fail_count; 74 link->dp_trace.detect_lt_trace.counts.total++; 76 link->dp_trace.commit_lt_trace.counts.total++; 138 return &link->dp_trace.detect_lt_trace.counts; 140 return &link->dp_trace.commit_lt_trace.counts;
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-vp9.c | 1674 const struct v4l2_vp9_frame_symbol_counts *counts, 1683 *counts->eob[i][j][k][l][m][1], 1684 *counts->eob[i][j][k][l][m][0] - *counts->eob[i][j][k][l][m][1], 1687 adapt_probs_variant_a_coef(p, *counts->coeff[i][j][k][l][m], uf); 1694 const struct v4l2_vp9_frame_symbol_counts *counts, 1702 _adapt_coeff(i, j, k, probs, counts, uf); 1706 struct v4l2_vp9_frame_symbol_counts *counts, 1711 _adapt_coef_probs(probs, counts, 112); 1714 _adapt_coef_probs(probs, counts, 12 1672 _adapt_coeff(unsigned int i, unsigned int j, unsigned int k, struct v4l2_vp9_frame_context *probs, const struct v4l2_vp9_frame_symbol_counts *counts, u32 uf) argument 1693 _adapt_coef_probs(struct v4l2_vp9_frame_context *probs, const struct v4l2_vp9_frame_symbol_counts *counts, unsigned int uf) argument 1705 v4l2_vp9_adapt_coef_probs(struct v4l2_vp9_frame_context *probs, struct v4l2_vp9_frame_symbol_counts *counts, bool use_128, bool frame_is_intra) argument 1753 adapt_prob(u8 prob, const u32 counts[2]) argument 1759 v4l2_vp9_adapt_noncoef_probs(struct v4l2_vp9_frame_context *probs, struct v4l2_vp9_frame_symbol_counts *counts, u8 reference_mode, u8 interpolation_filter, u8 tx_mode, u32 flags) argument [all...] |
/linux-master/drivers/md/ |
H A D | md-bitmap.c | 951 unsigned long chunk = block >> bitmap->counts.chunkshift; 982 unsigned long chunk = block >> bitmap->counts.chunkshift; 1012 unsigned long chunk = block >> bitmap->counts.chunkshift; 1111 unsigned long chunks = bitmap->counts.chunks; 1125 int needed = ((sector_t)(i+1) << (bitmap->counts.chunkshift) 1128 (sector_t)i << bitmap->counts.chunkshift, 1208 int needed = ((sector_t)(i+1) << bitmap->counts.chunkshift 1211 (sector_t)i << bitmap->counts.chunkshift, 1299 struct bitmap_counts *counts; local 1351 counts 2056 struct bitmap_counts *counts; local 2100 struct bitmap_counts *counts; local [all...] |
/linux-master/arch/x86/hyperv/ |
H A D | hv_proc.c | 27 int *counts; local 42 /* One buffer for page pointers and counts */ 48 counts = kcalloc(HV_DEPOSIT_MAX, sizeof(int), GFP_KERNEL); 49 if (!counts) { 74 counts[i] = 1 << order; 75 num_pages -= counts[i]; 89 for (j = 0; j < counts[i]; ++j, ++page_count) 107 for (j = 0; j < counts[i]; ++j) 113 kfree(counts);
|
/linux-master/tools/perf/tests/ |
H A D | openat-syscall.c | 15 #include "util/counts.h" 58 if (perf_counts(evsel->counts, 0, 0)->val != nr_openat_calls) { 60 nr_openat_calls, perf_counts(evsel->counts, 0, 0)->val);
|
H A D | mmap-basic.c | 174 struct perf_counts_values counts = { .val = 0 }; local 228 perf_evsel__read(evsel, 0, 0, &counts); 229 if (counts.val == 0) { 240 perf_evsel__read(evsel, 0, 0, &counts); 241 start = counts.val; 245 perf_evsel__read(evsel, 0, 0, &counts); 246 end = counts.val;
|
/linux-master/fs/xfs/scrub/ |
H A D | quotacheck_repair.c | 50 struct xfarray *counts = xqcheck_counters_for(xqc, dqtype); local 70 error = xfarray_load_sparse(counts, dq->q_id, &xcdq); 97 error = xfarray_store(counts, dq->q_id, &xcdq); 148 struct xfarray *counts = xqcheck_counters_for(xqc, dqtype); local 171 while ((error = xfarray_iter(counts, &cur, &xcdq)) == 1) { 254 /* Set the CHKD flags now that we've fixed quota counts. */
|
/linux-master/tools/testing/kunit/ |
H A D | kunit_parser.py | 35 counts : TestCounts - counts of the test statuses and errors of 46 self.counts = TestCounts() 51 f'{self.subtests}, {self.log}, {self.counts})') 59 self.counts.errors += 1 78 Tracks the counts of statuses of all test cases and any errors within 102 def add_subtest_counts(self, counts: TestCounts) -> None: 104 Adds the counts of another TestCounts object to the current 105 TestCounts object. Used to add the counts of a subtest to the 109 counts [all...] |
/linux-master/drivers/scsi/ |
H A D | ch.c | 115 u_int counts[CH_TYPES]; member in struct:__anon430 233 ch->counts[i]) 321 ch->counts[CHET_MT] = 325 ch->counts[CHET_ST] = 329 ch->counts[CHET_IE] = 333 ch->counts[CHET_DT] = 337 ch->counts[CHET_MT]); 340 ch->counts[CHET_ST]); 343 ch->counts[CHET_IE]); 346 ch->counts[CHET_D [all...] |