Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100588
b: refs/heads/master
c: 98a05ed
h: refs/heads/master
v: v3
  • Loading branch information
Abhishek Sagar authored and Ingo Molnar committed Jul 3, 2008
1 parent 1abcfa3 commit b4fddc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 760378e1497841246ea7e42abad617d8a8ac0bcc
refs/heads/master: 98a05ed4bd7774f533ab185fe0bf2fdc58292d7c
9 changes: 8 additions & 1 deletion trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,12 @@ static void ftrace_replace_code(int enable)
continue;

/* ignore updates to this record's mcount site */
if (get_kprobe((void *)rec->ip))
if (get_kprobe((void *)rec->ip)) {
freeze_record(rec);
continue;
} else {
unfreeze_record(rec);
}

failed = __ftrace_replace_code(rec, old, new, enable);
if (failed && (rec->flags & FTRACE_FL_CONVERTED)) {
Expand Down Expand Up @@ -740,7 +744,10 @@ static int __ftrace_update_code(void *ignore)
ftrace_del_hash(p);
INIT_HLIST_NODE(&p->node);
hlist_add_head(&p->node, &temp_list);
freeze_record(p);
continue;
} else {
unfreeze_record(p);
}

/* convert record (i.e, patch mcount-call with NOP) */
Expand Down

0 comments on commit b4fddc8

Please sign in to comment.