xref: /linux/tools/perf/util/values.h (revision 9f8666971185b86615a074bcac67c90fdf8af8bc)
18d513270SBrice Goglin #ifndef _PERF_VALUES_H
28d513270SBrice Goglin #define _PERF_VALUES_H
38d513270SBrice Goglin 
48d513270SBrice Goglin #include "types.h"
58d513270SBrice Goglin 
68d513270SBrice Goglin struct perf_read_values {
78d513270SBrice Goglin 	int threads;
88d513270SBrice Goglin 	int threads_max;
98d513270SBrice Goglin 	u32 *pid, *tid;
108d513270SBrice Goglin 	int counters;
118d513270SBrice Goglin 	int counters_max;
128d513270SBrice Goglin 	u64 *counterrawid;
138d513270SBrice Goglin 	char **countername;
148d513270SBrice Goglin 	u64 **value;
158d513270SBrice Goglin };
168d513270SBrice Goglin 
178d513270SBrice Goglin void perf_read_values_init(struct perf_read_values *values);
188d513270SBrice Goglin void perf_read_values_destroy(struct perf_read_values *values);
198d513270SBrice Goglin 
208d513270SBrice Goglin void perf_read_values_add_value(struct perf_read_values *values,
218d513270SBrice Goglin 				u32 pid, u32 tid,
228d513270SBrice Goglin 				u64 rawid, char *name, u64 value);
238d513270SBrice Goglin 
24*9f866697SBrice Goglin void perf_read_values_display(FILE *fp, struct perf_read_values *values,
25*9f866697SBrice Goglin 			      int raw);
268d513270SBrice Goglin 
278d513270SBrice Goglin #endif /* _PERF_VALUES_H */
28