igt_core: add igt_constructor
This is a simple macro for executing a block of code at the beginning of intel-gpu-tools, before any tests have been ran. Useful for initialization of global resources used in IGT libraries. Signed-off-by: Lyude <email@example.com> Reviewed-by: Chris Wilson <firstname.lastname@example.org> Changes since v1: - Add the line number into the name of the constructor function so that multiple constructors may be used per-file.
Showing with 14 additions and 0 deletions