From: Namhyung Kim Date: Thu, 21 Jul 2022 04:36:39 +0000 (-0700) Subject: perf lock: Fix a copy-n-paste bug X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9fe9b252c7c022df8e503435e778f15c04dfa3bf;p=linux.git 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 Cc: Boqun Feng Cc: Davidlohr Bueso Cc: Ian Rogers Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Waiman Long Cc: Will Deacon Link: https://lore.kernel.org/r/20220721043644.153718-2-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index c5ca34741561f..0aae88fdf93a5 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 */