From 34bdffbf3e3c188027e767e631f717b10159316d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 2 Nov 2012 09:48:42 -0700 Subject: 3294 pfiles postmortem support Reviewed by: Robert Mustacchi Reviewed by: Richard Lowe Approved by: Eric Schrock --- usr/src/cmd/sgs/elfdump/common/struct_layout.h | 28 +++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'usr/src/cmd/sgs/elfdump/common/struct_layout.h') diff --git a/usr/src/cmd/sgs/elfdump/common/struct_layout.h b/usr/src/cmd/sgs/elfdump/common/struct_layout.h index 69934f9336..11dbcc4b83 100644 --- a/usr/src/cmd/sgs/elfdump/common/struct_layout.h +++ b/usr/src/cmd/sgs/elfdump/common/struct_layout.h @@ -24,6 +24,10 @@ * Use is subject to license terms. */ +/* + * Copyright 2012 DEY Storage Systems, Inc. All rights reserved. + */ + #ifndef _STRUCT_LAYOUT_H #define _STRUCT_LAYOUT_H @@ -88,7 +92,7 @@ typedef struct { } sl_field_t; /* - * This type is used to extract and manipuate data described by + * This type is used to extract and manipulate data described by * sl_field_t. We rely on the C guarantee that all the fields in * a union have offset 0. */ @@ -501,6 +505,27 @@ typedef struct { sl_field_t machine; } sl_utsname_layout_t; +/* + * Layout description of prdinfo_t, from . + */ +typedef struct { + sl_field_t sizeof_struct; + sl_field_t pr_fd; + sl_field_t pr_mode; + sl_field_t pr_uid; + sl_field_t pr_gid; + sl_field_t pr_major; + sl_field_t pr_minor; + sl_field_t pr_rmajor; + sl_field_t pr_rminor; + sl_field_t pr_ino; + sl_field_t pr_offset; + sl_field_t pr_size; + sl_field_t pr_fileflags; + sl_field_t pr_fdflags; + sl_field_t pr_path; +} sl_prfdinfo_layout_t; + /* * This type collects all of the layout definitions for * a given architecture. @@ -525,6 +550,7 @@ typedef struct { const sl_sysset_layout_t *sysset; /* sysset_t */ const sl_timestruc_layout_t *timestruc; /* timestruc_t */ const sl_utsname_layout_t *utsname; /* struct utsname */ + const sl_prfdinfo_layout_t *prfdinfo; /* prdinfo_t */ } sl_arch_layout_t; -- cgit v1.2.3