Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse /sys/class/drm/cardN/device/ stats #370

Merged
merged 2 commits into from
Jun 23, 2021
Merged

Parse /sys/class/drm/cardN/device/ stats #370

merged 2 commits into from
Jun 23, 2021

Commits on Jun 6, 2021

  1. Parse /sys/class/drm/cardN/device/ stats

    This commits adds support for reading card stats exposed by drm.
    Only `amdgpu` driver currently exposes these stats but it should be
    easy to add more driver support if required.
    FreeBSD uses the same driver through `kms-drm` but it does not expose
    the attributes we are interested in through niether `sysctl` or `linsysfs`.
    
    Signed-off-by: Siavash Safi <siavash.safi@gmail.com>
    siavashs committed Jun 6, 2021
    Configuration menu
    Copy the full SHA
    c53ce81 View commit details
    Browse the repository at this point in the history
  2. Add tests for ClassDrmCardStats & update fixtures

    The fixtures are a snapshot from my Vega64 GPU, other cards might expose
    more or less stats based on kernel documentation.
    https://www.kernel.org/doc/html/latest/gpu/amdgpu.html
    
    Signed-off-by: Siavash Safi <siavash.safi@gmail.com>
    siavashs committed Jun 6, 2021
    Configuration menu
    Copy the full SHA
    1fccbdd View commit details
    Browse the repository at this point in the history