aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorWaiman Long <[email protected]>2019-05-20 10:14:48 -0400
committerThomas Gleixner <[email protected]>2019-06-14 14:51:15 +0200
commitd26bf5056fc087d845bfbb8b651b4be2933ab7a6 (patch)
tree6a07feea9b2a5f39b0376a32de2dce01424f7b16 /tools/perf/scripts/python/export-to-sqlite.py
parent634d61f45d6f668fe7e468b62d00ae469a583ca2 (diff)
debugobjects: Reduce number of pool_lock acquisitions in fill_pool()
In fill_pool(), the pool_lock is acquired and then released once per debug object. If many objects are to be filled, the constant lock and unlock operations are extra overhead. To reduce the overhead, batch them up and do an allocation of 4 objects per lock/unlock sequence. Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Yang Shi <[email protected]> Cc: "Joel Fernandes (Google)" <[email protected]> Cc: Qian Cai <[email protected]> Cc: Zhong Jiang <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions