Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356158
b: refs/heads/master
c: 217f155
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Duyck authored and H. Peter Anvin committed Nov 17, 2012
1 parent 555eb6c commit ccecb8f
Show file tree
Hide file tree
Showing 2 changed files with 3 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: fc8d782677f163dee76427fdd8a92bebd2b50b23
refs/heads/master: 217f155e9fc68bf2a6c58a7b47e0d1ce68d78818
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ do_ftrace_mod_code(unsigned long ip, const void *new_code)
* kernel identity mapping to modify code.
*/
if (within(ip, (unsigned long)_text, (unsigned long)_etext))
ip = (unsigned long)__va(__pa(ip));
ip = (unsigned long)__va(__pa_symbol(ip));

return probe_kernel_write((void *)ip, new_code, MCOUNT_INSN_SIZE);
}
Expand Down Expand Up @@ -279,7 +279,7 @@ static int ftrace_write(unsigned long ip, const char *val, int size)
* kernel identity mapping to modify code.
*/
if (within(ip, (unsigned long)_text, (unsigned long)_etext))
ip = (unsigned long)__va(__pa(ip));
ip = (unsigned long)__va(__pa_symbol(ip));

return probe_kernel_write((void *)ip, val, size);
}
Expand Down

0 comments on commit ccecb8f

Please sign in to comment.