Re: futex(2) man page update help request

2015-02-16 Thread Cyril Hrubis
Hi! > I'll follow up with you in a couple weeks most likely. I have some urgent > things that will be taking all my time and then some until then. Feel free > to poke me though if I lose track of it :-) FYI I've started to work on futex testcases for LTP. The first batch has been commited in:

Re: futex(2) man page update help request

2015-02-16 Thread Cyril Hrubis
Hi! I'll follow up with you in a couple weeks most likely. I have some urgent things that will be taking all my time and then some until then. Feel free to poke me though if I lose track of it :-) FYI I've started to work on futex testcases for LTP. The first batch has been commited in:

Re: futex(2) man page update help request

2015-02-05 Thread Darren Hart
On 1/24/15, 3:35 AM, "Thomas Gleixner" wrote: >On Fri, 23 Jan 2015, Torvald Riegel wrote: >> Second, the current documentation for EINTR is that it can happen due to >> receiving a signal *or* due to a spurious wake-up. This is difficult to > >I don't think so. I went through all callchains

Re: futex(2) man page update help request

2015-02-05 Thread Darren Hart
On 1/24/15, 3:35 AM, Thomas Gleixner t...@linutronix.de wrote: On Fri, 23 Jan 2015, Torvald Riegel wrote: Second, the current documentation for EINTR is that it can happen due to receiving a signal *or* due to a spurious wake-up. This is difficult to I don't think so. I went through all

Re: futex(2) man page update help request

2015-01-26 Thread Michael Kerrisk (man-pages)
Hello Torvald, On 01/24/2015 02:12 PM, Torvald Riegel wrote: > On Sat, 2015-01-24 at 12:35 +0100, Thomas Gleixner wrote: >> So we should never see -EINTR in the case of a spurious wakeup here. >> >> But, here is the not so good news: >> >> I did some archaeology. The restart handling of

Re: futex(2) man page update help request

2015-01-26 Thread Michael Kerrisk (man-pages)
Hello Torvald, On 01/24/2015 02:12 PM, Torvald Riegel wrote: On Sat, 2015-01-24 at 12:35 +0100, Thomas Gleixner wrote: So we should never see -EINTR in the case of a spurious wakeup here. But, here is the not so good news: I did some archaeology. The restart handling of futex_wait() got

Re: futex(2) man page update help request

2015-01-24 Thread Thomas Gleixner
On Sat, 24 Jan 2015, Torvald Riegel wrote: > On Sat, 2015-01-24 at 11:05 +0100, Thomas Gleixner wrote: > > On Fri, 23 Jan 2015, Torvald Riegel wrote: > > > > > On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: > > > > On 1/16/15, 12:54 PM, "Michael Kerrisk (man-pages)" > > > > wrote: > > > >

Re: futex(2) man page update help request

2015-01-24 Thread Torvald Riegel
On Sat, 2015-01-24 at 12:35 +0100, Thomas Gleixner wrote: > So we should never see -EINTR in the case of a spurious wakeup here. > > But, here is the not so good news: > > I did some archaeology. The restart handling of futex_wait() got > introduced in kernel 2.6.22, so anything older than

Re: futex(2) man page update help request

2015-01-24 Thread Torvald Riegel
On Sat, 2015-01-24 at 11:05 +0100, Thomas Gleixner wrote: > On Fri, 23 Jan 2015, Torvald Riegel wrote: > > > On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: > > > On 1/16/15, 12:54 PM, "Michael Kerrisk (man-pages)" > > > wrote: > > > > > > >Color me stupid, but I can't see this in

Re: futex(2) man page update help request

2015-01-24 Thread Thomas Gleixner
On Fri, 23 Jan 2015, Torvald Riegel wrote: > Second, the current documentation for EINTR is that it can happen due to > receiving a signal *or* due to a spurious wake-up. This is difficult to I don't think so. I went through all callchains again with a fine comb. futex_wait() retry: ret

Re: futex(2) man page update help request

2015-01-24 Thread Thomas Gleixner
On Fri, 23 Jan 2015, Torvald Riegel wrote: > On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: > > On 1/16/15, 12:54 PM, "Michael Kerrisk (man-pages)" > > wrote: > > > > >Color me stupid, but I can't see this in futex_requeue(). Where is that > > >check that is "independent of the requeue

Re: futex(2) man page update help request

2015-01-24 Thread Thomas Gleixner
On Sat, 24 Jan 2015, Torvald Riegel wrote: On Sat, 2015-01-24 at 11:05 +0100, Thomas Gleixner wrote: On Fri, 23 Jan 2015, Torvald Riegel wrote: On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: On 1/16/15, 12:54 PM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote:

