[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-8abd5724a7f1631ab2276954156c629d4d17149a@git.kernel.org>
Date: Wed, 18 May 2011 18:32:26 GMT
From: tip-bot for Steven Rostedt <srostedt@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
rostedt@...dmis.org, srostedt@...hat.com, jreiser@...wagon.com,
tglx@...utronix.de
Subject: [tip:perf/core] ftrace/recordmcount: Modify only executable sections
Commit-ID: 8abd5724a7f1631ab2276954156c629d4d17149a
Gitweb: http://git.kernel.org/tip/8abd5724a7f1631ab2276954156c629d4d17149a
Author: Steven Rostedt <srostedt@...hat.com>
AuthorDate: Wed, 13 Apr 2011 13:31:08 -0400
Committer: Steven Rostedt <rostedt@...dmis.org>
CommitDate: Mon, 16 May 2011 14:42:56 -0400
ftrace/recordmcount: Modify only executable sections
PROGBITS is not enough to determine if the section should be modified
or not. Only process sections that are marked as executable.
Cc: John Reiser <jreiser@...wagon.com>
Link: http://lkml.kernel.org/r/20110421023737.991485123@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
---
scripts/recordmcount.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h
index ac7b330..7f8d5c4 100644
--- a/scripts/recordmcount.h
+++ b/scripts/recordmcount.h
@@ -360,6 +360,7 @@ __has_rel_mcount(Elf_Shdr const *const relhdr, /* is SHT_REL or SHT_RELA */
succeed_file();
}
if (w(txthdr->sh_type) != SHT_PROGBITS ||
+ !(w(txthdr->sh_flags) & SHF_EXECINSTR) ||
!is_mcounted_section_name(txtname))
return NULL;
return txtname;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists