aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 0b90364d1a2c..02d2de9d08ba 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2599,6 +2599,13 @@ ftrace_graph_probe_sched_switch(struct rq *__rq, struct task_struct *prev,
2599 unsigned long long timestamp; 2599 unsigned long long timestamp;
2600 int index; 2600 int index;
2601 2601
2602 /*
2603 * Does the user want to count the time a function was asleep.
2604 * If so, do not update the time stamps.
2605 */
2606 if (trace_flags & TRACE_ITER_SLEEP_TIME)
2607 return;
2608
2602 timestamp = trace_clock_local(); 2609 timestamp = trace_clock_local();
2603 2610
2604 prev->ftrace_timestamp = timestamp; 2611 prev->ftrace_timestamp = timestamp;