----- Original Message -----
----- Original Message -----
> On Fri 2015-04-10 14:47 -0400, Dave Anderson wrote:
> > Maybe an option could be added for use with "kmem -p" only, that
supplies
> > a comma-separated list of desired fields, i.e., something like:
> >
> > crash> kmem -p -m member1,member2,member3
> >
> > At least then you could get exactly what you want, and specify how you
> > want it served.
>
> I'll work on this.
>
> Thanks,
>
> --
> Aaron Tomlin
>
OK, nice.
BTW, I updated the pstruct.c extension module so that it compiles again.
And tinkering around with it, I notice that it restricts the structure member
output to only TYPE_CODE_INT and TYPE_CODE_PTR types, but the gdb "printm"
command that it uses returns data for all of the member types.
Thanks,
Dave
Hi Aaron,
I can envision the basic structure member data gathering functionality used in
Qiao's pstruct.c module as being useful in more ways than just this proposed
"kmem -p" enhancement. So I've adapted it into a new generic utility
function named fill_struct_member_data(). Check it out here:
https://github.com/crash-utility/crash/commit/b4970528b2f8ba4129e9eac4ac0...
Dave