linux-xiaomi-chiron/tools/perf/util
Arnaldo Carvalho de Melo 5eae7d8425 perf symbols: dso->name is an array, no need to check it against NULL
As it will always evaluate to 'true', as reported by clang:

  util/map.c:390:36: error: address of array 'map->dso->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
          if (map && map->dso && (map->dso->name || map->dso->long_name)) {
                                  ~~~~~~~~~~^~~~ ~~
  util/map.c:393:22: error: address of array 'map->dso->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
                  else if (map->dso->name)
                     ~~  ~~~~~~~~~~^~~~

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: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-x8cu007cly40kfp8xnpi9kya@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-02-13 17:22:35 -03:00
..
c++
include
intel-pt-decoder perf intel-pt: Use __fallthrough 2017-02-09 16:32:03 -03:00
libunwind
scripting-engines perf symbols: dso->name is an array, no need to check it against NULL 2017-02-13 17:22:35 -03:00
alias.c
annotate.c perf annotate: Don't throw error for zero length symbols 2016-12-20 12:00:32 -03:00
annotate.h
auxtrace.c
auxtrace.h
block-range.c
block-range.h
bpf-loader.c perf bpf: Add missing newline in debug messages 2017-02-08 08:55:02 -03:00
bpf-loader.h
bpf-prologue.c
bpf-prologue.h
Build
build-id.c
build-id.h
cache.h
call-path.c
call-path.h
callchain.c perf callchain: Reference count maps 2017-02-02 11:39:09 -03:00
callchain.h perf callchain: Reference count maps 2017-02-02 11:39:09 -03:00
cgroup.c
cgroup.h
cloexec.c
cloexec.h
color.c
color.h
comm.c
comm.h
config.c
config.h
counts.c
counts.h
cpumap.c
cpumap.h
cs-etm.h
ctype.c
data-convert-bt.c
data-convert-bt.h
data-convert.h
data.c
data.h
db-export.c
db-export.h
debug.c
debug.h
demangle-java.c
demangle-java.h
demangle-rust.c
demangle-rust.h
drv_configs.c
drv_configs.h
dso.c
dso.h
dwarf-aux.c
dwarf-aux.h
dwarf-regs.c
env.c
env.h
event.c perf tools: Fix include of linux/mman.h 2017-02-08 16:06:21 -03:00
event.h
evlist.c
evlist.h
evsel.c perf evsel: Inform how to make a sysctl setting permanent 2017-02-13 17:22:33 -03:00
evsel.h
evsel_fprintf.c perf symbols: No need to check if sym->name is NULL 2017-02-13 17:22:34 -03:00
find-vdso-map.c
genelf.c
genelf.h
genelf_debug.c
generate-cmdlist.sh
group.h
header.c perf header: Fix handling of PERF_EVENT_UPDATE__SCALE 2017-02-08 22:06:18 -03:00
header.h
help-unknown-cmd.c
help-unknown-cmd.h
hist.c perf callchain: Reference count maps 2017-02-02 11:39:09 -03:00
hist.h perf diff: Fix -o/--order option behavior (again) 2017-02-02 11:39:09 -03:00
intel-bts.c
intel-bts.h
intel-pt.c
intel-pt.h
intlist.c
intlist.h
jit.h
jitdump.c
jitdump.h
kvm-stat.h
levenshtein.c
levenshtein.h
llvm-utils.c
llvm-utils.h
lzma.c
machine.c perf symbols: No need to check if sym->name is NULL 2017-02-13 17:22:34 -03:00
machine.h
map.c perf symbols: dso->name is an array, no need to check it against NULL 2017-02-13 17:22:35 -03:00
map.h
mem-events.c
mem-events.h
ordered-events.c
ordered-events.h
parse-branch-options.c
parse-branch-options.h
parse-events.c perf tools: Use zfree() to avoid keeping dangling pointers 2017-02-08 09:41:12 -03:00
parse-events.h
parse-events.l
parse-events.y perf list: Add debug support for outputing alias string 2017-02-08 08:55:04 -03:00
parse-regs-options.c
parse-regs-options.h
path.c
perf-hooks-list.h
perf-hooks.c
perf-hooks.h
PERF-VERSION-GEN
perf_regs.c
perf_regs.h
pmu.c perf list: Add debug support for outputing alias string 2017-02-08 08:55:04 -03:00
pmu.h perf list: Add debug support for outputing alias string 2017-02-08 08:55:04 -03:00
pmu.l
pmu.y
probe-event.c
probe-event.h
probe-file.c
probe-file.h
probe-finder.c
probe-finder.h
pstack.c
pstack.h
python-ext-sources
python.c
quote.c
quote.h
rb_resort.h
rblist.c
rblist.h
record.c
session.c
session.h
setup.py
sort.c
sort.h
srcline.c
stat-shadow.c
stat.c
stat.h
strbuf.c
strbuf.h
strfilter.c tools strfilter: Use __fallthrough 2017-02-08 17:31:10 -03:00
strfilter.h
string.c tools string: Use __fallthrough in perf_atoll() 2017-02-08 17:31:01 -03:00
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol-elf.c
symbol-minimal.c
symbol.c perf symbols: Take into account symfs setting when reading file build ID 2017-02-08 09:28:55 -03:00
symbol.h
symbol_fprintf.c perf symbols: No need to check if sym->name is NULL 2017-02-13 17:22:34 -03:00
syscalltbl.c
syscalltbl.h
target.c
target.h
term.c
term.h
thread-stack.c
thread-stack.h
thread.c
thread.h
thread_map.c perf thread_map: Correctly size buffer used with dirent->dt_name 2017-02-08 17:31:28 -03:00
thread_map.h
time-utils.c
time-utils.h
tool.h
top.c
top.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.c
trace-event.h
trigger.h
tsc.c
tsc.h
unwind-libdw.c
unwind-libdw.h
unwind-libunwind-local.c
unwind-libunwind.c
unwind.h
usage.c
util-cxx.h
util.c
util.h
values.c
values.h
vdso.c
vdso.h
xyarray.c
xyarray.h
zlib.c