* Patch "perf auxtrace: Fix no_size logic in addr_filter__resolve_kernel_syms()" has been added to the 4.9-stable tree
@ 2017-05-17 15:57 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-05-17 15:57 UTC (permalink / raw)
To: adrian.hunter, acme, ak, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
perf auxtrace: Fix no_size logic in addr_filter__resolve_kernel_syms()
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
perf-auxtrace-fix-no_size-logic-in-addr_filter__resolve_kernel_syms.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From c3a0bbc7ad7598dec5a204868bdf8a2b1b51df14 Mon Sep 17 00:00:00 2001
From: Adrian Hunter <adrian.hunter@intel.com>
Date: Fri, 24 Mar 2017 14:15:52 +0200
Subject: perf auxtrace: Fix no_size logic in addr_filter__resolve_kernel_syms()
From: Adrian Hunter <adrian.hunter@intel.com>
commit c3a0bbc7ad7598dec5a204868bdf8a2b1b51df14 upstream.
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 <adrian.hunter@intel.com>
Tested-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1490357752-27942-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
tools/perf/util/auxtrace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/tools/perf/util/auxtrace.c
+++ b/tools/perf/util/auxtrace.c
@@ -1826,7 +1826,7 @@ static int addr_filter__resolve_kernel_s
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_s
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 */
Patches currently in stable-queue which might be from adrian.hunter@intel.com are
queue-4.9/perf-auxtrace-fix-no_size-logic-in-addr_filter__resolve_kernel_syms.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-17 15:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17 15:57 Patch "perf auxtrace: Fix no_size logic in addr_filter__resolve_kernel_syms()" has been added to the 4.9-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.