Lines Matching refs:perf_data
4205 unsigned long long perf_data[NUM_RAPL_COUNTERS + 1]; in get_rapl_counters() local
4222 const ssize_t actual_read_size = read(rci->fd_perf, &perf_data[0], sizeof(perf_data)); in get_rapl_counters()
4236 assert(pi < ARRAY_SIZE(perf_data)); in get_rapl_counters()
4241 i, perf_data[pi], rci->scale[i], perf_data[pi] * rci->scale[i]); in get_rapl_counters()
4243 rci->data[i] = perf_data[pi]; in get_rapl_counters()
4302 unsigned long long perf_data[NUM_CSTATE_COUNTERS]; in get_cstate_counters() local
4314 ZERO_ARRAY(perf_data); in get_cstate_counters()
4364 memcpy(&perf_data[0], &perf_data_core[1], num_core_counters * sizeof(unsigned long long)); in get_cstate_counters()
4367 …memcpy(&perf_data[num_core_counters], &perf_data_pkg[1], num_pkg_counters * sizeof(unsigned long l… in get_cstate_counters()
4375 assert(pi < ARRAY_SIZE(perf_data)); in get_cstate_counters()
4379 fprintf(stderr, "cstate via %s %u: %llu\n", "perf", i, perf_data[pi]); in get_cstate_counters()
4381 cci->data[i] = perf_data[pi]; in get_cstate_counters()
4443 unsigned long long perf_data[NUM_MSR_COUNTERS + 1]; in get_smi_aperf_mperf() local
4455 ZERO_ARRAY(perf_data); in get_smi_aperf_mperf()
4461 const ssize_t actual_read_size = read(mci->fd_perf, &perf_data[0], sizeof(perf_data)); in get_smi_aperf_mperf()
4474 assert(pi < ARRAY_SIZE(perf_data)); in get_smi_aperf_mperf()
4478 fprintf(stderr, "Reading msr counter via perf at %u: %llu\n", i, perf_data[pi]); in get_smi_aperf_mperf()
4480 mci->data[i] = perf_data[pi]; in get_smi_aperf_mperf()