On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song <treeze.taeung@xxxxxxxxx> wrote:
The commit e592488c01d5 ("perf annotate: Support source line
numbers in annotate") support source line numbers in annotate.
But we can get filename:line number by symbol__get_source_line()
Furthermore, the way can't exactly match source code lines
to actual line numbers.
Actual source code is as below
23 unsigned int limited_wgt;
25 unsigned int get_cond_maxprice(int wgt)
However, the output of annotate with the way about regmatch
is as below.
4 Disassembly of section .text:
6 0000000000400966 <get_cond_maxprice>:
28 unsigned int limited_wgt;
30 unsigned int get_cond_maxprice(int wgt)
The root cause is from objdump -S.
Because the source code of objdump used to print more code lines
than actual one code line according to a particular line number.
In the near future, I'll fix the problem about line numbers.
So what's the purpose of this patch? You just removed the line
number from the output, it changed behavior for what? If you want
to fix a problem of line number, please do it here..