On Monday, November 15th, 2021 at 15:20, Daniel Vetter daniel@ffwll.ch wrote:
On Mon, Nov 15, 2021 at 12:09:47PM +0000, Simon Ser wrote:
On Thursday, November 11th, 2021 at 12:50, Daniel Stone daniel@fooishbar.org wrote:
In fairness it is perfectly clear, it's just that I never considered calling it without master/admin because why would you ever do that?
FWIW, drm_info does it to display the current buffers metadata. Pretty useful when debugging.
We also have the state debugfs file for this, which should dump everything we can decode. If it doesn't we should extend it there ideally, instead of hand-rolling some tool that users/devs then don't have handy. debugfs tends to be there (at least for developers).
The debugfs output isn't as nice as drm_info, and can't produce structured output like JSON.