ppc: fix backtrace problem when NT_PRSTATUS was not saved
I've reworked patch about ppc "bt" problem discussed in
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))
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
[Relocate in first bt(only once) and display correctly]
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