Skip to content
Snippets Groups Projects
Select Git revision
  • 1eafbd27edb5098ed6b6bc404c35d56c78beb0fd
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

test_util.h

  • Ben Gardon's avatar
    1eafbd27
    KVM: selftests: Simplify demand_paging_test with timespec_diff_now · 1eafbd27
    Ben Gardon authored
    
    Add a helper function to get the current time and return the time since
    a given start time. Use that function to simplify the timekeeping in the
    demand paging test.
    
    This series was tested by running the following invocations on an Intel
    Skylake machine:
    dirty_log_perf_test -b 20m -i 100 -v 64
    dirty_log_perf_test -b 20g -i 5 -v 4
    dirty_log_perf_test -b 4g -i 5 -v 32
    demand_paging_test -b 20m -v 64
    demand_paging_test -b 20g -v 4
    demand_paging_test -b 4g -v 32
    All behaved as expected.
    
    Signed-off-by: default avatarBen Gardon <bgardon@google.com>
    Message-Id: <20201027233733.1484855-4-bgardon@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    1eafbd27
    History
    KVM: selftests: Simplify demand_paging_test with timespec_diff_now
    Ben Gardon authored
    
    Add a helper function to get the current time and return the time since
    a given start time. Use that function to simplify the timekeeping in the
    demand paging test.
    
    This series was tested by running the following invocations on an Intel
    Skylake machine:
    dirty_log_perf_test -b 20m -i 100 -v 64
    dirty_log_perf_test -b 20g -i 5 -v 4
    dirty_log_perf_test -b 4g -i 5 -v 32
    demand_paging_test -b 20m -v 64
    demand_paging_test -b 20g -v 4
    demand_paging_test -b 4g -v 32
    All behaved as expected.
    
    Signed-off-by: default avatarBen Gardon <bgardon@google.com>
    Message-Id: <20201027233733.1484855-4-bgardon@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>