John Kacur | 8b40f52 | 2009-09-24 18:02:18 +0200 | [diff] [blame] | 1 | #ifndef __PERF_VALUES_H |
| 2 | #define __PERF_VALUES_H |
Brice Goglin | 8d51327 | 2009-08-07 13:55:24 +0200 | [diff] [blame] | 3 | |
| 4 | #include "types.h" |
| 5 | |
| 6 | struct perf_read_values { |
| 7 | int threads; |
| 8 | int threads_max; |
| 9 | u32 *pid, *tid; |
| 10 | int counters; |
| 11 | int counters_max; |
| 12 | u64 *counterrawid; |
| 13 | char **countername; |
| 14 | u64 **value; |
| 15 | }; |
| 16 | |
| 17 | void perf_read_values_init(struct perf_read_values *values); |
| 18 | void perf_read_values_destroy(struct perf_read_values *values); |
| 19 | |
| 20 | void perf_read_values_add_value(struct perf_read_values *values, |
| 21 | u32 pid, u32 tid, |
Ingo Molnar | 83a0944 | 2009-08-15 12:26:57 +0200 | [diff] [blame] | 22 | u64 rawid, const char *name, u64 value); |
Brice Goglin | 8d51327 | 2009-08-07 13:55:24 +0200 | [diff] [blame] | 23 | |
Brice Goglin | 9f86669 | 2009-08-10 15:26:32 +0200 | [diff] [blame] | 24 | void perf_read_values_display(FILE *fp, struct perf_read_values *values, |
| 25 | int raw); |
Brice Goglin | 8d51327 | 2009-08-07 13:55:24 +0200 | [diff] [blame] | 26 | |
John Kacur | 8b40f52 | 2009-09-24 18:02:18 +0200 | [diff] [blame] | 27 | #endif /* __PERF_VALUES_H */ |