]> granicus.if.org Git - sysstat/commit
mpstat : Add reset parameter to salloc_mp_struct()
authorShaleen Bathla <shaleen.bathla@oracle.com>
Wed, 5 Oct 2022 06:50:13 +0000 (12:20 +0530)
committerShaleen Bathla <shaleen.bathla@oracle.com>
Wed, 5 Oct 2022 07:01:55 +0000 (12:31 +0530)
commit99b43db66337131b30b6e9be2967073dda4787b7
tree50f9d8a0f18e8c6c7b8a44b6006ffa4280cf259b
parent483391eb0064ddecec8c1c15a2931001f2b48711
mpstat : Add reset parameter to salloc_mp_struct()

To reset stats structs memory, add parameter to salloc_mp_struct().

This will be used in the next commit for introducing -H option for
handling vCPU physical hotplugs.

Use realloc calls which will help in resizing the structs also.
if reset is TRUE, memory will be cleared else not cleared

Signed-off-by: Shaleen Bathla <shaleen.bathla@oracle.com>
mpstat.c