Browse Source

Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  perf record: Add a fallback to the reference relocation symbol
Linus Torvalds 15 năm trước cách đây
mục cha
commit
c28f3f8660
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      tools/perf/builtin-record.c

+ 3 - 0
tools/perf/builtin-record.c

@@ -563,6 +563,9 @@ static int __cmd_record(int argc, const char **argv)
 
 
 	err = event__synthesize_kernel_mmap(process_synthesized_event,
 	err = event__synthesize_kernel_mmap(process_synthesized_event,
 					    session, "_text");
 					    session, "_text");
+	if (err < 0)
+		err = event__synthesize_kernel_mmap(process_synthesized_event,
+						    session, "_stext");
 	if (err < 0) {
 	if (err < 0) {
 		pr_err("Couldn't record kernel reference relocation symbol.\n");
 		pr_err("Couldn't record kernel reference relocation symbol.\n");
 		return err;
 		return err;