Re: futex(2) man page update help request

2015-01-24 Thread Thomas Gleixner
On Fri, 23 Jan 2015, Torvald Riegel wrote: On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: On 1/16/15, 12:54 PM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Color me stupid, but I can't see this in futex_requeue(). Where is that check that is independent of the

Re: futex(2) man page update help request

2015-01-24 Thread Thomas Gleixner
On Fri, 23 Jan 2015, Torvald Riegel wrote: Second, the current documentation for EINTR is that it can happen due to receiving a signal *or* due to a spurious wake-up. This is difficult to I don't think so. I went through all callchains again with a fine comb. futex_wait() retry: ret =

Re: futex(2) man page update help request

2015-01-24 Thread Torvald Riegel
On Sat, 2015-01-24 at 11:05 +0100, Thomas Gleixner wrote: On Fri, 23 Jan 2015, Torvald Riegel wrote: On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: On 1/16/15, 12:54 PM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Color me stupid, but I can't see this in

Re: futex(2) man page update help request

2015-01-24 Thread Torvald Riegel
On Sat, 2015-01-24 at 12:35 +0100, Thomas Gleixner wrote: So we should never see -EINTR in the case of a spurious wakeup here. But, here is the not so good news: I did some archaeology. The restart handling of futex_wait() got introduced in kernel 2.6.22, so anything older than that will

Re: futex(2) man page update help request

