values.h 676 B

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