Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100649
b: refs/heads/master
c: a2bb6a3
h: refs/heads/master
i:
  100647: c6f2142
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Jul 11, 2008
1 parent 715ed75 commit 5583dc3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26bc83f4cb911a0b4dabfe23b700aaf3235f2955
refs/heads/master: a2bb6a3d85ef3124cd336403a95abc0540d3fbe2
1 change: 1 addition & 0 deletions trunk/include/linux/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ void ftrace_enable_daemon(void);

/* totally disable ftrace - can not re-enable after this */
void ftrace_kill(void);
void ftrace_kill_atomic(void);

static inline void tracer_disable(void)
{
Expand Down
15 changes: 15 additions & 0 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,21 @@ core_initcall(ftrace_dynamic_init);
# define ftrace_force_shutdown() do { } while (0)
#endif /* CONFIG_DYNAMIC_FTRACE */

/**
* ftrace_kill_atomic - kill ftrace from critical sections
*
* This function should be used by panic code. It stops ftrace
* but in a not so nice way. If you need to simply kill ftrace
* from a non-atomic section, use ftrace_kill.
*/
void ftrace_kill_atomic(void)
{
ftrace_disabled = 1;
ftrace_enabled = 0;
ftraced_suspend = -1;
clear_ftrace_function();
}

/**
* ftrace_kill - totally shutdown ftrace
*
Expand Down

0 comments on commit 5583dc3

Please sign in to comment.