Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121121
b: refs/heads/master
c: 918c115
h: refs/heads/master
i:
  121119: b0b545d
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Nov 16, 2008
1 parent 34f79ff commit f4d368a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: b17e8a37a13d0e87165054714434534bb7e69f2d
refs/heads/master: 918c115410c6cc57033835b6a401e57697f9ea4f
8 changes: 6 additions & 2 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,12 @@ static void ftrace_replace_code(int enable)
for (i = 0; i < pg->index; i++) {
rec = &pg->records[i];

/* don't modify code that has already faulted */
if (rec->flags & FTRACE_FL_FAILED)
/*
* Skip over free records and records that have
* failed.
*/
if (rec->flags & FTRACE_FL_FREE ||
rec->flags & FTRACE_FL_FAILED)
continue;

/* ignore updates to this record's mcount site */
Expand Down

0 comments on commit f4d368a

Please sign in to comment.