| /linux/tools/perf/util/ |
| H A D | counts.h | 12 struct perf_counts { struct 20 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts() argument 26 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int 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() 37 struct perf_counts *perf_counts__new(int ncpus, int nthreads); 38 void perf_counts__delete(struct perf_counts *counts); 39 void perf_counts__reset(struct perf_counts *counts);
|
| H A D | counts.c | 10 struct perf_counts *perf_counts__new(int ncpus, int nthreads) in perf_counts__new() 12 struct perf_counts *counts = zalloc(sizeof(*counts)); in perf_counts__new() 38 void perf_counts__delete(struct perf_counts *counts) in perf_counts__delete() 47 void perf_counts__reset(struct perf_counts *counts) in perf_counts__reset()
|
| H A D | stat.c | 158 struct perf_counts *counts; in evsel__alloc_prev_raw_counts() 255 *perf_counts(evsel->counts, idx, thread) = in evsel__copy_prev_raw_counts() 256 *perf_counts(evsel->prev_raw_counts, idx, thread); in evsel__copy_prev_raw_counts() 473 perf_counts(counter->counts, idx, thread))) in process_counter_maps() 673 ptr = perf_counts(counter->counts, cpu_map_idx, st->thread); in perf_event__process_stat_event()
|
| H A D | bpf_counter.c | 304 counts = perf_counts(evsel->counts, idx, 0); in bpf_program_profiler__read() 327 counts = perf_counts(evsel->counts, i, 0); in bpf_program_profiler__read() 717 counts = perf_counts(evsel->counts, j, 0); in bperf__read() 727 counts = perf_counts(evsel->counts, i, 0); in bperf__read() 734 counts = perf_counts(evsel->counts, 0, i); in bperf__read()
|
| H A D | evsel.h | 18 struct perf_counts; 106 struct perf_counts *counts; 107 struct perf_counts *prev_raw_counts;
|
| H A D | tool_pmu.c | 479 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__tool_pmu_read() 481 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__tool_pmu_read()
|
| H A D | intel-tpebs.c | 563 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__tpebs_read() 565 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__tpebs_read()
|
| H A D | drm_pmu.c | 672 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__drm_pmu_read() 674 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__drm_pmu_read()
|
| H A D | bpf_counter_cgroup.c | 301 counts = perf_counts(evsel->counts, i, 0); in bperf_cgrp__read()
|
| H A D | hwmon_pmu.c | 815 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__hwmon_pmu_read() 817 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__hwmon_pmu_read()
|
| H A D | python.c | 1175 old_count = perf_counts(evsel->prev_raw_counts, cpu_idx, thread_idx); in pyrf_evsel__read() 1176 new_count = perf_counts(evsel->counts, cpu_idx, thread_idx); in pyrf_evsel__read() 1381 old_count = perf_counts(cur->prev_raw_counts, cpu_idx, thread_idx); in prepare_metric() 1382 new_count = perf_counts(cur->counts, cpu_idx, thread_idx); in prepare_metric()
|
| H A D | evsel.c | 1909 tmp = *perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__compute_deltas() 1910 *perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread) = *count; 1919 struct perf_counts_values *count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__set_count() 1929 count = perf_counts(counter->counts, cpu_map_idx, thread); in evsel__set_count() 2120 *perf_counts(evsel->counts, cpu_map_idx, thread) = count; in evsel__match_other_cpu()
|
| /linux/tools/perf/tests/ |
| H A D | openat-syscall.c | 58 if (perf_counts(evsel->counts, 0, 0)->val != nr_openat_calls) { in test__openat_syscall_event() 60 nr_openat_calls, perf_counts(evsel->counts, 0, 0)->val); in test__openat_syscall_event()
|
| H A D | openat-syscall-all-cpus.c | 109 if (perf_counts(evsel->counts, idx, 0)->val != expected) { in test__openat_syscall_event_on_all_cpus() 111 expected, cpu.cpu, perf_counts(evsel->counts, idx, 0)->val); in test__openat_syscall_event_on_all_cpus()
|
| /linux/tools/perf/ |
| H A D | builtin-stat.c | 293 perf_counts(counter->counts, cpu_map_idx, thread); in read_single_counter() 298 old_count = perf_counts(counter->prev_raw_counts, cpu_map_idx, thread); in read_single_counter() 333 count = perf_counts(counter->counts, cpu_map_idx, thread); in read_counter_cpu() 342 perf_counts(counter->counts, cpu_map_idx, thread)->ena = 0; in read_counter_cpu() 343 perf_counts(counter->counts, cpu_map_idx, thread)->run = 0; in read_counter_cpu()
|
| H A D | builtin-script.c | 2359 count = perf_counts(evsel->counts, cpu_map_idx, thread_map_idx); in perf_sample__fprint_metric() 2360 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread_map_idx); in perf_sample__fprint_metric() 2590 counts = perf_counts(counter->counts, idx, thread); in __process_stat()
|
| /linux/tools/perf/util/scripting-engines/ |
| H A D | trace-event-python.c | 1710 perf_counts(counter->counts, idx, thread)); in python_process_stat()
|