diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-08-15 07:34:27 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-10-18 16:14:02 -0400 |
commit | 80e2d84533265a8231534f10c56d9eba01cec99a (patch) | |
tree | b980aed88b8cfa79ab6d271b93fb51093694f855 /litmus/sched_litmus.c | |
parent | 5454446ed47708b26d40337e47affea5e1f298ef (diff) |
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.
Diffstat (limited to 'litmus/sched_litmus.c')
-rw-r--r-- | litmus/sched_litmus.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, | |||
194 | 194 | ||
195 | static void yield_task_litmus(struct rq *rq) | 195 | static void yield_task_litmus(struct rq *rq) |
196 | { | 196 | { |
197 | TS_SYSCALL_IN_START; | ||
198 | TS_SYSCALL_IN_END; | ||
199 | |||
197 | BUG_ON(rq->curr != current); | 200 | BUG_ON(rq->curr != current); |
198 | /* sched_yield() is called to trigger delayed preemptions. | 201 | /* sched_yield() is called to trigger delayed preemptions. |
199 | * Thus, mark the current task as needing to be rescheduled. | 202 | * Thus, mark the current task as needing to be rescheduled. |
@@ -202,6 +205,8 @@ static void yield_task_litmus(struct rq *rq) | |||
202 | */ | 205 | */ |
203 | clear_exit_np(current); | 206 | clear_exit_np(current); |
204 | litmus_reschedule_local(); | 207 | litmus_reschedule_local(); |
208 | |||
209 | TS_SYSCALL_OUT_START; | ||
205 | } | 210 | } |
206 | 211 | ||
207 | /* Plugins are responsible for this. | 212 | /* Plugins are responsible for this. |