mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
test-coroutine: add missing coroutine_fn annotations
Callers of coroutine_fn must be coroutine_fn themselves, or the call must be within "if (qemu_in_coroutine())". Apply coroutine_fn to functions where this holds. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Alberto Faria <afaria@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220922084924.201610-27-pbonzini@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
38e8f9af08
commit
f7bbb1564d
1 changed files with 1 additions and 1 deletions
|
@ -610,7 +610,7 @@ static void perf_baseline(void)
|
||||||
g_test_message("Function call %u iterations: %f s", maxcycles, duration);
|
g_test_message("Function call %u iterations: %f s", maxcycles, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __attribute__((noinline)) void perf_cost_func(void *opaque)
|
static __attribute__((noinline)) void coroutine_fn perf_cost_func(void *opaque)
|
||||||
{
|
{
|
||||||
qemu_coroutine_yield();
|
qemu_coroutine_yield();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue