Re: [Xen-devel] [PATCH] libxc: zero-initialize structures in macros

2016-09-05 Thread Wei Liu
On Fri, Sep 02, 2016 at 11:22:04AM -0600, Tamas K Lengyel wrote: > On Fri, Sep 2, 2016 at 11:18 AM, Andrew Cooper > wrote: > > On 02/09/16 17:39, Tamas K Lengyel wrote: > >> While debugging applications built on top of libxc with Valgrind we get a > >> lot > >> of complaining about relying on uni

Re: [Xen-devel] [PATCH] libxc: zero-initialize structures in macros

2016-09-02 Thread Tamas K Lengyel
On Fri, Sep 2, 2016 at 11:18 AM, Andrew Cooper wrote: > On 02/09/16 17:39, Tamas K Lengyel wrote: >> While debugging applications built on top of libxc with Valgrind we get a lot >> of complaining about relying on uninitialized values allocated in libxc. >> While these warnings are safe to ignore,

Re: [Xen-devel] [PATCH] libxc: zero-initialize structures in macros

2016-09-02 Thread Andrew Cooper
On 02/09/16 17:39, Tamas K Lengyel wrote: > While debugging applications built on top of libxc with Valgrind we get a lot > of complaining about relying on uninitialized values allocated in libxc. > While these warnings are safe to ignore, zero-initializing the structures > reduces Valgrind clutter

[Xen-devel] [PATCH] libxc: zero-initialize structures in macros

2016-09-02 Thread Tamas K Lengyel
While debugging applications built on top of libxc with Valgrind we get a lot of complaining about relying on uninitialized values allocated in libxc. While these warnings are safe to ignore, zero-initializing the structures reduces Valgrind clutter a lot and aids in spotting real bugs. Signed-off