Re: [PATCH] ndctl: move test/dax-errors buffer to global to avoid gcc optimization

2016-09-19 Thread Dan Williams
, September 16, 2016 12:24 PM >> ... >>> Subject: Re: [PATCH] ndctl: move test/dax-errors buffer to global to >>> avoid gcc optimization >>> >>> On 09/15/2016 06:18 PM, Elliott, Robert (Persistent Memory) wrote: >>>> >> >>>>&g

Re: [PATCH] ndctl: move test/dax-errors buffer to global to avoid gcc optimization

2016-09-19 Thread Dave Jiang
On 09/18/2016 09:42 AM, Elliott, Robert (Persistent Memory) wrote: > > >> -Original Message- >> From: Dave Jiang [mailto:dave.ji...@intel.com] >> Sent: Friday, September 16, 2016 12:24 PM > ... >> Subject: Re: [PATCH] ndctl: move test/dax-errors

RE: [PATCH] ndctl: move test/dax-errors buffer to global to avoid gcc optimization

2016-09-18 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Dave Jiang [mailto:dave.ji...@intel.com] > Sent: Friday, September 16, 2016 12:24 PM ... > Subject: Re: [PATCH] ndctl: move test/dax-errors buffer to global to > avoid gcc optimization > > On 09/15/2016 06:18 PM, Elliott, Robert (Per

Re: [PATCH] ndctl: move test/dax-errors buffer to global to avoid gcc optimization

2016-09-16 Thread Dave Jiang
On 09/15/2016 06:18 PM, Elliott, Robert (Persistent Memory) wrote: > > >> -Original Message- >> From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On >> Behalf Of Dave Jiang >> Sent: Thursday, September 15, 2016 5:28 PM >> To: vishal.l.ve...@intel.com >> Cc:

Re: [PATCH] ndctl: move test/dax-errors buffer to global to avoid gcc optimization

2016-09-16 Thread Dave Jiang
On 09/15/2016 06:18 PM, Elliott, Robert (Persistent Memory) wrote: > > >> -Original Message- >> From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On >> Behalf Of Dave Jiang >> Sent: Thursday, September 15, 2016 5:28 PM >> To: vishal.l.ve...@intel.com >> Cc:

RE: [PATCH] ndctl: move test/dax-errors buffer to global to avoid gcc optimization

2016-09-15 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On > Behalf Of Dave Jiang > Sent: Thursday, September 15, 2016 5:28 PM > To: vishal.l.ve...@intel.com > Cc: linux-nvdimm@lists.01.org > Subject: [PATCH] ndctl: move test/dax-errors buffer to global to >

Re: [PATCH] ndctl: move test/dax-errors buffer to global to avoid gcc optimization

2016-09-15 Thread Vishal Verma
On 09/15, Dave Jiang wrote: > Some gcc toolchain are optimizing out the memcpy and this causes dax-errors > to not trigger the SIG_BUS when doing memcpy on an mmap'd buffer. By moving > the buffer to a global variable this bypasses the optimization and allow > the test to work as intended. > >