Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140621
b: refs/heads/master
c: 25aac9d
h: refs/heads/master
i:
  140619: 0e8615e
v: v3
  • Loading branch information
Shaohua Li authored and Ingo Molnar committed Jan 14, 2009
1 parent 0cafefd commit 134fe2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 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: 18c167fd6d8feec5d337bd8fbc3a17da4cc37652
refs/heads/master: 25aac9dc7c8c73798c1be8aa36141f980d32579e
10 changes: 1 addition & 9 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,6 @@ static void ftrace_update_pid_func(void)
# error Dynamic ftrace depends on MCOUNT_RECORD
#endif

/*
* Since MCOUNT_ADDR may point to mcount itself, we do not want
* to get it confused by reading a reference in the code as we
* are parsing on objcopy output of text. Use a variable for
* it instead.
*/
static unsigned long mcount_addr = MCOUNT_ADDR;

enum {
FTRACE_ENABLE_CALLS = (1 << 0),
FTRACE_DISABLE_CALLS = (1 << 1),
Expand Down Expand Up @@ -575,7 +567,7 @@ ftrace_code_disable(struct module *mod, struct dyn_ftrace *rec)

ip = rec->ip;

ret = ftrace_make_nop(mod, rec, mcount_addr);
ret = ftrace_make_nop(mod, rec, MCOUNT_ADDR);
if (ret) {
ftrace_bug(ret, ip);
rec->flags |= FTRACE_FL_FAILED;
Expand Down
5 changes: 5 additions & 0 deletions trunk/scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
my ($arch, $bits, $objdump, $objcopy, $cc,
$ld, $nm, $rm, $mv, $is_module, $inputfile) = @ARGV;

# This file refers to mcount and shouldn't be ftraced, so lets' ignore it
if ($inputfile eq "kernel/trace/ftrace.o") {
exit(0);
}

# Acceptable sections to record.
my %text_sections = (
".text" => 1,
Expand Down

0 comments on commit 134fe2d

Please sign in to comment.