@@ -190,6 +190,12 @@ igt_drm_client_add(struct igt_drm_clients *clients,
c->drm_minor = drm_minor;
c->clients = clients;
+ /* Save driver and pdev info for later use */
+ if (info->driver && info->pdev) {
+ strncpy(c->driver, info->driver, sizeof(c->driver));
+ strncpy(c->pdev, info->pdev, sizeof(c->pdev));
+ }
+
/* Engines */
c->engines = calloc(1, sizeof(*c->engines));
assert(c->engines);
@@ -86,6 +86,10 @@ struct igt_drm_client {
uint64_t last_total_cycles; /* Engine total cycles data as parsed from fdinfo. */
} *utilization; /* Array of engine utilization */
+ void *pmu_info; /* Pointer to structure that holds client PMU info */
+ char driver[128];
+ char pdev[128];
+
struct drm_client_meminfo *memory; /* Array of region memory utilisation as parsed from fdinfo. */
};