values.h 618 B

12345678910111213141516171819202122232425262728
  1. #ifndef __PERF_VALUES_H
  2. #define __PERF_VALUES_H
  3. #include "types.h"
  4. struct perf_read_values {
  5. int threads;
  6. int threads_max;
  7. u32 *pid, *tid;
  8. int counters;
  9. int counters_max;
  10. u64 *counterrawid;
  11. char **countername;
  12. u64 **value;
  13. };
  14. void perf_read_values_init(struct perf_read_values *values);
  15. void perf_read_values_destroy(struct perf_read_values *values);
  16. void perf_read_values_add_value(struct perf_read_values *values,
  17. u32 pid, u32 tid,
  18. u64 rawid, const char *name, u64 value);
  19. void perf_read_values_display(FILE *fp, struct perf_read_values *values,
  20. int raw);
  21. #endif /* __PERF_VALUES_H */