Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318021
b: refs/heads/master
c: f555f12
h: refs/heads/master
i:
  318019: 148e46b
v: v3
  • Loading branch information
Anton Vorontsov authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent 16c5f82 commit 2ae5986
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: a694d1b5916a486ce25fb5f2b39f2627f7afd5f3
refs/heads/master: f555f1231a69846d57099760f9c361982600ffa2
15 changes: 9 additions & 6 deletions trunk/kernel/trace/trace_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@ static void tracing_stop_function_trace(void)

static int func_set_flag(u32 old_flags, u32 bit, int set)
{
if (bit == TRACE_FUNC_OPT_STACK) {
switch (bit) {
case TRACE_FUNC_OPT_STACK:
/* do nothing if already set */
if (!!set == !!(func_flags.val & TRACE_FUNC_OPT_STACK))
return 0;
break;

if (set) {
unregister_ftrace_function(&trace_ops);
Expand All @@ -230,12 +231,14 @@ static int func_set_flag(u32 old_flags, u32 bit, int set)
register_ftrace_function(&trace_ops);
}

return 0;
} else if (bit == TRACE_FUNC_OPT_PSTORE) {
return 0;
break;
case TRACE_FUNC_OPT_PSTORE:
break;
default:
return -EINVAL;
}

return -EINVAL;
return 0;
}

static struct tracer function_trace __read_mostly =
Expand Down

0 comments on commit 2ae5986

Please sign in to comment.