diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:54 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:13:32 -0400 |
commit | 4d9493c90f8e6e1b164aede3814010a290161abb (patch) | |
tree | ff92e089d2da9fb5a40511d81f8e57a7e06fdf80 /kernel/sched.c | |
parent | d05cdb25d80f06f77aa6bddb53cd1390d4d91a0b (diff) |
ftrace: remove add-hoc code
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 1ec3fb2efee6..ad95cca4e42e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2412,53 +2412,6 @@ static int sched_balance_self(int cpu, int flag) | |||
2412 | 2412 | ||
2413 | #endif /* CONFIG_SMP */ | 2413 | #endif /* CONFIG_SMP */ |
2414 | 2414 | ||
2415 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | ||
2416 | |||
2417 | void ftrace_task(struct task_struct *p, void *__tr, void *__data) | ||
2418 | { | ||
2419 | #if 0 | ||
2420 | /* | ||
2421 | * trace timeline tree | ||
2422 | */ | ||
2423 | __trace_special(__tr, __data, | ||
2424 | p->pid, p->se.vruntime, p->se.sum_exec_runtime); | ||
2425 | #else | ||
2426 | /* | ||
2427 | * trace balance metrics | ||
2428 | */ | ||
2429 | __trace_special(__tr, __data, | ||
2430 | p->pid, p->se.avg_overlap, 0); | ||
2431 | #endif | ||
2432 | } | ||
2433 | |||
2434 | void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data) | ||
2435 | { | ||
2436 | struct task_struct *p; | ||
2437 | struct sched_entity *se; | ||
2438 | struct rb_node *curr; | ||
2439 | struct rq *rq = __rq; | ||
2440 | |||
2441 | if (rq->cfs.curr) { | ||
2442 | p = task_of(rq->cfs.curr); | ||
2443 | ftrace_task(p, __tr, __data); | ||
2444 | } | ||
2445 | if (rq->cfs.next) { | ||
2446 | p = task_of(rq->cfs.next); | ||
2447 | ftrace_task(p, __tr, __data); | ||
2448 | } | ||
2449 | |||
2450 | for (curr = first_fair(&rq->cfs); curr; curr = rb_next(curr)) { | ||
2451 | se = rb_entry(curr, struct sched_entity, run_node); | ||
2452 | if (!entity_is_task(se)) | ||
2453 | continue; | ||
2454 | |||
2455 | p = task_of(se); | ||
2456 | ftrace_task(p, __tr, __data); | ||
2457 | } | ||
2458 | } | ||
2459 | |||
2460 | #endif | ||
2461 | |||
2462 | /*** | 2415 | /*** |
2463 | * try_to_wake_up - wake up a thread | 2416 | * try_to_wake_up - wake up a thread |
2464 | * @p: the to-be-woken-up thread | 2417 | * @p: the to-be-woken-up thread |