Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350040
b: refs/heads/master
c: 03274a3
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt (Red Hat) committed Jan 29, 2013
1 parent 1332000 commit 7fb6e31
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 38dbe0b137bfe6ea92be495017885c0785179a02
refs/heads/master: 03274a3ffb449632970fdd35da72ea41cf8474da
8 changes: 7 additions & 1 deletion trunk/kernel/trace/trace_functions_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,16 @@ unsigned long ftrace_return_to_handler(unsigned long frame_pointer)

ftrace_pop_return_trace(&trace, &ret, frame_pointer);
trace.rettime = trace_clock_local();
ftrace_graph_return(&trace);
barrier();
current->curr_ret_stack--;

/*
* The trace should run after decrementing the ret counter
* in case an interrupt were to come in. We don't want to
* lose the interrupt if max_depth is set.
*/
ftrace_graph_return(&trace);

if (unlikely(!ret)) {
ftrace_graph_stop();
WARN_ON(1);
Expand Down

0 comments on commit 7fb6e31

Please sign in to comment.