diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/trace/events/sched.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/trace/events/sched.h')
-rw-r--r-- | include/trace/events/sched.h | 47 |
1 files changed, 4 insertions, 43 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 5a8671e8a67..f6334782a59 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h | |||
@@ -6,7 +6,6 @@ | |||
6 | 6 | ||
7 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
8 | #include <linux/tracepoint.h> | 8 | #include <linux/tracepoint.h> |
9 | #include <linux/binfmts.h> | ||
10 | 9 | ||
11 | /* | 10 | /* |
12 | * Tracepoint for calling kthread_stop, performed to end a kthread: | 11 | * Tracepoint for calling kthread_stop, performed to end a kthread: |
@@ -73,9 +72,6 @@ DECLARE_EVENT_CLASS(sched_wakeup_template, | |||
73 | __entry->prio = p->prio; | 72 | __entry->prio = p->prio; |
74 | __entry->success = success; | 73 | __entry->success = success; |
75 | __entry->target_cpu = task_cpu(p); | 74 | __entry->target_cpu = task_cpu(p); |
76 | ) | ||
77 | TP_perf_assign( | ||
78 | __perf_task(p); | ||
79 | ), | 75 | ), |
80 | 76 | ||
81 | TP_printk("comm=%s pid=%d prio=%d success=%d target_cpu=%03d", | 77 | TP_printk("comm=%s pid=%d prio=%d success=%d target_cpu=%03d", |
@@ -104,7 +100,7 @@ static inline long __trace_sched_switch_state(struct task_struct *p) | |||
104 | * For all intents and purposes a preempted task is a running task. | 100 | * For all intents and purposes a preempted task is a running task. |
105 | */ | 101 | */ |
106 | if (task_thread_info(p)->preempt_count & PREEMPT_ACTIVE) | 102 | if (task_thread_info(p)->preempt_count & PREEMPT_ACTIVE) |
107 | state = TASK_RUNNING | TASK_STATE_MAX; | 103 | state = TASK_RUNNING; |
108 | #endif | 104 | #endif |
109 | 105 | ||
110 | return state; | 106 | return state; |
@@ -141,14 +137,13 @@ TRACE_EVENT(sched_switch, | |||
141 | __entry->next_prio = next->prio; | 137 | __entry->next_prio = next->prio; |
142 | ), | 138 | ), |
143 | 139 | ||
144 | TP_printk("prev_comm=%s prev_pid=%d prev_prio=%d prev_state=%s%s ==> next_comm=%s next_pid=%d next_prio=%d", | 140 | TP_printk("prev_comm=%s prev_pid=%d prev_prio=%d prev_state=%s ==> next_comm=%s next_pid=%d next_prio=%d", |
145 | __entry->prev_comm, __entry->prev_pid, __entry->prev_prio, | 141 | __entry->prev_comm, __entry->prev_pid, __entry->prev_prio, |
146 | __entry->prev_state & (TASK_STATE_MAX-1) ? | 142 | __entry->prev_state ? |
147 | __print_flags(__entry->prev_state & (TASK_STATE_MAX-1), "|", | 143 | __print_flags(__entry->prev_state, "|", |
148 | { 1, "S"} , { 2, "D" }, { 4, "T" }, { 8, "t" }, | 144 | { 1, "S"} , { 2, "D" }, { 4, "T" }, { 8, "t" }, |
149 | { 16, "Z" }, { 32, "X" }, { 64, "x" }, | 145 | { 16, "Z" }, { 32, "X" }, { 64, "x" }, |
150 | { 128, "W" }) : "R", | 146 | { 128, "W" }) : "R", |
151 | __entry->prev_state & TASK_STATE_MAX ? "+" : "", | ||
152 | __entry->next_comm, __entry->next_pid, __entry->next_prio) | 147 | __entry->next_comm, __entry->next_pid, __entry->next_prio) |
153 | ); | 148 | ); |
154 | 149 | ||
@@ -280,32 +275,6 @@ TRACE_EVENT(sched_process_fork, | |||
280 | ); | 275 | ); |
281 | 276 | ||
282 | /* | 277 | /* |
283 | * Tracepoint for exec: | ||
284 | */ | ||
285 | TRACE_EVENT(sched_process_exec, | ||
286 | |||
287 | TP_PROTO(struct task_struct *p, pid_t old_pid, | ||
288 | struct linux_binprm *bprm), | ||
289 | |||
290 | TP_ARGS(p, old_pid, bprm), | ||
291 | |||
292 | TP_STRUCT__entry( | ||
293 | __string( filename, bprm->filename ) | ||
294 | __field( pid_t, pid ) | ||
295 | __field( pid_t, old_pid ) | ||
296 | ), | ||
297 | |||
298 | TP_fast_assign( | ||
299 | __assign_str(filename, bprm->filename); | ||
300 | __entry->pid = p->pid; | ||
301 | __entry->old_pid = old_pid; | ||
302 | ), | ||
303 | |||
304 | TP_printk("filename=%s pid=%d old_pid=%d", __get_str(filename), | ||
305 | __entry->pid, __entry->old_pid) | ||
306 | ); | ||
307 | |||
308 | /* | ||
309 | * XXX the below sched_stat tracepoints only apply to SCHED_OTHER/BATCH/IDLE | 278 | * XXX the below sched_stat tracepoints only apply to SCHED_OTHER/BATCH/IDLE |
310 | * adding sched_stat support to SCHED_FIFO/RR would be welcome. | 279 | * adding sched_stat support to SCHED_FIFO/RR would be welcome. |
311 | */ | 280 | */ |
@@ -328,7 +297,6 @@ DECLARE_EVENT_CLASS(sched_stat_template, | |||
328 | ) | 297 | ) |
329 | TP_perf_assign( | 298 | TP_perf_assign( |
330 | __perf_count(delay); | 299 | __perf_count(delay); |
331 | __perf_task(tsk); | ||
332 | ), | 300 | ), |
333 | 301 | ||
334 | TP_printk("comm=%s pid=%d delay=%Lu [ns]", | 302 | TP_printk("comm=%s pid=%d delay=%Lu [ns]", |
@@ -362,13 +330,6 @@ DEFINE_EVENT(sched_stat_template, sched_stat_iowait, | |||
362 | TP_ARGS(tsk, delay)); | 330 | TP_ARGS(tsk, delay)); |
363 | 331 | ||
364 | /* | 332 | /* |
365 | * Tracepoint for accounting blocked time (time the task is in uninterruptible). | ||
366 | */ | ||
367 | DEFINE_EVENT(sched_stat_template, sched_stat_blocked, | ||
368 | TP_PROTO(struct task_struct *tsk, u64 delay), | ||
369 | TP_ARGS(tsk, delay)); | ||
370 | |||
371 | /* | ||
372 | * Tracepoint for accounting runtime (time the task is executing | 333 | * Tracepoint for accounting runtime (time the task is executing |
373 | * on a CPU). | 334 | * on a CPU). |
374 | */ | 335 | */ |