Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121275
b: refs/heads/master
c: cbc34ed
h: refs/heads/master
i:
  121273: dd35dd7
  121271: 4565b63
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 12, 2008
1 parent e445b4c commit 052dd41
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da485e0cb16726797e99a595a399b9fc721b91bc
refs/heads/master: cbc34ed1ac36690f75fd272e19e7b4fc29aae5a2
8 changes: 2 additions & 6 deletions trunk/include/trace/boot.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#ifndef _LINUX_TRACE_BOOT_H
#define _LINUX_TRACE_BOOT_H

#include <linux/module.h>
#include <linux/kallsyms.h>
#include <linux/init.h>

/*
* Structure which defines the trace of an initcall
* while it is called.
Expand All @@ -13,15 +9,15 @@
*/
struct boot_trace_call {
pid_t caller;
char func[KSYM_SYMBOL_LEN];
char func[KSYM_NAME_LEN];
};

/*
* Structure which defines the trace of an initcall
* while it returns.
*/
struct boot_trace_ret {
char func[KSYM_SYMBOL_LEN];
char func[KSYM_NAME_LEN];
int result;
unsigned long long duration; /* nsecs */
};
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/trace/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ DECLARE_TRACE(sched_switch,
TPARGS(rq, prev, next));

DECLARE_TRACE(sched_migrate_task,
TPPROTO(struct rq *rq, struct task_struct *p, int dest_cpu),
TPARGS(rq, p, dest_cpu));
TPPROTO(struct task_struct *p, int orig_cpu, int dest_cpu),
TPARGS(p, orig_cpu, dest_cpu));

DECLARE_TRACE(sched_process_free,
TPPROTO(struct task_struct *p),
Expand Down
3 changes: 2 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,8 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)

clock_offset = old_rq->clock - new_rq->clock;

trace_sched_migrate_task(p, task_cpu(p), new_cpu);

#ifdef CONFIG_SCHEDSTATS
if (p->se.wait_start)
p->se.wait_start -= clock_offset;
Expand Down Expand Up @@ -2868,7 +2870,6 @@ static void sched_migrate_task(struct task_struct *p, int dest_cpu)
|| unlikely(!cpu_active(dest_cpu)))
goto out;

trace_sched_migrate_task(rq, p, dest_cpu);
/* force the process onto the specified CPU */
if (migrate_task(p, dest_cpu, &req)) {
/* Need to wait for migration thread (might exit: take ref). */
Expand Down

0 comments on commit 052dd41

Please sign in to comment.