diff options
| author | Chris Wilson <[email protected]> | 2019-07-12 09:03:13 +0100 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2019-07-15 12:08:05 +0100 |
| commit | 94eb1e10a34d3c7fc42208faaa4954fe482ac091 (patch) | |
| tree | 32dae2f49424d4c6fbcd9bb9111edf9ec9a5e4f0 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 913cafbb250f146654ea979186d8615e0c54d6a7 (diff) | |
dma-buf: Expand reservation_list to fill allocation
Since kmalloc() will round up the allocation to the next slab size or
page, it will normally return a pointer to a memory block bigger than we
asked for. We can query for the actual size of the allocated block using
ksize() and expand our variable size reservation_list to take advantage
of that extra space.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Christian König <[email protected]>
Cc: Michel Dänzer <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions