Skip to content

Commit 2b2b574

Browse files
maquefelpalmer-dabbelt
authored andcommitted
riscv: Fix fill_callchain return value
perf_callchain_store return 0 on success, -1 otherwise, fix fill_callchain to return correct bool value. Fixes: dbeb90b ("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>
1 parent 6846d65 commit 2b2b574

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kernel/perf_callchain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void perf_callchain_user(struct perf_callchain_entry_ctx *entry,
6868

6969
static bool fill_callchain(void *entry, unsigned long pc)
7070
{
71-
return perf_callchain_store(entry, pc);
71+
return perf_callchain_store(entry, pc) == 0;
7272
}
7373

7474
void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry,

0 commit comments

Comments
 (0)