From: Vincent Guittot vincent.guittot@linaro.org
Add a trace point for end of run loop
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org --- src/rt-app.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/src/rt-app.c b/src/rt-app.c index ff40287..958be5f 100644 --- a/src/rt-app.c +++ b/src/rt-app.c @@ -95,6 +95,11 @@ void run(int ind, struct timespec *min, struct timespec *max,
/* Compute finish time for CPUTIME_ID clock */ t_exec = timespec_add(&t_start, &t_totexec); + log_debug("[%d] busywait for %lu", ind, timespec_to_usec(&t_exec)); + if (opts.ftrace) + log_ftrace(ft_data.marker_fd, + "[%d] busywait for %d", + ind, timespec_to_usec(&t_exec)); busywait(&t_exec); }