riscv: Fix fill_callchain return value
commit 2b2b574ac587ec5bd7716a356492a85ab8b0ce9f upstream.
perf_callchain_store return 0 on success, -1 otherwise,
fix fill_callchain to return correct bool value.
Fixes: dbeb90b0c1
("riscv: Add perf callchain support")
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c82cbbefc6
commit
097479aeb2
@ -77,7 +77,7 @@ void perf_callchain_user(struct perf_callchain_entry_ctx *entry,
|
|||||||
|
|
||||||
bool fill_callchain(unsigned long pc, void *entry)
|
bool fill_callchain(unsigned long pc, void *entry)
|
||||||
{
|
{
|
||||||
return perf_callchain_store(entry, pc);
|
return perf_callchain_store(entry, pc) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void notrace walk_stackframe(struct task_struct *task,
|
void notrace walk_stackframe(struct task_struct *task,
|
||||||
|
Loading…
Reference in New Issue
Block a user