int i915_mock_selftests(void); int i915_live_selftests(struct pci_dev *pdev); int i915_perf_selftests(struct pci_dev *pdev);
/* We extract the function declarations from i915_mock_selftests.h and * i915_live_selftests.h Add your unit test declarations there! * * Mock unit tests are run very early upon module load, before the driver * is probed. All hardware interactions, as well as other subsystems, must * be "mocked". * * Live unit tests are run after the driver is loaded - all hardware * interactions are real.
*/ #define selftest(name, func) int func(void); #include"selftests/i915_mock_selftests.h" #undef selftest #define selftest(name, func) int func(struct drm_i915_private *i915); #include"selftests/i915_live_selftests.h" #include"selftests/i915_perf_selftests.h" #undef selftest
struct i915_subtest { int (*func)(void *data); constchar *name;
};
int __i915_nop_setup(void *data); int __i915_nop_teardown(int err, void *data);
int __i915_live_setup(void *data); int __i915_live_teardown(int err, void *data);
int __intel_gt_live_setup(void *data); int __intel_gt_live_teardown(int err, void *data);
/* Using the i915_selftest_ prefix becomes a little unwieldy with the helpers. * Instead we use the igt_ shorthand, in reference to the intel-gpu-tools * suite of uabi test cases (which includes a test runner for our selftests).
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.