summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2022-07-20 21:36:39 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-07-21 15:58:12 -0300
commit9fe9b252c7c022df8e503435e778f15c04dfa3bf (patch)
treef303deb60c5ab7f4cadef219e0404bed589f821d
parent60ecf84d728adfeed49c6d0ef10acde100b1e1a6 (diff)
downloadlinux-stable-9fe9b252c7c022df8e503435e778f15c04dfa3bf.tar.gz
linux-stable-9fe9b252c7c022df8e503435e778f15c04dfa3bf.tar.bz2
linux-stable-9fe9b252c7c022df8e503435e778f15c04dfa3bf.zip
perf lock: Fix a copy-n-paste bug
It should be lock_text_end instead of _start. Fixes: 0d2997f750d1de39 ("perf lock: Look up callchain for the contended locks") Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Waiman Long <longman@redhat.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20220721043644.153718-2-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/builtin-lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c
index c5ca34741561..0aae88fdf93a 100644
--- a/tools/perf/builtin-lock.c
+++ b/tools/perf/builtin-lock.c
@@ -892,7 +892,7 @@ static bool is_lock_function(u64 addr)
sym = machine__find_kernel_symbol_by_name(machine,
"__lock_text_end",
&kmap);
- lock_text_start = kmap->unmap_ip(kmap, sym->start);
+ lock_text_end = kmap->unmap_ip(kmap, sym->start);
}
/* failed to get kernel symbols */