[Crash-utility] [PATCH v2 3/4] [netdump] Update the flags when ELF Notes are processed

Suzuki K. Poulose suzuki at in.ibm.com
Wed Feb 1 06:15:04 UTC 2012


This patch updates the pc->flags2 with ELF_NOTES flag for netdump, when
we have NT_PRSTATUS notes available from the core. Currently this flags is set
only in the case of diskdump. This change would allow us to generalize
the routines for obtaining stack frame for active tasks, where the GPRS
are stored in the notes.

Signed-off-by: Suzuki K. Poulose <suzuki at in.ibm.com>
---

 netdump.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/netdump.c b/netdump.c
index d23e45c..177bc5c 100644
--- a/netdump.c
+++ b/netdump.c
@@ -1696,6 +1696,9 @@ dump_Elf32_Nhdr(Elf32_Off offset, int store)
 				}
 			}
 		}
+		/* Set the flags to indicate that we have NT_PRSTATUS notes */
+		if (nd->num_prstatus_notes > 0)
+			pc->flags2 |= ELF_NOTES;
 		break;
 	case NT_PRPSINFO:
 		netdump_print("(NT_PRPSINFO)\n");




More information about the Crash-utility mailing list