Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182294
b: refs/heads/master
c: 24a5365
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Jan 17, 2010
1 parent fd4798c commit 2643474
Show file tree
Hide file tree
Showing 2 changed files with 11 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: d931369b74b3d6f2044f595af6f3dd074f65d9cf
refs/heads/master: 24a53652e361321b09df5040711e69387344ce09
19 changes: 10 additions & 9 deletions trunk/kernel/trace/trace_functions_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,6 @@ int trace_graph_entry(struct ftrace_graph_ent *trace)
int cpu;
int pc;

if (unlikely(!tr))
return 0;

if (!ftrace_trace_task(current))
return 0;

Expand Down Expand Up @@ -287,11 +284,20 @@ void trace_graph_return(struct ftrace_graph_ret *trace)
local_irq_restore(flags);
}

void set_graph_array(struct trace_array *tr)
{
graph_array = tr;

/* Make graph_array visible before we start tracing */

smp_mb();
}

static int graph_trace_init(struct trace_array *tr)
{
int ret;

graph_array = tr;
set_graph_array(tr);
ret = register_ftrace_graph(&trace_graph_return,
&trace_graph_entry);
if (ret)
Expand All @@ -301,11 +307,6 @@ static int graph_trace_init(struct trace_array *tr)
return 0;
}

void set_graph_array(struct trace_array *tr)
{
graph_array = tr;
}

static void graph_trace_reset(struct trace_array *tr)
{
tracing_stop_cmdline_record();
Expand Down

0 comments on commit 2643474

Please sign in to comment.