diff options
| author | Maxime Ripard <[email protected]> | 2023-07-28 11:06:19 +0200 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2023-07-31 14:19:57 +0200 |
| commit | 394ba10e476d092111ebb3419f771bde419a037e (patch) | |
| tree | 1cec1613bf01828a5dc45c588a7b4bc2b0847d3c /tools/perf/scripts/python/intel-pt-events.py | |
| parent | 6e193f9fbbb02e1bde88510a71823e5bf83c2010 (diff) | |
drm/tests: helpers: Create a helper to allocate an atomic state
As we gain more tests, boilerplate to allocate an atomic state and free
it starts to be there more and more as well.
In order to reduce the allocation boilerplate, we can create a helper
to create that atomic state, and call an action when the test is done.
This will also clean up the exit path.
Reviewed-by: Javier Martinez Canillas <[email protected]>
Reviewed-by: MaĆra Canal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions