xref: /linux/tools/perf/util/values.h (revision 8b40f521cf1c9750eab0c04da9075e7484675e9c)
1*8b40f521SJohn Kacur #ifndef __PERF_VALUES_H
2*8b40f521SJohn Kacur #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,
2283a0944fSIngo Molnar 				u64 rawid, const char *name, u64 value);
238d513270SBrice Goglin 
249f866697SBrice Goglin void perf_read_values_display(FILE *fp, struct perf_read_values *values,
259f866697SBrice Goglin 			      int raw);
268d513270SBrice Goglin 
27*8b40f521SJohn Kacur #endif /* __PERF_VALUES_H */
28