[dpdk-dev] [PATCH v5 2/4] examples: add lthread subsystem for performance-thread

2015-12-03 Thread Betts, Ian
; (*ptr), > "a" (val) > : "memory"); > > return val; > } >-----Original Message----- >From: Richardson, Bruce >Sent: Thursday, December 3, 2015 4:46 PM >To: Stephen Hemminger >Cc: Betts, Ian; dev

[dpdk-dev] [PATCH v5 2/4] examples: add lthread subsystem for performance-thread

2015-12-03 Thread Bruce Richardson
On Thu, Dec 03, 2015 at 08:31:39AM -0800, Stephen Hemminger wrote: > On Thu, 3 Dec 2015 09:28:23 + > ibetts wrote: > > > +/* > > + * Atomically set a value and return the old value > > + */ > > +static inline uint64_t > > +atomic64_xchg(uint64_t *ptr, uint64_t val) __attribute__ ((always_inl

[dpdk-dev] [PATCH v5 2/4] examples: add lthread subsystem for performance-thread

2015-12-03 Thread ibetts
From: Ian Betts This commit adds the lightweight thread subsystem used by the performance-thread sample applications. Signed-off-by: Ian Betts --- .../performance-thread/common/arch/x86/atomic.h| 59 ++ examples/performance-thread/common/arch/x86/ctx.c | 93 +++ examples/performance-thr

[dpdk-dev] [PATCH v5 2/4] examples: add lthread subsystem for performance-thread

2015-12-03 Thread Stephen Hemminger
On Thu, 3 Dec 2015 09:28:23 + ibetts wrote: > +/* > + * Atomically set a value and return the old value > + */ > +static inline uint64_t > +atomic64_xchg(uint64_t *ptr, uint64_t val) __attribute__ ((always_inline)); > +static inline uint64_t > +atomic64_xchg(uint64_t *ptr, uint64_t val) You