aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2017-03-24 12:15:52 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-03-27 14:58:08 +0000
commitc3a0bbc7ad7598dec5a204868bdf8a2b1b51df14 (patch)
treefb0a6572c4f724ea8036cdf6baf17259bce07049
parentperf trace: Fixup thread refcounting (diff)
downloadkernel-c3a0bbc7ad7598dec5a204868bdf8a2b1b51df14.tar.gz
kernel-c3a0bbc7ad7598dec5a204868bdf8a2b1b51df14.zip
perf auxtrace: Fix no_size logic in addr_filter__resolve_kernel_syms()
Address filtering with kernel symbols incorrectly resulted in the error "Cannot determine size of symbol" because the no_size logic was the wrong way around. Signed-off-by: Adrian Hunter <[email protected]> Tested-by: Andi Kleen <[email protected]> Cc: [email protected] # v4.9+ Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/auxtrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c
index c5a6e0b12452..78bd632f144d 100644
--- a/tools/perf/util/auxtrace.c
+++ b/tools/perf/util/auxtrace.c
@@ -1826,7 +1826,7 @@ static int addr_filter__resolve_kernel_syms(struct addr_filter *filt)
filt->addr = start;
if (filt->range && !filt->size && !filt->sym_to) {
filt->size = size;
- no_size = !!size;
+ no_size = !size;
}
}
@@ -1840,7 +1840,7 @@ static int addr_filter__resolve_kernel_syms(struct addr_filter *filt)
if (err)
return err;
filt->size = start + size - filt->addr;
- no_size = !!size;
+ no_size = !size;
}
/* The very last symbol in kallsyms does not imply a particular size */