Re: Final: Add 32 bit VDSO time function support

2014-03-02 Thread Stefani Seibold
Am Samstag, den 01.03.2014, 14:56 -0800 schrieb H. Peter Anvin: > On 02/28/2014 06:00 PM, Andy Lutomirski wrote: > > > > This leads to a potentially interesting question: is rdtsc_barrier() > > actually necessary on UP? IIRC the point is that, if an > > rdtsc_barrier(); rdtsc in one thread is

Re: Final: Add 32 bit VDSO time function support

2014-03-02 Thread Stefani Seibold
Am Samstag, den 01.03.2014, 14:56 -0800 schrieb H. Peter Anvin: On 02/28/2014 06:00 PM, Andy Lutomirski wrote: This leads to a potentially interesting question: is rdtsc_barrier() actually necessary on UP? IIRC the point is that, if an rdtsc_barrier(); rdtsc in one thread is before (in

Re: Final: Add 32 bit VDSO time function support

2014-03-01 Thread H. Peter Anvin
On 02/28/2014 06:00 PM, Andy Lutomirski wrote: > > This leads to a potentially interesting question: is rdtsc_barrier() > actually necessary on UP? IIRC the point is that, if an > rdtsc_barrier(); rdtsc in one thread is "before" (in the sense of > being synchronized by some memory operation) an

Re: Final: Add 32 bit VDSO time function support

2014-03-01 Thread H. Peter Anvin
On 02/28/2014 06:00 PM, Andy Lutomirski wrote: This leads to a potentially interesting question: is rdtsc_barrier() actually necessary on UP? IIRC the point is that, if an rdtsc_barrier(); rdtsc in one thread is before (in the sense of being synchronized by some memory operation) an

Re: Final: Add 32 bit VDSO time function support

2014-02-28 Thread Andy Lutomirski
On Thu, Feb 27, 2014 at 11:22 PM, Stefani Seibold wrote: > Am Mittwoch, den 26.02.2014, 16:55 -0800 schrieb Andy Lutomirski: >> >> Once I patch it to work, your 32-bit code is considerably faster than >> the 64-bit case. It's enough faster that I suspect a bug. Dumping >> the in-memory shows

Re: Final: Add 32 bit VDSO time function support

2014-02-28 Thread Andy Lutomirski
On Thu, Feb 27, 2014 at 11:22 PM, Stefani Seibold stef...@seibold.net wrote: Am Mittwoch, den 26.02.2014, 16:55 -0800 schrieb Andy Lutomirski: Once I patch it to work, your 32-bit code is considerably faster than the 64-bit case. It's enough faster that I suspect a bug. Dumping the

Re: Final: Add 32 bit VDSO time function support

2014-02-27 Thread Stefani Seibold
Am Mittwoch, den 26.02.2014, 16:55 -0800 schrieb Andy Lutomirski: > Um. This code doesn't work. I'll send a patch. I can't speak > towards how well it compiles in different configurations. > > I can't speak towards how well it compiles in different > configurations. Also,

Re: Final: Add 32 bit VDSO time function support

2014-02-27 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Wed, Feb 26, 2014 at 12:45 PM, Greg KH wrote: > > On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: > >> Hi, > >> > >> i still wait for ACK's for the 32 bit VDSO time function support. Whats > >> the next step? Is there a way to apply it to the

Re: Final: Add 32 bit VDSO time function support

2014-02-27 Thread Ingo Molnar
* Andy Lutomirski l...@amacapital.net wrote: On Wed, Feb 26, 2014 at 12:45 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: Hi, i still wait for ACK's for the 32 bit VDSO time function support. Whats the next step? Is

Re: Final: Add 32 bit VDSO time function support

2014-02-27 Thread Stefani Seibold
Am Mittwoch, den 26.02.2014, 16:55 -0800 schrieb Andy Lutomirski: Um. This code doesn't work. I'll send a patch. I can't speak towards how well it compiles in different configurations. I can't speak towards how well it compiles in different configurations. Also, vdso_fallback_gettime

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread H. Peter Anvin
On 02/26/2014 12:54 PM, Andy Lutomirski wrote: > On Wed, Feb 26, 2014 at 12:45 PM, Greg KH wrote: >> On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: >>> Hi, >>> >>> i still wait for ACK's for the 32 bit VDSO time function support. Whats >>> the next step? Is there a way to apply

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Andy Lutomirski
Um. This code doesn't work. I'll send a patch. I can't speak towards how well it compiles in different configurations. I can't speak towards how well it compiles in different configurations. Also, vdso_fallback_gettime needs .cfi annotations, I think. I could probably dredge the required

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Andy Lutomirski
On Wed, Feb 26, 2014 at 12:45 PM, Greg KH wrote: > On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: >> Hi, >> >> i still wait for ACK's for the 32 bit VDSO time function support. Whats >> the next step? Is there a way to apply it to the linux-git or linux-next >> in near future?

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Greg KH
On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: > Hi, > > i still wait for ACK's for the 32 bit VDSO time function support. Whats > the next step? Is there a way to apply it to the linux-git or linux-next > in near future? I thought this was already in the tip tree. Didn't the

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Andy Lutomirski
I'm planning on testing this, hopefully today. --Andy On Wed, Feb 26, 2014 at 11:34 AM, Stefani Seibold wrote: > Hi, > > i still wait for ACK's for the 32 bit VDSO time function support. Whats > the next step? Is there a way to apply it to the linux-git or linux-next > in near future? > > -

Final: Add 32 bit VDSO time function support

2014-02-26 Thread Stefani Seibold
Hi, i still wait for ACK's for the 32 bit VDSO time function support. Whats the next step? Is there a way to apply it to the linux-git or linux-next in near future? - Stefani -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Final: Add 32 bit VDSO time function support

2014-02-26 Thread Stefani Seibold
Hi, i still wait for ACK's for the 32 bit VDSO time function support. Whats the next step? Is there a way to apply it to the linux-git or linux-next in near future? - Stefani -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Andy Lutomirski
I'm planning on testing this, hopefully today. --Andy On Wed, Feb 26, 2014 at 11:34 AM, Stefani Seibold stef...@seibold.net wrote: Hi, i still wait for ACK's for the 32 bit VDSO time function support. Whats the next step? Is there a way to apply it to the linux-git or linux-next in near

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Greg KH
On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: Hi, i still wait for ACK's for the 32 bit VDSO time function support. Whats the next step? Is there a way to apply it to the linux-git or linux-next in near future? I thought this was already in the tip tree. Didn't the

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Andy Lutomirski
On Wed, Feb 26, 2014 at 12:45 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: Hi, i still wait for ACK's for the 32 bit VDSO time function support. Whats the next step? Is there a way to apply it to the linux-git or linux-next

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread Andy Lutomirski
Um. This code doesn't work. I'll send a patch. I can't speak towards how well it compiles in different configurations. I can't speak towards how well it compiles in different configurations. Also, vdso_fallback_gettime needs .cfi annotations, I think. I could probably dredge the required

Re: Final: Add 32 bit VDSO time function support

2014-02-26 Thread H. Peter Anvin
On 02/26/2014 12:54 PM, Andy Lutomirski wrote: On Wed, Feb 26, 2014 at 12:45 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Feb 26, 2014 at 08:34:58PM +0100, Stefani Seibold wrote: Hi, i still wait for ACK's for the 32 bit VDSO time function support. Whats the next step? Is there a

Re: [PATCH v20 00/10] Final: Add 32 bit VDSO time function support

2014-02-20 Thread Stefani Seibold
Am Donnerstag, den 20.02.2014, 15:10 -0800 schrieb H. Peter Anvin: > On 02/19/2014 01:09 AM, Stefani Seibold wrote: > > > > This kind of helper must be integrated into glibc, for x86 64 bit and > > PowerPC it is already there. > > > > Who is doing the glibc work? > I don't know. I hoped this

Re: [PATCH v20 00/10] Final: Add 32 bit VDSO time function support

2014-02-20 Thread H. Peter Anvin
On 02/19/2014 01:09 AM, Stefani Seibold wrote: > > This kind of helper must be integrated into glibc, for x86 64 bit and > PowerPC it is already there. > Who is doing the glibc work? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH v20 00/10] Final: Add 32 bit VDSO time function support

2014-02-20 Thread H. Peter Anvin
On 02/19/2014 01:09 AM, Stefani Seibold wrote: This kind of helper must be integrated into glibc, for x86 64 bit and PowerPC it is already there. Who is doing the glibc work? -hpa -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH v20 00/10] Final: Add 32 bit VDSO time function support

2014-02-20 Thread Stefani Seibold
Am Donnerstag, den 20.02.2014, 15:10 -0800 schrieb H. Peter Anvin: On 02/19/2014 01:09 AM, Stefani Seibold wrote: This kind of helper must be integrated into glibc, for x86 64 bit and PowerPC it is already there. Who is doing the glibc work? I don't know. I hoped this would be

[PATCH v20 00/10] Final: Add 32 bit VDSO time function support

2014-02-19 Thread Stefani Seibold
This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a fast and a reliable way,

[PATCH v20 00/10] Final: Add 32 bit VDSO time function support

2014-02-19 Thread Stefani Seibold
This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO time functions a fast and a reliable way,