Searched refs:old_count (Results 1 – 5 of 5) sorted by relevance
| /tools/perf/util/ |
| A D | tool_pmu.c | 442 struct perf_counts_values *count, *old_count = NULL; in evsel__tool_pmu_read() local 459 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__tool_pmu_read() 467 if (old_count) { in evsel__tool_pmu_read() 468 count->val = old_count->val + val; in evsel__tool_pmu_read() 469 count->run = old_count->run + 1; in evsel__tool_pmu_read() 470 count->ena = old_count->ena + 1; in evsel__tool_pmu_read()
|
| A D | intel-tpebs.c | 561 struct perf_counts_values *count, *old_count = NULL; in evsel__tpebs_read() local 571 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__tpebs_read() 628 if (old_count) { in evsel__tpebs_read() 629 count->val = old_count->val + val; in evsel__tpebs_read() 630 count->run = old_count->run + 1; in evsel__tpebs_read() 631 count->ena = old_count->ena + 1; in evsel__tpebs_read()
|
| A D | drm_pmu.c | 663 struct perf_counts_values *count, *old_count = NULL; in evsel__drm_pmu_read() local 673 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__drm_pmu_read() 676 if (old_count) { in evsel__drm_pmu_read() 677 count->val = old_count->val + counter; in evsel__drm_pmu_read() 678 count->run = old_count->run + 1; in evsel__drm_pmu_read() 679 count->ena = old_count->ena + 1; in evsel__drm_pmu_read()
|
| A D | hwmon_pmu.c | 813 struct perf_counts_values *count, *old_count = NULL; in evsel__hwmon_pmu_read() local 816 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__hwmon_pmu_read() 826 if (old_count) { in evsel__hwmon_pmu_read() 827 count->val = old_count->val + strtoll(buf, NULL, 10); in evsel__hwmon_pmu_read() 828 count->run = old_count->run + 1; in evsel__hwmon_pmu_read() 829 count->ena = old_count->ena + 1; in evsel__hwmon_pmu_read()
|
| A D | python.c | 938 struct perf_counts_values *old_count, *new_count; in pyrf_evsel__read() local 964 old_count = perf_counts(evsel->prev_raw_counts, cpu_idx, thread_idx); in pyrf_evsel__read() 970 count_values->values.val -= old_count->val; in pyrf_evsel__read() 971 count_values->values.ena -= old_count->ena; in pyrf_evsel__read() 972 count_values->values.run -= old_count->run; in pyrf_evsel__read() 974 *old_count = *new_count; in pyrf_evsel__read()
|
Completed in 17 milliseconds