From 8dda052c7d97f814512a762bf45bb2262a771075 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Fri, 18 Mar 2022 05:47:30 -0400 Subject: [PATCH] performance-metrics: disable net latency test on AArch64 As ethr is not stable on AArch64, disable it until we find other tool. Signed-off-by: Jianyong Wu Signed-off-by: Henry Wang --- performance-metrics/src/main.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/performance-metrics/src/main.rs b/performance-metrics/src/main.rs index cbd1fd6cc..1b756e342 100644 --- a/performance-metrics/src/main.rs +++ b/performance-metrics/src/main.rs @@ -447,8 +447,16 @@ fn main() { ) .get_matches(); + // It seems that the tool (ethr) used for testing the virtio-net latency + // is not stable on AArch64, and therefore the latency test is currently + // skipped on AArch64. + let test_list: Vec<&PerformanceTest> = TEST_LIST + .iter() + .filter(|t| !(cfg!(target_arch = "aarch64") && t.name == "virtio_net_latency_us")) + .collect(); + if cmd_arguments.is_present("list-tests") { - for test in TEST_LIST.iter() { + for test in test_list.iter() { println!("\"{}\" ({})", test.name, test.control); } @@ -465,7 +473,7 @@ fn main() { init_tests(); - for test in TEST_LIST.iter() { + for test in test_list.iter() { if test_filter.is_empty() || test_filter.iter().any(|&s| test.name.contains(s)) { match run_test_with_timeout(test) { Ok(r) => {