if { ![have_spec foc] && ![have_spec hw] && ![have_spec nova] && ![have_spec okl4] && ![have_spec sel4] } { puts "Run script is not supported on this platform" exit 0 } build { core init drivers/timer server/cpu_sampler test/cpu_sampler } create_boot_directory install_config { } build_boot_image { core init timer cpu_sampler test-cpu_sampler } append qemu_args "-nographic -m 128" set match_string "Test started. func: 0x(\[0-9a-f\]+).*\n" run_genode_until "$match_string" 10 regexp $match_string $output all func run_genode_until "\\\[init -> cpu_sampler -> samples -> init -> test-cpu_sampler -> ep\\\.1] \[0\]*$func" 2 [output_spawn_id]