2015-01-23 Thread Torvald Riegel
On Thu, 2015-01-15 at 16:10 +0100, Michael Kerrisk (man-pages) wrote: > [Adding a few people to CC that have expressed interest in the > progress of the updates of this page, or who may be able to > provide review feedback. Eventually, you'll all get CCed on > the new draft of the page.] > >

Re: futex(2) man page update help request

2015-01-23 Thread Torvald Riegel
On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: > On 1/16/15, 12:54 PM, "Michael Kerrisk (man-pages)" > wrote: > > >Color me stupid, but I can't see this in futex_requeue(). Where is that > >check that is "independent of the requeue type (normal/pi)"? > > > >When I look through

Re: futex(2) man page update help request

2015-01-23 Thread Torvald Riegel
On Thu, 2015-01-15 at 16:10 +0100, Michael Kerrisk (man-pages) wrote: [Adding a few people to CC that have expressed interest in the progress of the updates of this page, or who may be able to provide review feedback. Eventually, you'll all get CCed on the new draft of the page.] Hello

Re: futex(2) man page update help request

2015-01-23 Thread Torvald Riegel
On Fri, 2015-01-16 at 16:46 -0800, Darren Hart wrote: On 1/16/15, 12:54 PM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Color me stupid, but I can't see this in futex_requeue(). Where is that check that is independent of the requeue type (normal/pi)? When I look through

Re: futex(2) man page update help request

2015-01-19 Thread Michael Kerrisk (man-pages)
On 01/19/2015 11:45 AM, Thomas Gleixner wrote: > On Fri, 16 Jan 2015, Darren Hart wrote: >> On 1/16/15, 12:54 PM, "Michael Kerrisk (man-pages)" >> wrote: >> >>> On 01/16/2015 04:20 PM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: > Hello Thomas,

Re: futex(2) man page update help request

2015-01-19 Thread Thomas Gleixner
On Fri, 16 Jan 2015, Darren Hart wrote: > On 1/16/15, 12:54 PM, "Michael Kerrisk (man-pages)" > wrote: > > >On 01/16/2015 04:20 PM, Thomas Gleixner wrote: > >> On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: > >> > >>> Hello Thomas, > >>> > >>> On 01/15/2015 11:23 PM, Thomas Gleixner

Re: futex(2) man page update help request

2015-01-19 Thread Thomas Gleixner
On Fri, 16 Jan 2015, Darren Hart wrote: On 1/16/15, 12:54 PM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: On 01/16/2015 04:20 PM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: Hello Thomas, On 01/15/2015 11:23 PM, Thomas Gleixner

Re: futex(2) man page update help request

2015-01-19 Thread Michael Kerrisk (man-pages)
On 01/19/2015 11:45 AM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Darren Hart wrote: On 1/16/15, 12:54 PM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: On 01/16/2015 04:20 PM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: Hello Thomas, On

Re: futex(2) man page update help request

2015-01-18 Thread Michael Kerrisk (man-pages)
Hello Darren, On 01/17/2015 08:26 PM, Darren Hart wrote: > > On 1/17/15, 1:16 AM, "Michael Kerrisk (man-pages)" > wrote: [...] In the meantime, I have a couple of questions, which, if you could answer them, I would work some changes into the page before sending. 1. In

Re: futex(2) man page update help request

2015-01-18 Thread Michael Kerrisk (man-pages)
Hello Darren, On 01/17/2015 08:26 PM, Darren Hart wrote: On 1/17/15, 1:16 AM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: [...] In the meantime, I have a couple of questions, which, if you could answer them, I would work some changes into the page before sending. 1. In

Re: futex(2) man page update help request

2015-01-17 Thread Darren Hart
On 1/17/15, 1:16 AM, "Michael Kerrisk (man-pages)" wrote: >Hello Darren, > >On 01/17/2015 02:33 AM, Darren Hart wrote: >> Corrected Davidlohr's email address. > >Thanks! > >> On 1/15/15, 7:12 AM, "Michael Kerrisk (man-pages)" >> wrote: >> >>> Hello Darren, >>> >>> I give you the same apology

Re: futex(2) man page update help request

2015-01-17 Thread Michael Kerrisk (man-pages)
Hello Darren, On 01/17/2015 02:33 AM, Darren Hart wrote: > Corrected Davidlohr's email address. Thanks! > On 1/15/15, 7:12 AM, "Michael Kerrisk (man-pages)" > wrote: > >> Hello Darren, >> >> I give you the same apology as to Thomas for the >> long-delayed response to your mail. >> >> And I

Re: futex(2) man page update help request

2015-01-17 Thread Darren Hart
On 1/17/15, 1:16 AM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Hello Darren, On 01/17/2015 02:33 AM, Darren Hart wrote: Corrected Davidlohr's email address. Thanks! On 1/15/15, 7:12 AM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Hello Darren, I give you

Re: futex(2) man page update help request

2015-01-17 Thread Michael Kerrisk (man-pages)
Hello Darren, On 01/17/2015 02:33 AM, Darren Hart wrote: Corrected Davidlohr's email address. Thanks! On 1/15/15, 7:12 AM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Hello Darren, I give you the same apology as to Thomas for the long-delayed response to your mail. And

Re: futex(2) man page update help request

2015-01-16 Thread Darren Hart
Corrected Davidlohr's email address. On 1/15/15, 7:12 AM, "Michael Kerrisk (man-pages)" wrote: >Hello Darren, > >I give you the same apology as to Thomas for the >long-delayed response to your mail. > >And I repeat my note to Thomas: >In the next day or two, I hope to send out the new version

Re: futex(2) man page update help request

2015-01-16 Thread Darren Hart
On 1/16/15, 4:56 PM, "Davidlohr Bueso" wrote: >On Fri, 2015-01-16 at 21:54 +0100, Michael Kerrisk (man-pages) wrote: >> On 01/16/2015 04:20 PM, Thomas Gleixner wrote: >> > On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: >> > >> >> Hello Thomas, >> >> >> >> On 01/15/2015 11:23 PM,

Re: futex(2) man page update help request

2015-01-16 Thread Davidlohr Bueso
On Fri, 2015-01-16 at 21:54 +0100, Michael Kerrisk (man-pages) wrote: > On 01/16/2015 04:20 PM, Thomas Gleixner wrote: > > On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: > > > >> Hello Thomas, > >> > >> On 01/15/2015 11:23 PM, Thomas Gleixner wrote: > >>> On Thu, 15 Jan 2015, Michael

Re: futex(2) man page update help request

2015-01-16 Thread Darren Hart
On 1/16/15, 12:54 PM, "Michael Kerrisk (man-pages)" wrote: >On 01/16/2015 04:20 PM, Thomas Gleixner wrote: >> On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: >> >>> Hello Thomas, >>> >>> On 01/15/2015 11:23 PM, Thomas Gleixner wrote: On Thu, 15 Jan 2015, Michael Kerrisk

Re: futex(2) man page update help request

2015-01-16 Thread Michael Kerrisk (man-pages)
On 01/16/2015 04:20 PM, Thomas Gleixner wrote: > On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: > >> Hello Thomas, >> >> On 01/15/2015 11:23 PM, Thomas Gleixner wrote: >>> On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: > [EINVAL] uaddr equal uaddr2. Requeue to same futex.

Re: futex(2) man page update help request

2015-01-16 Thread Thomas Gleixner
On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: > Hello Thomas, > > On 01/15/2015 11:23 PM, Thomas Gleixner wrote: > > On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: > >>> [EINVAL] uaddr equal uaddr2. Requeue to same futex. > >> > >> ??? I added this, but does this error not

Re: futex(2) man page update help request

2015-01-16 Thread Michael Kerrisk (man-pages)
Hello Thomas, On 01/15/2015 11:23 PM, Thomas Gleixner wrote: > On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: >>> [EINVAL] uaddr equal uaddr2. Requeue to same futex. >> >> ??? I added this, but does this error not occur only for PI requeues? > > It's equally wrong for normal futexes.

Re: futex(2) man page update help request

2015-01-16 Thread Michael Kerrisk (man-pages)
On 01/16/2015 04:20 PM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: Hello Thomas, On 01/15/2015 11:23 PM, Thomas Gleixner wrote: On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: [EINVAL] uaddr equal uaddr2. Requeue to same futex. ??? I added

Re: futex(2) man page update help request

2015-01-16 Thread Darren Hart
On 1/16/15, 12:54 PM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: On 01/16/2015 04:20 PM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: Hello Thomas, On 01/15/2015 11:23 PM, Thomas Gleixner wrote: On Thu, 15 Jan 2015, Michael Kerrisk

Re: futex(2) man page update help request

2015-01-16 Thread Davidlohr Bueso
On Fri, 2015-01-16 at 21:54 +0100, Michael Kerrisk (man-pages) wrote: On 01/16/2015 04:20 PM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: Hello Thomas, On 01/15/2015 11:23 PM, Thomas Gleixner wrote: On Thu, 15 Jan 2015, Michael Kerrisk (man-pages)

Re: futex(2) man page update help request

2015-01-16 Thread Darren Hart
On 1/16/15, 4:56 PM, Davidlohr Bueso d...@stgolabs.net wrote: On Fri, 2015-01-16 at 21:54 +0100, Michael Kerrisk (man-pages) wrote: On 01/16/2015 04:20 PM, Thomas Gleixner wrote: On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: Hello Thomas, On 01/15/2015 11:23 PM, Thomas

Re: futex(2) man page update help request

2015-01-16 Thread Darren Hart
Corrected Davidlohr's email address. On 1/15/15, 7:12 AM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Hello Darren, I give you the same apology as to Thomas for the long-delayed response to your mail. And I repeat my note to Thomas: In the next day or two, I hope to send out the

Re: futex(2) man page update help request

2015-01-16 Thread Michael Kerrisk (man-pages)
Hello Thomas, On 01/15/2015 11:23 PM, Thomas Gleixner wrote: On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: [EINVAL] uaddr equal uaddr2. Requeue to same futex. ??? I added this, but does this error not occur only for PI requeues? It's equally wrong for normal futexes. And its

Re: futex(2) man page update help request

2015-01-16 Thread Thomas Gleixner
On Fri, 16 Jan 2015, Michael Kerrisk (man-pages) wrote: Hello Thomas, On 01/15/2015 11:23 PM, Thomas Gleixner wrote: On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: [EINVAL] uaddr equal uaddr2. Requeue to same futex. ??? I added this, but does this error not occur only for PI

Re: futex(2) man page update help request

2015-01-15 Thread Thomas Gleixner
On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: > > [EINVAL] uaddr equal uaddr2. Requeue to same futex. > > ??? I added this, but does this error not occur only for PI requeues? It's equally wrong for normal futexes. And its actually the same code checking for this for all variants. > >

Re: futex(2) man page update help request

2015-01-15 Thread Michael Kerrisk (man-pages)
Hello Darren, I give you the same apology as to Thomas for the long-delayed response to your mail. And I repeat my note to Thomas: In the next day or two, I hope to send out the new version of the futex(2) page for review. The new draft is a bit bigger (okay -- 4 x bigger) than the current

Re: futex(2) man page update help request

2015-01-15 Thread Michael Kerrisk (man-pages)
[Adding a few people to CC that have expressed interest in the progress of the updates of this page, or who may be able to provide review feedback. Eventually, you'll all get CCed on the new draft of the page.] Hello Thomas, On 05/15/2014 04:14 PM, Thomas Gleixner wrote: > On Thu, 15 May 2014,

Re: futex(2) man page update help request

2015-01-15 Thread Michael Kerrisk (man-pages)
[Adding a few people to CC that have expressed interest in the progress of the updates of this page, or who may be able to provide review feedback. Eventually, you'll all get CCed on the new draft of the page.] Hello Thomas, On 05/15/2014 04:14 PM, Thomas Gleixner wrote: On Thu, 15 May 2014,

Re: futex(2) man page update help request

2015-01-15 Thread Michael Kerrisk (man-pages)
Hello Darren, I give you the same apology as to Thomas for the long-delayed response to your mail. And I repeat my note to Thomas: In the next day or two, I hope to send out the new version of the futex(2) page for review. The new draft is a bit bigger (okay -- 4 x bigger) than the current

Re: futex(2) man page update help request

2015-01-15 Thread Thomas Gleixner
On Thu, 15 Jan 2015, Michael Kerrisk (man-pages) wrote: [EINVAL] uaddr equal uaddr2. Requeue to same futex. ??? I added this, but does this error not occur only for PI requeues? It's equally wrong for normal futexes. And its actually the same code checking for this for all variants.

Re: futex(2) man page update help request

2014-11-26 Thread Cyril Hrubis
Hi! > >For this complexity of tests you would just need to call the tst_resm() > >interface to report success/failure and, at the end of the test, > >tst_exit() to return the stored overall test status. > > > >And ideally call the standard option parsing code and call the test in > >standard loop

Re: futex(2) man page update help request

2014-11-26 Thread Cyril Hrubis
Hi! For this complexity of tests you would just need to call the tst_resm() interface to report success/failure and, at the end of the test, tst_exit() to return the stored overall test status. And ideally call the standard option parsing code and call the test in standard loop so that the

Re: futex(2) man page update help request

2014-08-11 Thread chrubis
Hi! > >> How much LTP harness type code needs to be used? > > > >Not much. > > > >For this complexity of tests you would just need to call the tst_resm() > >interface to report success/failure and, at the end of the test, > >tst_exit() to return the stored overall test status. > > > >And ideally

Re: futex(2) man page update help request

2014-08-11 Thread chrubis
Hi! How much LTP harness type code needs to be used? Not much. For this complexity of tests you would just need to call the tst_resm() interface to report success/failure and, at the end of the test, tst_exit() to return the stored overall test status. And ideally call the standard

Re: futex(2) man page update help request

2014-08-04 Thread Carlos O'Donell
On 05/15/2014 04:19 PM, Michael Kerrisk (man-pages) wrote: > On 05/15/2014 04:14 PM, Thomas Gleixner wrote: >> On Thu, 15 May 2014, Michael Kerrisk (man-pages) wrote: >>> And that universe would love to have your documentation of >>> FUTEX_WAKE_BITSET and FUTEX_WAIT_BITSET ;-), >> >> I give you

Re: futex(2) man page update help request

2014-08-04 Thread Carlos O'Donell
On 05/15/2014 04:19 PM, Michael Kerrisk (man-pages) wrote: On 05/15/2014 04:14 PM, Thomas Gleixner wrote: On Thu, 15 May 2014, Michael Kerrisk (man-pages) wrote: And that universe would love to have your documentation of FUTEX_WAKE_BITSET and FUTEX_WAIT_BITSET ;-), I give you almost the full

Re: futex(2) man page update help request

2014-05-15 Thread Darren Hart
On 5/15/14, 7:14, "Thomas Gleixner" wrote: Wow Thomas, I planned to do exactly this and you beat me to it. Again. Thanks for getting this started. Michael, I imagine you want something more condensed, and I'll add to what tglx posted (inline below) to try and get you that, but if you have

Re: futex(2) man page update help request

2014-05-15 Thread Michael Kerrisk (man-pages)
On 05/15/2014 04:14 PM, Thomas Gleixner wrote: > On Thu, 15 May 2014, Michael Kerrisk (man-pages) wrote: >> And that universe would love to have your documentation of >> FUTEX_WAKE_BITSET and FUTEX_WAIT_BITSET ;-), > > I give you almost the full treatment, but I leave REQUEUE_PI to Darren > and

Re: futex(2) man page update help request

2014-05-15 Thread Darren Hart
On 5/15/14, 12:05, "chru...@suse.cz" wrote: >Hi! >> >> I've used LTP in the past (quite a bit), and I felt there was some >> >> advantage to keeping futextest independent. >> > >> >What advantages did you have in mind? >> >> Not CVS was a big one at the time ;-) >> >> OK, I don't mean to be

Re: futex(2) man page update help request

2014-05-15 Thread Carlos O'Donell
On 05/14/2014 08:28 PM, H. Peter Anvin wrote: > On 05/14/2014 01:56 PM, Davidlohr Bueso wrote: >>> However, unless I'm sorely mistaken, the larger problem is that glibc removed the futex() call entirely, so these man pages don't describe >>> >>> I don't think futex() ever was in

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > >> I've used LTP in the past (quite a bit), and I felt there was some > >> advantage to keeping futextest independent. > > > >What advantages did you have in mind? > > Not CVS was a big one at the time ;-) > > OK, I don't mean to be disparaging here... But since you asked, back in > '09

Re: futex(2) man page update help request

2014-05-15 Thread Darren Hart
On 5/15/14, 9:30, "chru...@suse.cz" wrote: >Hi! >> I've used LTP in the past (quite a bit), and I felt there was some >> advantage to keeping futextest independent. > >What advantages did you have in mind? Not CVS was a big one at the time ;-) OK, I don't mean to be disparaging here... But

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > > That is not the main concern here. If I extract the code I would have to > > watch for any changes manually. If it was in a library or a separate > > repository all that would be needed is to add it as dependency/git > > submodule and I would get all updates automatically. > > > > Yes,

Re: futex(2) man page update help request

2014-05-15 Thread H. Peter Anvin
On 05/15/2014 09:17 AM, chru...@suse.cz wrote: >> >> It should be quite easy to extract from klibc. > > That is not the main concern here. If I extract the code I would have to > watch for any changes manually. If it was in a library or a separate > repository all that would be needed is to add

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > I've used LTP in the past (quite a bit), and I felt there was some > advantage to keeping futextest independent. What advantages did you have in mind? > Perhaps things have changed enough since then (~2009 era) that we > should reconsider. I've been working on LTP for a about three years

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > >> I really believe the proper fix is to use assembly syscall stubs. In > >> klibc I build a fairly elaborate machinery to autogenerate such syscall > >> stubs for a variety of architectures. > > > > Then it would be nice to share these between klibc and LTP (and possible > > everybody

Re: futex(2) man page update help request

2014-05-15 Thread Darren Hart
On 5/15/14, 8:28, "chru...@suse.cz" wrote: >Hi! >> >> However, unless I'm sorely mistaken, the larger problem is that glibc >> removed the futex() call entirely, so these man pages don't describe >> something users even have access to anymore. I had to revert to calling >> the syscalls directly

Re: futex(2) man page update help request

2014-05-15 Thread H. Peter Anvin
On 05/15/2014 09:01 AM, chru...@suse.cz wrote: > >> I really believe the proper fix is to use assembly syscall stubs. In >> klibc I build a fairly elaborate machinery to autogenerate such syscall >> stubs for a variety of architectures. > > Then it would be nice to share these between klibc and

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > > Have a look at this commit that tries to deal with passing 64 bit > > numbers to syscalls. On 32 bit ABI (but not on X32) these needs to be > > split up (accordingly to machine endianity). > > > > https://github.com/linux-test-project/ltp/commit/04afb02b4280a20c262054e8f99a3fad4ad54916 >

Re: futex(2) man page update help request

2014-05-15 Thread H. Peter Anvin
On 05/15/2014 08:42 AM, chru...@suse.cz wrote: > Hi! >> People have a number of times noted that there are problems >> with syscall(), but I'm not knowledgeable on the details. >> I'd happily take a patch to the man page (which, for historical >> reasons, is actually syscall(2)) that explains the

Re: futex(2) man page update help request

2014-05-15 Thread Darren Hart
On 5/15/14, 1:13, "Peter Zijlstra" wrote: >On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: >> On 05/14/2014 03:03 PM, Michael Kerrisk (man-pages) wrote: >> >> However, unless I'm sorely mistaken, the larger problem is that glibc >> >> removed the futex() call entirely, so these

Re: futex(2) man page update help request

2014-05-15 Thread Darren Hart
On 5/15/14, 6:46, "Michael Kerrisk (man-pages)" wrote: >On 05/15/2014 07:21 AM, Darren Hart wrote: >> On 5/14/14, 17:18, "H. Peter Anvin" wrote: >> >>> On 05/14/2014 09:18 AM, Darren Hart wrote: However, unless I'm sorely mistaken, the larger problem is that glibc removed the

Re: futex(2) man page update help request

2014-05-15 Thread Steven Rostedt
On Thu, 15 May 2014 17:28:35 +0200 chru...@suse.cz wrote: > Hi! > > > > However, unless I'm sorely mistaken, the larger problem is that glibc > > removed the futex() call entirely, so these man pages don't describe > > something users even have access to anymore. I had to revert to calling > >

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > People have a number of times noted that there are problems > with syscall(), but I'm not knowledgeable on the details. > I'd happily take a patch to the man page (which, for historical > reasons, is actually syscall(2)) that explains the the problems > (and ideally notes those platforms

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > > However, unless I'm sorely mistaken, the larger problem is that glibc > > removed the futex() call entirely, so these man pages don't describe > > something users even have access to anymore. I had to revert to calling > > the syscalls directly in the futextest test suite because of this:

Re: futex(2) man page update help request

2014-05-15 Thread chrubis
Hi! > > However, unless I'm sorely mistaken, the larger problem is that glibc > removed the futex() call entirely, so these man pages don't describe > something users even have access to anymore. I had to revert to calling > the syscalls directly in the futextest test suite because of this: > >

Re: futex(2) man page update help request

2014-05-15 Thread Joseph S. Myers
On Wed, 14 May 2014, Davidlohr Bueso wrote: > > If I'm wrong, or we can restore the futex() call, great. If not... Should > > we keep the man-pages and document it as syscall(SYS_futex, ..., op, ...) ? > > +1, is there anything preventing adding a futex wrapper... glibc folks? See what I said

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Thu, May 15, 2014 at 10:39:09AM -0400, Carlos O'Donell wrote: > For example does gettid *really* return a pid_t as considered by > userspace? It's not a full out process... Yeah, PIDs and TIDs are the same namespace in the kernel. All we have are tasks and each task has an id. gettid()

Re: futex(2) man page update help request

2014-05-15 Thread H. Peter Anvin
On 05/15/2014 06:46 AM, Michael Kerrisk (man-pages) wrote: > > People have a number of times noted that there are problems > with syscall(), but I'm not knowledgeable on the details. > I'd happily take a patch to the man page (which, for historical > reasons, is actually syscall(2)) that explains

Re: futex(2) man page update help request

2014-05-15 Thread Carlos O'Donell
On 05/15/2014 09:49 AM, Michael Kerrisk (man-pages) wrote: > On Thu, May 15, 2014 at 3:22 PM, Peter Zijlstra wrote: >> On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: >>> On 05/15/2014 04:14 AM, Peter Zijlstra wrote: On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell

Re: futex(2) man page update help request

2014-05-15 Thread Thomas Gleixner
On Thu, 15 May 2014, Michael Kerrisk (man-pages) wrote: > And that universe would love to have your documentation of > FUTEX_WAKE_BITSET and FUTEX_WAIT_BITSET ;-), I give you almost the full treatment, but I leave REQUEUE_PI to Darren and FUTEX_WAKE_OP to Jakub. :) FUTEX_WAIT <

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Thu, May 15, 2014 at 03:49:10PM +0200, Michael Kerrisk (man-pages) wrote: > On Thu, May 15, 2014 at 3:22 PM, Peter Zijlstra wrote: > > On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: > >> On 05/15/2014 04:14 AM, Peter Zijlstra wrote: > >> > On Wed, May 14, 2014 at 04:23:38PM

Re: futex(2) man page update help request

2014-05-15 Thread Michael Kerrisk (man-pages)
On Thu, May 15, 2014 at 3:22 PM, Peter Zijlstra wrote: > On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: >> On 05/15/2014 04:14 AM, Peter Zijlstra wrote: >> > On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: >> >> There are other syscalls like gettid() that have

Re: futex(2) man page update help request

2014-05-15 Thread Michael Kerrisk (man-pages)
On 05/15/2014 07:21 AM, Darren Hart wrote: > On 5/14/14, 17:18, "H. Peter Anvin" wrote: > >> On 05/14/2014 09:18 AM, Darren Hart wrote: >>> >>> However, unless I'm sorely mistaken, the larger problem is that glibc >>> removed the futex() call entirely, so these man pages don't describe >>>

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: > On 05/15/2014 04:14 AM, Peter Zijlstra wrote: > > On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: > >> There are other syscalls like gettid() that have a: > >> NOTE: There is no glibc wrapper for this system call;

Re: futex(2) man page update help request

2014-05-15 Thread Carlos O'Donell
On 05/15/2014 04:14 AM, Peter Zijlstra wrote: > On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: >> There are other syscalls like gettid() that have a: >> NOTE: There is no glibc wrapper for this system call; see NOTES. > > Yes, can we finally fix that please? It gets tedious

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Wed, May 14, 2014 at 10:21:52PM -0700, Darren Hart wrote: > On 5/14/14, 17:18, "H. Peter Anvin" wrote: > > >On 05/14/2014 09:18 AM, Darren Hart wrote: > >> > >> However, unless I'm sorely mistaken, the larger problem is that glibc > >> removed the futex() call entirely, so these man pages

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: > There are other syscalls like gettid() that have a: > NOTE: There is no glibc wrapper for this system call; see NOTES. Yes, can we finally fix that please? It gets tedious having to endlessly copy/paste that thing around.

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: > On 05/14/2014 03:03 PM, Michael Kerrisk (man-pages) wrote: > >> However, unless I'm sorely mistaken, the larger problem is that glibc > >> removed the futex() call entirely, so these man pages don't describe > > > > I don't think

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: On 05/14/2014 03:03 PM, Michael Kerrisk (man-pages) wrote: However, unless I'm sorely mistaken, the larger problem is that glibc removed the futex() call entirely, so these man pages don't describe I don't think futex()

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: There are other syscalls like gettid() that have a: NOTE: There is no glibc wrapper for this system call; see NOTES. Yes, can we finally fix that please? It gets tedious having to endlessly copy/paste that thing around.

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Wed, May 14, 2014 at 10:21:52PM -0700, Darren Hart wrote: On 5/14/14, 17:18, H. Peter Anvin h...@zytor.com wrote: On 05/14/2014 09:18 AM, Darren Hart wrote: However, unless I'm sorely mistaken, the larger problem is that glibc removed the futex() call entirely, so these man pages

Re: futex(2) man page update help request

2014-05-15 Thread Carlos O'Donell
On 05/15/2014 04:14 AM, Peter Zijlstra wrote: On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: There are other syscalls like gettid() that have a: NOTE: There is no glibc wrapper for this system call; see NOTES. Yes, can we finally fix that please? It gets tedious having to

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: On 05/15/2014 04:14 AM, Peter Zijlstra wrote: On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: There are other syscalls like gettid() that have a: NOTE: There is no glibc wrapper for this system call; see

Re: futex(2) man page update help request

2014-05-15 Thread Michael Kerrisk (man-pages)
On 05/15/2014 07:21 AM, Darren Hart wrote: On 5/14/14, 17:18, H. Peter Anvin h...@zytor.com wrote: On 05/14/2014 09:18 AM, Darren Hart wrote: However, unless I'm sorely mistaken, the larger problem is that glibc removed the futex() call entirely, so these man pages don't describe something

Re: futex(2) man page update help request

2014-05-15 Thread Michael Kerrisk (man-pages)
On Thu, May 15, 2014 at 3:22 PM, Peter Zijlstra pet...@infradead.org wrote: On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: On 05/15/2014 04:14 AM, Peter Zijlstra wrote: On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos O'Donell wrote: There are other syscalls like gettid()

Re: futex(2) man page update help request

2014-05-15 Thread Peter Zijlstra
On Thu, May 15, 2014 at 03:49:10PM +0200, Michael Kerrisk (man-pages) wrote: On Thu, May 15, 2014 at 3:22 PM, Peter Zijlstra pet...@infradead.org wrote: On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: On 05/15/2014 04:14 AM, Peter Zijlstra wrote: On Wed, May 14, 2014 at

Re: futex(2) man page update help request

2014-05-15 Thread Thomas Gleixner
On Thu, 15 May 2014, Michael Kerrisk (man-pages) wrote: And that universe would love to have your documentation of FUTEX_WAKE_BITSET and FUTEX_WAIT_BITSET ;-), I give you almost the full treatment, but I leave REQUEUE_PI to Darren and FUTEX_WAKE_OP to Jakub. :) FUTEX_WAIT Existing

Re: futex(2) man page update help request

2014-05-15 Thread Carlos O'Donell
On 05/15/2014 09:49 AM, Michael Kerrisk (man-pages) wrote: On Thu, May 15, 2014 at 3:22 PM, Peter Zijlstra pet...@infradead.org wrote: On Thu, May 15, 2014 at 09:18:22AM -0400, Carlos O'Donell wrote: On 05/15/2014 04:14 AM, Peter Zijlstra wrote: On Wed, May 14, 2014 at 04:23:38PM -0400, Carlos

Re: futex(2) man page update help request

2014-05-15 Thread H. Peter Anvin
On 05/15/2014 06:46 AM, Michael Kerrisk (man-pages) wrote: People have a number of times noted that there are problems with syscall(), but I'm not knowledgeable on the details. I'd happily take a patch to the man page (which, for historical reasons, is actually syscall(2)) that explains the

  1   2   >