ppc: fix backtrace problem when NT_PRSTATUS was not saved
Hi Dave,
I've reworked patch about ppc "bt" problem discussed in
https://www.redhat.com/archives/crash-utility/2012-June/msg00029.html
A patch is now getting to work only for ppc targets,
and notes are relocatecd in first ppc's "bt", not in initialization-time.
And I've tested both "bt" diskdump by makedumpfile and netdump by
/proc/vmcore with patched kernel like
void crash_save_cpu(struct pt_regs *regs, int cpu)
if ((cpu % 2))
return;
I was worried about beeing able to catch all of non-contiguous NT_PRSTATUS
notes, alternate with invalid odd notes in every process well,
so I modified test case this time (that's no problem, everything OK).
[After initialization: notes are not relocated yet]
crash> help -D | grep notes
num_prstatus_notes: 4
notes_buf: 107a3518
notes[0]: 107a3518
notes[1]: 107a3638
notes[2]: 107a3758
notes[3]: 107a3878
[Relocate in first bt(only once) and display correctly]
crash> bt
PID: 1000 TASK: eb0cf800 CPU: 4 COMMAND: "bash"
bt: WARNING: cpu#1: not saved crash_notes
bt: WARNING: cpu#3: not saved crash_notes
bt: WARNING: cpu#5: not saved crash_notes
bt: WARNING: cpu#7: not saved crash_notes