Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191448
b: refs/heads/master
c: 37e44bc
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 28, 2010
1 parent 077c476 commit 16cc23c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: e330b3bcd83199dd63a819d8d12e40f9edae6c77
refs/heads/master: 37e44bc50d91df1fe7edcf6f02fe168c6d802e64
6 changes: 5 additions & 1 deletion trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,10 @@ static void profile_graph_return(struct ftrace_graph_ret *trace)
if (!stat->hash || !ftrace_profile_enabled)
goto out;

/* If the calltime was zero'd ignore it */
if (!trace->calltime)
goto out;

calltime = trace->rettime - trace->calltime;

if (!(trace_flags & TRACE_ITER_GRAPH_TIME)) {
Expand Down Expand Up @@ -3357,11 +3361,11 @@ void unregister_ftrace_graph(void)
goto out;

ftrace_graph_active--;
unregister_trace_sched_switch(ftrace_graph_probe_sched_switch);
ftrace_graph_return = (trace_func_graph_ret_t)ftrace_stub;
ftrace_graph_entry = ftrace_graph_entry_stub;
ftrace_shutdown(FTRACE_STOP_FUNC_RET);
unregister_pm_notifier(&ftrace_suspend_notifier);
unregister_trace_sched_switch(ftrace_graph_probe_sched_switch);

out:
mutex_unlock(&ftrace_lock);
Expand Down

0 comments on commit 16cc23c

Please sign in to comment.