[Intel-gfx] [PATCH] lib: Add a YAML emitter

Jani Nikula jani.nikula at intel.com
Fri Feb 14 07:57:09 UTC 2020


On Thu, 13 Feb 2020, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> Provide a library to generate correct YAML for use in structured debugfs
> or similar information dumps. This will be useful to pull our large
> information dumps into a forwards compatible, parse-able file-format by
> forcing some structure upon ourselves!

Acked-by: Jani Nikula <jani.nikula at intel.com>

I like the idea. I like the prospect of converting *all* of our bigger
debugfs files to have some structure. Why not smaller ones too, to be
uniform. Not entirely sold on using it in sysfs, like the example code
did, but even that might be justified for capturing a state.

For many things I do like json, but yaml is definitely more human
readable as-is and more suitable for debugfs.

I expect the biggest uphill to be merging the bulk of stuff to
lib/. It's a lot of code in one go.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Intel-gfx mailing list