perf annotate: Add comment clarifying how the source code line is parsed
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 21 Mar 2017 19:00:50 +0000 (16:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 21 Mar 2017 19:00:50 +0000 (16:00 -0300)
commited7b339fb570749042332169e62541b208fc4296
tree30d7d5f408fe6ad44691d8095f1cfffb6c5b5b25
parente7cb9de211ebb2924d87fdeb77e50d74c2e673d1
perf annotate: Add comment clarifying how the source code line is parsed

The source code line number (lineno) needs to be kept in accross calls
to symbol__parse_objdump_line() when parsing the output of 'objdump -l
-dS', so that it can associate it with the instructions till the next
line.

See disasm_line__new() and struct disasm_line::line_nr.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Taeung Song <treeze.taeung@gmail.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-7hpx8f8ybdpiujceysaj229w@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c