[PATCH v3 5/7] perf annotate: Get correct line numbers matched with addr

2017-03-09 Thread Taeung Song
Currently perf-annotate show wrong line numbers. For example, Actual source code is as below ... 21 }; 22 23 unsigned int limited_wgt; 24 25 unsigned int get_cond_maxprice(int wgt) 26 { ... However, the output of perf-annotate is as below. 4 Disassembly of section .text: 6

[PATCH v3 5/7] perf annotate: Get correct line numbers matched with addr

2017-03-09 Thread Taeung Song
Currently perf-annotate show wrong line numbers. For example, Actual source code is as below ... 21 }; 22 23 unsigned int limited_wgt; 24 25 unsigned int get_cond_maxprice(int wgt) 26 { ... However, the output of perf-annotate is as below. 4 Disassembly of section .text: 6