diff options
| author | Vishal Annapurve <[email protected]> | 2022-11-15 21:38:43 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2022-11-16 16:58:56 -0800 |
| commit | 197ebb713ad04518ffef6d966954b519a0805100 (patch) | |
| tree | 2c4a9c02a943939ccdf9d3f6f5ac50c725b1fc8e /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 96b69958c77d84e49c06ebe2e3502e4c1620e3c0 (diff) | |
KVM: selftests: move common startup logic to kvm_util.c
Consolidate common startup logic in one place by implementing a single
setup function with __attribute((constructor)) for all selftests within
kvm_util.c.
This allows moving logic like:
/* Tell stdout not to buffer its content */
setbuf(stdout, NULL);
to a single file for all selftests.
This will also allow any required setup at entry in future to be done in
common main function.
Link: https://lore.kernel.org/lkml/Ywa9T+jKUpaHLu%[email protected]
Suggested-by: Sean Christopherson <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Reviewed-by: Peter Gonda <[email protected]>
Signed-off-by: Vishal Annapurve <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions