summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/bench/main.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index 02c775e8f..48598a9b0 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -524,7 +524,14 @@ async fn main() -> Result<()> {
file.as_file_mut().read_to_string(&mut output)?;
let strace_result = test_util::parse_strace_output(&output);
- let clone = strace_result.get("clone").map(|d| d.calls).unwrap_or(0) + 1;
+ let clone =
+ strace_result
+ .get("clone")
+ .map(|d| d.calls)
+ .unwrap_or_else(|| {
+ strace_result.get("clone3").map(|d| d.calls).unwrap_or(0)
+ })
+ + 1;
let total = strace_result.get("total").unwrap().calls;
thread_count.insert(name.to_string(), clone as i64);
syscall_count.insert(name.to_string(), total as i64);