v3d_performance_counters.h 753 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2024 Raspberry Pi
  4. */
  5. #ifndef V3D_PERFORMANCE_COUNTERS_H
  6. #define V3D_PERFORMANCE_COUNTERS_H
  7. /* Holds a description of a given performance counter. The index of performance
  8. * counter is given by the array on v3d_performance_counter.h
  9. */
  10. struct v3d_perf_counter_desc {
  11. /* Category of the counter */
  12. char category[32];
  13. /* Name of the counter */
  14. char name[64];
  15. /* Description of the counter */
  16. char description[256];
  17. };
  18. struct v3d_perfmon_info {
  19. /*
  20. * Different revisions of V3D have different total number of
  21. * performance counters.
  22. */
  23. unsigned int max_counters;
  24. /*
  25. * Array of counters valid for the platform.
  26. */
  27. const struct v3d_perf_counter_desc *counters;
  28. };
  29. #endif