Re: [PATCH] powerpc: Better 32/64bit detection

2013-07-12 Thread Dmitry V. Levin
On Fri, Jul 12, 2013 at 12:27:30PM +0200, Denys Vlasenko wrote: > On 07/11/2013 04:03 AM, Anton Blanchard wrote: > > > > We were using uname to determine if userspace was 32 or 64bit. > > This fails when we have a 64bit kernel and a 32bit userspace. > > > > Similar to x86, use a runtime test to d

Re: Strace issue with threading

2013-07-12 Thread Denys Vlasenko
On 07/12/2013 12:00 PM, giuseppe pes wrote: > Hi, I have found a strange behavior using strace with an application that > spawns threads. The output is printed two times and I cannot understand why. > > Here it is the source code of the application : > > > #include > #include >

Re: [PATCH] powerpc: Fix some compiler warnings

2013-07-12 Thread Denys Vlasenko
On 07/11/2013 04:02 AM, Anton Blanchard wrote: > > Fix a number of differing signedness warnings when building on > powerpc. > > Signed-off-by: Anton Blanchard Applied this and previous patch (one about iflag), thanks! ---

Re: [PATCH] powerpc: Better 32/64bit detection

2013-07-12 Thread Denys Vlasenko
On 07/11/2013 04:03 AM, Anton Blanchard wrote: > > We were using uname to determine if userspace was 32 or 64bit. > This fails when we have a 64bit kernel and a 32bit userspace. > > Similar to x86, use a runtime test to determine if we are 32 or 64bit. > > Signed-off-by: Anton Blanchard > --- >

Strace issue with threading

2013-07-12 Thread giuseppe pes
Hi, I have found a strange behavior using strace with an application that spawns threads. The output is printed two times and I cannot understand why. Here it is the source code of the application : > > #include > #include > #include > #include > #include > #include > #include > #include