]> 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)
commite2b5f70dbe1f75ec23a1af438f056dcd767a8c69
treeca4e496a02d7dc9bdb8b3fbe0e9908311020128f
parent0156e60254dcc74302d0916812278ee379c06792
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