diff options
author | Abhishek Sagar <sagar.abhishek@gmail.com> | 2008-06-01 12:17:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-10 05:56:57 -0400 |
commit | 0eb967012ea15e6e8cfab483d9fa37bc602d400c (patch) | |
tree | 0e9c026a2d83f313cdc3f9f235d58ff522cee090 /include | |
parent | e0773410247f1e5fc6f7c52a4c5f3c6c9873d527 (diff) |
ftrace: prevent freeing of all failed updates
Prevent freeing of records which cause problems and correspond to function from
core kernel text. A new flag, FTRACE_FL_CONVERTED is used to mark a record
as "converted". All other records are patched lazily to NOPs. Failed records
now also remain on frace_hash table. Each invocation of ftrace_record_ip now
checks whether the traced function has ever been recorded (including past
failures) and doesn't re-record it again.
Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 623819433ed5..20e14d0093c7 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -49,6 +49,7 @@ enum { | |||
49 | FTRACE_FL_FILTER = (1 << 2), | 49 | FTRACE_FL_FILTER = (1 << 2), |
50 | FTRACE_FL_ENABLED = (1 << 3), | 50 | FTRACE_FL_ENABLED = (1 << 3), |
51 | FTRACE_FL_NOTRACE = (1 << 4), | 51 | FTRACE_FL_NOTRACE = (1 << 4), |
52 | FTRACE_FL_CONVERTED = (1 << 5), | ||
52 | }; | 53 | }; |
53 | 54 | ||
54 | struct dyn_ftrace { | 55 | struct dyn_ftrace { |