OSDN Git Service

perf util: Take elf_name as const string in dso__demangle_sym
authorMilian Wolff <milian.wolff@kdab.com>
Sun, 6 Aug 2017 21:24:34 +0000 (23:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Aug 2017 19:06:31 +0000 (16:06 -0300)
commit80c345b255cbb4e9dfb193bf0bf5536217237f6a
treed7023fa561eec2974f932f3b409441a55c65f103
parente498f336d66f804f87787b2ec31821e349a37b7b
perf util: Take elf_name as const string in dso__demangle_sym

The input string is not modified and thus can be passed in as a pointer
to const data.

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-3-milian.wolff@kdab.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-elf.c
tools/perf/util/symbol-minimal.c
tools/perf/util/symbol.h