values.h 661 B

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