[PATCH v15 0/5] Add per-device engine activity stats in GPUTOP

Soham Purkait soham.purkait at intel.com
Wed Jun 25 07:28:43 UTC 2025


Add per-device engine activity stat support in GPUTOP.
This leverages the PMU interface to display the activity of
engine instances for the array of requested or all devices.

    This patch refactors GPUTOP to be vendor-agnostic, laying
the groundwork for future support of multiple GPU vendors.

    Currently, GPUTOP supports GPUs with Xe driver only
and can monitor the engine activities of multiple GPU
devices simultaneously through abstracting vendor 
specific code into a common interface and implementing 
vendor-neutral APIs for monitoring.

DRIVER: xe || BDF: 0000:03:00.0
   GT:0 Render/3D/0| 99.1% ███████████████████████████████████████████████████|
     GT:0 Blitter/0| 59.2% ██████████████████████████████                     |
     GT:0 Compute/0| 49.2% █████████████████████████                          |
       GT:1 Video/0| 89.3% ██████████████████████████████████████████████     |
       GT:1 Video/1|  0.0%                                                    |
GT:1 VideoEnhance/0| 98.5% ██████████████████████████████████████████████████ |
GT:1 VideoEnhance/1|  0.0%                                                    |

Soham Purkait (5):
  lib/igt_device_scan: Add support for the device filter
  lib/igt_device_scan: Enable finding all matched IGT devices
  tools/gputop/utils: Add gputop utility functions common to all drivers
  tools/gputop/xe_gputop: Add gputop support for xe specific devices
  tools/gputop/gputop: Enable support for multiple GPUs and instances

 lib/igt_device_scan.c       | 128 +++++++++++++
 lib/igt_device_scan.h       |   1 +
 tools/{ => gputop}/gputop.c | 237 +++++++++++++++++++----
 tools/gputop/meson.build    |   6 +
 tools/gputop/utils.c        |  51 +++++
 tools/gputop/utils.h        |  63 +++++++
 tools/gputop/xe_gputop.c    | 361 ++++++++++++++++++++++++++++++++++++
 tools/gputop/xe_gputop.h    |  59 ++++++
 tools/meson.build           |   6 +-
 9 files changed, 868 insertions(+), 44 deletions(-)
 rename tools/{ => gputop}/gputop.c (64%)
 create mode 100644 tools/gputop/meson.build
 create mode 100644 tools/gputop/utils.c
 create mode 100644 tools/gputop/utils.h
 create mode 100644 tools/gputop/xe_gputop.c
 create mode 100644 tools/gputop/xe_gputop.h

-- 
2.34.1



More information about the igt-dev mailing list