Lines Matching refs:parse_cpu_set
78 fn parse_cpu_set(s: &str) -> argument::Result<Vec<usize>> { in parse_cpu_set() function
142 let host_cpu_set = parse_cpu_set(assignment[1])?; in parse_cpu_affinity()
152 Ok(VcpuAffinity::Global(parse_cpu_set(s)?)) in parse_cpu_affinity()
850 cfg.rt_cpus = parse_cpu_set(value.unwrap())?; in set_argument()
2413 assert_eq!(parse_cpu_set("123").expect("parse failed"), vec![123]); in parse_cpu_set_single()
2419 parse_cpu_set("0,1,2,3").expect("parse failed"), in parse_cpu_set_list()
2427 parse_cpu_set("0-3").expect("parse failed"), in parse_cpu_set_range()
2435 parse_cpu_set("3-4,7-9,18").expect("parse failed"), in parse_cpu_set_list_of_ranges()
2443 assert_eq!(parse_cpu_set("1,1,1").expect("parse failed"), vec![1, 1, 1]); in parse_cpu_set_repeated()
2449 parse_cpu_set("-3").expect_err("parse should have failed"); in parse_cpu_set_negative()
2455 parse_cpu_set("5-2").expect_err("parse should have failed"); in parse_cpu_set_reverse_range()
2460 parse_cpu_set("3-").expect_err("parse should have failed"); in parse_cpu_set_open_range()
2465 parse_cpu_set("0,1,2,").expect_err("parse should have failed"); in parse_cpu_set_extra_comma()