]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Implement perf_test_util more conventionally
authorAndrew Jones <drjones@redhat.com>
Fri, 18 Dec 2020 14:17:34 +0000 (15:17 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Jan 2021 23:07:31 +0000 (18:07 -0500)
commit4cd679a1aa8cc17dbb291da4d0c074746720efb8
tree51b14788afe31508550b0a6468d8fe6596261f22
parent6c7cc403cae0823a42e0942d5fc852cee0149ed1
KVM: selftests: Implement perf_test_util more conventionally

It's not conventional C to put non-inline functions in header
files. Create a source file for the functions instead. Also
reduce the amount of globals and rename the functions to
something less generic.

Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <20201218141734.54359-4-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/demand_paging_test.c
tools/testing/selftests/kvm/dirty_log_perf_test.c
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/include/perf_test_util.h
tools/testing/selftests/kvm/lib/perf_test_util.c [new file with mode: 0644]