Re: [LTP] prototyping new library synchronization

2015-02-13 Thread Jiri Jaburek
On 02/12/2015 05:59 PM, Cyril Hrubis wrote: > Hi! > Code prototype follows. It uses mutexes and can be used with up to > page_size/sizeof(uint32) pairs. I've checked that it compiles fine and > works back to kernel 2.6.11 compiled in year 2005, which should be more > than enough. > > It uses a reg

[LTP] [PATCH 6/11] testscripts/network.sh: add IPV4_NET16_UNUSED, IPV6_NET32_UNUSED

2015-02-13 Thread Alexey Kodanev
Signed-off-by: Alexey Kodanev --- testscripts/network.sh |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/testscripts/network.sh b/testscripts/network.sh index 01733e9..426e732 100755 --- a/testscripts/network.sh +++ b/testscripts/network.sh @@ -49,6 +49,10 @@ export L

[LTP] [PATCH 5/11] network/stress/interface: add local library

2015-02-13 Thread Alexey Kodanev
It provides the following functions: * basic setup and cleanup * making TCP background traffic * checking connectivity between test hosts Moreover it defines new IPV4_NET16_UNUSED and IPV6_NET32_UNUSED variables. They are needed because some of the interface tests add more then 254 new addresses t

[LTP] [PATCH 10/11] network/stress/interface: cleanup 'updown' test

2015-02-13 Thread Alexey Kodanev
Note, this test could cause port flapping error on a switch Signed-off-by: Alexey Kodanev --- testcases/network/stress/interface/if-updown | 285 +- 1 files changed, 54 insertions(+), 231 deletions(-) diff --git a/testcases/network/stress/interface/if-updown b/testcase

[LTP] [PATCH 3/11] runtest/network_stress.interface: fix test names

2015-02-13 Thread Alexey Kodanev
Signed-off-by: Alexey Kodanev --- runtest/network_stress.interface | 25 + 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/runtest/network_stress.interface b/runtest/network_stress.interface index 43d5850..97e9ce3 100644 --- a/runtest/network_stress.inte

[LTP] [PATCH 9/11] network/stress/interface: cleanup 'route' group

2015-02-13 Thread Alexey Kodanev
* use if-lib.sh, test_net.sh libraries; * add routes from IPV4_NET16_UNUSED, IPV6_NET32_UNUSED networks Signed-off-by: Alexey Kodanev --- testcases/network/stress/interface/if-route-adddel | 330 --- .../network/stress/interface/if-route-addlarge | 339 +---

[LTP] [PATCH 8/11] network/stress/interface: cleanup and fix 'mtu' test

2015-02-13 Thread Alexey Kodanev
In the end of test-case set default 1500 mtu back Signed-off-by: Alexey Kodanev --- testcases/network/stress/interface/if-mtu-change | 294 +- 1 files changed, 65 insertions(+), 229 deletions(-) diff --git a/testcases/network/stress/interface/if-mtu-change b/testcases/netw

[LTP] [PATCH 4/11] network/stress/interface/ip4-addr-change: apply test_net.sh library

2015-02-13 Thread Alexey Kodanev
* skip rhost address * cleanup Signed-off-by: Alexey Kodanev --- testcases/network/stress/interface/if4-addr-change | 262 +--- 1 files changed, 56 insertions(+), 206 deletions(-) diff --git a/testcases/network/stress/interface/if4-addr-change b/testcases/network/stress/interf

[LTP] [PATCH 2/11] network/stress/interface/docs: cleanup

2015-02-13 Thread Alexey Kodanev
Signed-off-by: Alexey Kodanev --- .../network/stress/interface/00_Descriptions.txt | 129 +++- 1 files changed, 16 insertions(+), 113 deletions(-) diff --git a/testcases/network/stress/interface/00_Descriptions.txt b/testcases/network/stress/interface/00_Descriptions.txt inde

[LTP] [PATCH 1/11] network/stress/interface: rename if4-* tests

2015-02-13 Thread Alexey Kodanev
Signed-off-by: Alexey Kodanev --- testcases/network/stress/interface/if-addr-adddel | 326 + .../network/stress/interface/if-addr-addlarge | 481 testcases/network/stress/interface/if-mtu-change | 264 +++ testcases/network/stress/interface/if-r

[LTP] [PATCH 11/11] network/stress/interface: delete if6-*

2015-02-13 Thread Alexey Kodanev
if6-* combined with if4-* tests Signed-off-by: Alexey Kodanev --- testcases/network/stress/interface/if6-addr-adddel | 291 --- .../network/stress/interface/if6-addr-addlarge | 298 testcases/network/stress/interface/if6-mtu-change | 259 -

[LTP] [PATCH 7/11] network/stress/interface: cleanup 'addr' group

2015-02-13 Thread Alexey Kodanev
Use if-lib.sh, test_net.sh libraries Signed-off-by: Alexey Kodanev --- testcases/network/stress/interface/if-addr-adddel | 382 -- .../network/stress/interface/if-addr-addlarge | 556 2 files changed, 201 insertions(+), 737 deletions(-) diff --git a/test

Re: [LTP] prototyping new library synchronization

2015-02-13 Thread Cyril Hrubis
Hi! > Some notes; > > I assume you used syscall(SYS_futex, ..) instead of pthread_mutex (which > uses it internally) because of the linking simplicity, right? > Fair tradeoff. Not only. As far as I know pthread_mutexes use private futexes and as far as I understand these these will not work with