Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140952
b: refs/heads/master
c: fa9d13c
h: refs/heads/master
v: v3
  • Loading branch information
Zhaolei authored and Ingo Molnar committed Mar 13, 2009
1 parent 41945c1 commit 38cd4d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: b00f0b6dc1773b4c8f538503247da050b5ea631b
refs/heads/master: fa9d13cf135efbd454453a53b6299976bea245a9
9 changes: 5 additions & 4 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,12 @@ static void ftrace_replace_code(int enable)

do_for_each_ftrace_rec(pg, rec) {
/*
* Skip over free records and records that have
* failed.
* Skip over free records, records that have
* failed and not converted.
*/
if (rec->flags & FTRACE_FL_FREE ||
rec->flags & FTRACE_FL_FAILED)
rec->flags & FTRACE_FL_FAILED ||
rec->flags & FTRACE_FL_CONVERTED)
continue;

/* ignore updates to this record's mcount site */
Expand All @@ -548,7 +549,7 @@ static void ftrace_replace_code(int enable)
}

failed = __ftrace_replace_code(rec, enable);
if (failed && (rec->flags & FTRACE_FL_CONVERTED)) {
if (failed) {
rec->flags |= FTRACE_FL_FAILED;
if ((system_state == SYSTEM_BOOTING) ||
!core_kernel_text(rec->ip)) {
Expand Down

0 comments on commit 38cd4d0

Please sign in to comment.