Sie sind nicht angemeldet.
Lieber Besucher, herzlich willkommen bei: Aqua Computer Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
I have prototyped the alternate approach in my sandbox (commit a104b34be9290dee691529ce6dee08a8ff87fcc8). I need to give it some more testing though since I did manage to hang my devel box a few times as I was tweaking things. I must admit, this is the most fragility I have seen with stuff running in user space on Linux for a long time and I have been a Linux hacker since kernel 0.99pl8...
did you freeze youre whole machine or only the AE5-USB-Interface? (just to determine if i deploy your sandbox on my productive machine... )
I have prototyped the alternate approach in my sandbox (commit a104b34be9290dee691529ce6dee08a8ff87fcc8). I need to give it some more testing though since I did manage to hang my devel box a few times as I was tweaking things. I must admit, this is the most fragility I have seen with stuff running in user space on Linux for a long time and I have been a Linux hacker since kernel 0.99pl8...
did you freeze youre whole machine or only the AE5-USB-Interface? (just to determine if i deploy your sandbox on my productive machine... )
The whole machine got funny as though it was out of file handles. I was working remotely (via SSH) and my session locked up. I attempted to log in again remotely and a few times I was able to get past the authentication prompts, but my session froze soon after. Ultimately I had to (remotely) power-cycle the machine.
I would suggest holding off on testing unless you have a machine you can tolerate going offline. I should have some cycles later on tonight to give it a more thorough test myself.
I have prototyped the alternate approach in my sandbox (commit a104b34be9290dee691529ce6dee08a8ff87fcc8). I need to give it some more testing though since I did manage to hang my devel box a few times as I was tweaking things. I must admit, this is the most fragility I have seen with stuff running in user space on Linux for a long time and I have been a Linux hacker since kernel 0.99pl8...
did you freeze youre whole machine or only the AE5-USB-Interface? (just to determine if i deploy your sandbox on my productive machine... )
The whole machine got funny as though it was out of file handles. I was working remotely (via SSH) and my session locked up. I attempted to log in again remotely and a few times I was able to get past the authentication prompts, but my session froze soon after. Ultimately I had to (remotely) power-cycle the machine.
I would suggest holding off on testing unless you have a machine you can tolerate going offline. I should have some cycles later on tonight to give it a more thorough test myself.
Hi folks hold tight for a little longer. I didn't get time to work on aerotools-ng last night due to family commitments, and will be on a business trip for a few days. I should be able to pick it back up towards the end of the week.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 1 Value at 3 on page 1 matches (C2). Loop iteration 2 Value at 3 on page 2 matches (C4). Loop iteration 4 Value at 3 on page 3 matches (C6). Loop iteration 5 Value at 3 on page 4 matches (C8). Loop iteration 7 Value at 3 on page 5 matches (CA). Loop iteration 9 Value at 3 on page 6 matches (CC). Loop iteration 11 Value at 3 on page 7 matches (CE). Loop iteration 12 Last array index was 4184, number of wrong reports was 5 |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
Buffer too small. Report length 660, buffer length 658 Iteration 990 Buffer too small. Report length 660, buffer length 658 Iteration 991 Buffer too small. Report length 660, buffer length 658 Iteration 992 Buffer too small. Report length 660, buffer length 658 Iteration 993 Buffer too small. Report length 660, buffer length 658 Iteration 994 Buffer too small. Report length 660, buffer length 658 Iteration 995 Buffer too small. Report length 660, buffer length 658 Iteration 996 Buffer too small. Report length 660, buffer length 658 Iteration 997 Buffer too small. Report length 660, buffer length 658 Iteration 998 Buffer too small. Report length 660, buffer length 658 Iteration 999 Buffer too small. Report length 660, buffer length 658 Iteration 1000 Buffer too small. Report length 660, buffer length 658 Test completed in 18 minutes and 50 seconds Encountered 0 failures during test (0%). Attempt success rate 100.00% |
output from testloop
Quellcode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Buffer too small. Report length 660, buffer length 658 Iteration 990 Buffer too small. Report length 660, buffer length 658 Iteration 991 Buffer too small. Report length 660, buffer length 658 Iteration 992 Buffer too small. Report length 660, buffer length 658 Iteration 993 Buffer too small. Report length 660, buffer length 658 Iteration 994 Buffer too small. Report length 660, buffer length 658 Iteration 995 Buffer too small. Report length 660, buffer length 658 Iteration 996 Buffer too small. Report length 660, buffer length 658 Iteration 997 Buffer too small. Report length 660, buffer length 658 Iteration 998 Buffer too small. Report length 660, buffer length 658 Iteration 999 Buffer too small. Report length 660, buffer length 658 Iteration 1000 Buffer too small. Report length 660, buffer length 658 Test completed in 18 minutes and 50 seconds Encountered 0 failures during test (0%). Attempt success rate 100.00%
output from your test-binary:[attach]4286[/attach]
did you need more?
new tests - new results
Quellcode
1 2 Test completed in 26 minutes and 53 seconds Encountered 427 failures during test (42.7000%). Attempt success rate 53.00%
new tests - new results
Quellcode
1 2 Test completed in 26 minutes and 53 seconds Encountered 427 failures during test (42.7000%). Attempt success rate 53.00%
Hmm, that's not good. It looks like the delay timing needs to be tweaked a bit. Can you post a few extracts (of the lines I provided earlier) of both success and failure runs?
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 1 Value at 3 on page 1 matches (C2). Loop iteration 3 Value at 3 on page 2 matches (C4). Loop iteration 4 Value at 3 on page 3 matches (C6). Loop iteration 6 Value at 3 on page 4 matches (C8). Loop iteration 7 Value at 3 on page 5 matches (CA). Loop iteration 9 Value at 3 on page 6 matches (CC). Loop iteration 10 Value at 3 on page 7 matches (CE). Loop iteration 12 Last array index was 4184, number of wrong reports was 5 watermarks match! |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 0 Failed to find enough matching report pages after 50 iterations! Oops watermark at offset 20B is 00 (index 6), but should be 100! Trying again... Attempt 2 Sending the following request in report 0x9: >> usage_index=0 usage_code=0xFF000001 value=1 HIDIOCGFIELDINFO: field_index=522 maxusage=523 flags=0x2 physical=0x0 logical=0x0 application=0xFF000001 logical_minimum=0,maximum=255 physical_minimum=0,maximum=0 |
On Success:
Quellcode
1 2 3 4 5 6 7 8 9 10 11 ** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 1 Value at 3 on page 1 matches (C2). Loop iteration 3 Value at 3 on page 2 matches (C4). Loop iteration 4 Value at 3 on page 3 matches (C6). Loop iteration 6 Value at 3 on page 4 matches (C8). Loop iteration 7 Value at 3 on page 5 matches (CA). Loop iteration 9 Value at 3 on page 6 matches (CC). Loop iteration 10 Value at 3 on page 7 matches (CE). Loop iteration 12 Last array index was 4184, number of wrong reports was 5 watermarks match!
on Error:
Quellcode
1 2 3 4 5 6 7 8 9 10 11 ** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 0 Failed to find enough matching report pages after 50 iterations! Oops watermark at offset 20B is 00 (index 6), but should be 100! Trying again... Attempt 2 Sending the following request in report 0x9: >> usage_index=0 usage_code=0xFF000001 value=1 HIDIOCGFIELDINFO: field_index=522 maxusage=523 flags=0x2 physical=0x0 logical=0x0 application=0xFF000001 logical_minimum=0,maximum=255 physical_minimum=0,maximum=0
interestingly: the errors only occure in the last 1/3 of the itterations (itteration 700 and above). Not on error occur during the first 700 tries
Quellcode |
|
1 |
req.tv_nsec = 8000000L; /* 0.008 seconds */ |
Quellcode |
|
1 |
req.tv_nsec = 7000000L; /* 0.007 seconds */ |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 6 Value at 3 on page 1 matches (C2). Loop iteration 8 Value at 3 on page 2 matches (C4). Loop iteration 10 Value at 3 on page 3 matches (C6). Loop iteration 11 Value at 3 on page 4 matches (C8). Loop iteration 13 Value at 3 on page 5 matches (CA). Loop iteration 15 Value at 3 on page 6 matches (CC). Loop iteration 17 Value at 3 on page 7 matches (CE). Loop iteration 19 Last array index was 4184, number of wrong reports was 12 watermarks match! ** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 7 Value at 3 on page 1 matches (C2). Loop iteration 8 Value at 3 on page 2 matches (C4). Loop iteration 10 Value at 3 on page 3 matches (C6). Loop iteration 12 Value at 3 on page 4 matches (C8). Loop iteration 14 Value at 3 on page 5 matches (CA). Loop iteration 17 Value at 3 on page 6 matches (CC). Loop iteration 19 Value at 3 on page 7 matches (CE). Loop iteration 21 Last array index was 4184, number of wrong reports was 14 watermarks match! ** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 1 Value at 3 on page 1 matches (C2). Loop iteration 3 Value at 3 on page 2 matches (C4). Loop iteration 4 Value at 3 on page 3 matches (C6). Loop iteration 7 Value at 3 on page 4 matches (C8). Loop iteration 9 Value at 3 on page 5 matches (CA). Loop iteration 11 Value at 3 on page 6 matches (CC). Loop iteration 13 Value at 3 on page 7 matches (CE). Loop iteration 15 Last array index was 4184, number of wrong reports was 8 watermarks match! ** getting the 8x 0xC reports: Value at 3 on page 0 matches (C0). Loop iteration 2 Value at 3 on page 1 matches (C2). Loop iteration 5 Value at 3 on page 2 matches (C4). Loop iteration 7 Value at 3 on page 3 matches (C6). Loop iteration 9 Value at 3 on page 4 matches (C8). Loop iteration 11 Value at 3 on page 5 matches (CA). Loop iteration 13 Value at 3 on page 6 matches (CC). Loop iteration 15 Value at 3 on page 7 matches (CE). Loop iteration 17 Last array index was 4184, number of wrong reports was 10 watermarks match! |
-