Commit 9fe9b252 authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo

perf lock: Fix a copy-n-paste bug

It should be lock_text_end instead of _start.

Fixes: 0d2997f7 ("perf lock: Look up callchain for the contended locks")
Signed-off-by: default avatarNamhyung 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 60ecf84d
...@@ -892,7 +892,7 @@ static bool is_lock_function(u64 addr) ...@@ -892,7 +892,7 @@ static bool is_lock_function(u64 addr)
sym = machine__find_kernel_symbol_by_name(machine, sym = machine__find_kernel_symbol_by_name(machine,
"__lock_text_end", "__lock_text_end",
&kmap); &kmap);
lock_text_start = kmap->unmap_ip(kmap, sym->start); lock_text_end = kmap->unmap_ip(kmap, sym->start);
} }
/* failed to get kernel symbols */ /* failed to get kernel symbols */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment