Extend the SIAL built-in functions to include memset function.
On Monday 16 April 2012 11:56 PM, Dave Anderson wrote:
----- Original Message -----
The memset function will be used to specify the virtual address
and the length of the data to be scrubbed in the dump file when
the SIAL macro is used with the makedumpfile command. The
makedumpfile command is currently being enhanced to accept SIAL
macros to scrub data in the dump file.
When used with crash, SIAL macro using memset function will
have no effect (as intended as dump file should not be modified).
This is because the API_PUTMEM call back function implemented
in crash extension layer is a no-op.
OK, but then I don't understand the point of adding this to the
crash utility's version of libsial?
If I am not wrong, the plan is to use the same version of libsial for
both crash and makedumpfile once a new project is created for SIAL. As
it is not yet created, I thought of mailing the patch to crash mailing
list, which would be included in SIAL once the project is created.
However, this patch is not required any more as the functionality can
be achieved by extending the built-in functions using sial_builtin().
--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
04-18-2012, 10:49 AM
Aravinda Prasad
Extend the SIAL built-in functions to include memset function.
On Tuesday 17 April 2012 12:57 AM, Luc Chouinard wrote:
Aravinda, can you use the sial_builtin() API call to install that function from your application?
It seems like this is a particular use case for makedumpfile only.
You should be able to do this like sial.c does it for the curtask() builtin.
Thanks Luc. Using sial_builtin() API call to install a new function is
simple and easy. I will use it.
Regards,
Aravinda
-Luc
-----Original Message-----
From: Dave Anderson [mailto:anderson@redhat.com]
Sent: Mon 4/16/2012 2:26 PM
To: Aravinda Prasad
Cc: tachibana@mxm.nes.nec.co.jp; kumagai-atsushi@mxc.nes.nec.co.jp; ananth@in.ibm.com; buendgen@de.ibm.com; Luc Chouinard; crash-utility@redhat.com
Subject: Re: [PATCH] Extend the SIAL built-in functions to include memset function.
----- Original Message -----
The memset function will be used to specify the virtual address
and the length of the data to be scrubbed in the dump file when
the SIAL macro is used with the makedumpfile command. The
makedumpfile command is currently being enhanced to accept SIAL
macros to scrub data in the dump file.
When used with crash, SIAL macro using memset function will
have no effect (as intended as dump file should not be modified).
This is because the API_PUTMEM call back function implemented
in crash extension layer is a no-op.
OK, but then I don't understand the point of adding this to the
crash utility's version of libsial?