]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable-test: Do not allocate individual test objects
authorThomas Graf <tgraf@suug.ch>
Thu, 30 Apr 2015 22:37:43 +0000 (22:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 03:08:54 +0000 (23:08 -0400)
commitf87902e0843152088d4e904fe559d872d071a428
treeca4e496a02d7dc9bdb8b3fbe0e9908311020128f
parent08113ed70a7336aaa7614cbeeca93fce996d0b1f
rhashtable-test: Do not allocate individual test objects

By far the most expensive part of the selftest was the allocation
of entries. Using a static array allows to measure the rhashtable
operations.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_rhashtable.c