[igt-dev] [PATCH i-g-t v2 06/15] intel_gpu_top: Add an array of freq and rc6 counters
Umesh Nerlige Ramappa
umesh.nerlige.ramappa at intel.com
Wed May 17 21:25:33 UTC 2023
Since rc6 and frequency events are specific to a tile in multi-tile platforms,
prepare support for multi-tile by storing these events in an array.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
tools/intel_gpu_top.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 453090c29..ae086ae12 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -88,6 +88,7 @@ struct engine {
struct pmu_counter sema;
};
+#define MAX_GTS 4
struct engines {
unsigned int num_engines;
unsigned int num_classes;
@@ -107,9 +108,12 @@ struct engines {
unsigned int num_imc;
struct pmu_counter freq_req;
+ struct pmu_counter freq_req_gt[MAX_GTS];
struct pmu_counter freq_act;
+ struct pmu_counter freq_act_gt[MAX_GTS];
struct pmu_counter irq;
struct pmu_counter rc6;
+ struct pmu_counter rc6_gt[MAX_GTS];
bool discrete;
char *device;
--
2.36.1
More information about the igt-dev
mailing list