summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2017-08-06 23:24:45 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-08-11 21:06:31 +0200
commitd964b1cdbd94f359f1f65f81440be84ceb45978e (patch)
tree350064574063c40a8d9f8a3ac2b4145a3af0daa0 /tools/perf/util/symbol.h
parentperf util: Take elf_name as const string in dso__demangle_sym (diff)
downloadlinux-d964b1cdbd94f359f1f65f81440be84ceb45978e.tar.xz
linux-d964b1cdbd94f359f1f65f81440be84ceb45978e.zip
perf srcline: Do not consider empty files as valid srclines
Sometimes we get a non-null, but empty, string for the filename from bfd. This then results in srclines of the form ":0", which is different from the canonical SRCLINE_UNKNOWN in the form "??:0". Set the file to NULL if it is empty to fix this. Signed-off-by: Milian Wolff <milian.wolff@kdab.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Yao Jin <yao.jin@linux.intel.com> Link: http://lkml.kernel.org/r/20170806212446.24925-14-milian.wolff@kdab.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/symbol.h')
0 files changed, 0 insertions, 0 deletions