A Python library that converts AMDGPU PowerPlay tables to ctypes structs.
Uses code generated from MIT-licensed AMDGPU Linux driver headers.
For a Qt GUI editor see amdgpu-pptable-editor-qt
Generated code is tracked in git, it is located in src/amdgpu_pptable/generated
.
To re-generate it (with, maybe, different kernel sources):
$ tox -e generate-ctypes -- -k path/to/kernel/sources