diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
| -rw-r--r-- | tools/perf/builtin-record.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 3b8b6387c47..f1411e9cdf4 100644 --- a/tools/perf/builtin-record.c +++ b/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,  					    session, "_text"); +	if (err < 0) +		err = event__synthesize_kernel_mmap(process_synthesized_event, +						    session, "_stext");  	if (err < 0) {  		pr_err("Couldn't record kernel reference relocation symbol.\n");  		return err;  |