1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2024 Raspberry Pi
6 #ifndef V3D_PERFORMANCE_COUNTERS_H
7 #define V3D_PERFORMANCE_COUNTERS_H
9 /* Holds a description of a given performance counter. The index of
10 * performance counter is given by the array on `v3d_performance_counter.c`.
12 struct v3d_perf_counter_desc {
13 /* Category of the counter */
16 /* Name of the counter */
19 /* Description of the counter */
20 char description[256];
23 struct v3d_perfmon_info {
24 /* Different revisions of V3D have different total number of
25 * performance counters.
27 unsigned int max_counters;
29 /* Array of counters valid for the platform. */
30 const struct v3d_perf_counter_desc *counters;