From 80e2d84533265a8231534f10c56d9eba01cec99a Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Wed, 15 Aug 2012 13:34:27 +0200 Subject: Feather-Trace: add support for locking-related syscall overheads Support recording timestamps that allow tracing the entry and exit costs of locking-related system calls. --- litmus/sched_litmus.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'litmus/sched_litmus.c') diff --git a/litmus/sched_litmus.c b/litmus/sched_litmus.c index 6553948407de..6b32cf09abbd 100644 --- a/litmus/sched_litmus.c +++ b/litmus/sched_litmus.c @@ -194,6 +194,9 @@ static void dequeue_task_litmus(struct rq *rq, struct task_struct *p, static void yield_task_litmus(struct rq *rq) { + TS_SYSCALL_IN_START; + TS_SYSCALL_IN_END; + BUG_ON(rq->curr != current); /* sched_yield() is called to trigger delayed preemptions. * Thus, mark the current task as needing to be rescheduled. @@ -202,6 +205,8 @@ static void yield_task_litmus(struct rq *rq) */ clear_exit_np(current); litmus_reschedule_local(); + + TS_SYSCALL_OUT_START; } /* Plugins are responsible for this. -- cgit v1.2.2