1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __PERF_VALUES_H 3 #define __PERF_VALUES_H 4 5 #include <stdio.h> 6 #include <linux/types.h> 7 8 struct evsel; 9 10 struct perf_read_values { 11 int threads; 12 int threads_max; 13 u32 *pid, *tid; 14 int num_counters; 15 int counters_max; 16 struct evsel **counters; 17 u64 **value; 18 }; 19 20 int perf_read_values_init(struct perf_read_values *values); 21 void perf_read_values_destroy(struct perf_read_values *values); 22 23 int perf_read_values_add_value(struct perf_read_values *values, 24 u32 pid, u32 tid, 25 struct evsel *evsel, u64 value); 26 27 void perf_read_values_display(FILE *fp, struct perf_read_values *values, 28 int raw); 29 30 #endif /* __PERF_VALUES_H */ 31