diff options
author | Heiko Carstens <[email protected]> | 2014-01-16 14:54:50 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-01-16 15:14:32 +0100 |
commit | 63b1a81699c2a45c9f737419b1ec1da0ecf92812 (patch) | |
tree | 10ff7584b7ccb999553e834f9f07b1bd8b84b5e2 /tools/perf/util/trace-event-scripting.c | |
parent | f549ed1abc7e4f0292ce08c4143c64a610c8b2cb (diff) |
futexes: Fix futex_hashsize initialization
"futexes: Increase hash table size for better performance"
introduces a new alloc_large_system_hash() call.
alloc_large_system_hash() however may allocate less memory than
requested, e.g. limited by MAX_ORDER.
Hence pass a pointer to alloc_large_system_hash() which will
contain the hash shift when the function returns. Afterwards
correctly set futex_hashsize.
Fixes a crash on s390 where the requested allocation size was
4MB but only 1MB was allocated.
Signed-off-by: Heiko Carstens <[email protected]>
Cc: Darren Hart <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Jason Low <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Link: http://lkml.kernel.org/r/20140116135450.GA4345@osiris
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions