In both Kdump and Compressed Kdump cores, we have the NT_PRSTATUS notes available for the active tasks and we use them for getting the stack trace. So reuse the function for compressed Kdump. Signed-off-by: Suzuki K. Poulose <suzuki@xxxxxxxxxx> --- ppc.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ppc.c b/ppc.c index 78c9178..9e704d0 100755 --- a/ppc.c +++ b/ppc.c @@ -1193,8 +1193,11 @@ ppc_dumpfile_stack_frame(struct bt_info *bt, ulong *getpc, ulong *getsp) { struct syment *sp; - /* For KDUMP get the SP, PC from pt_regs stored in the core */ - if (pc->flags & KDUMP) { + /* + * For KDUMP and compressed KDUMP get the SP, PC from pt_regs + * read from the Elf Note. + */ + if (ELF_NOTES_VALID()) { ppc_kdump_stack_frame(bt, getpc, getsp); return; } -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility