summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-06-17 20:35:35 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2022-08-09 05:37:20 +0300
commitacbdeb8320b0a470bef1b6c0105d8c2bbc4c4ba0 (patch)
tree71d93eebaecb1fa4e5fb453b821dec3d1f83f90c /tools/perf/scripts/python/export-to-sqlite.py
parentc81ce28df500b04444ef97dc82a7b0299ce717e8 (diff)
downloadlinux-acbdeb8320b0a470bef1b6c0105d8c2bbc4c4ba0.tar.xz
unify pipe_get_pages() and pipe_get_pages_alloc()
The differences between those two are * pipe_get_pages() gets a non-NULL struct page ** value pointing to preallocated array + array size. * pipe_get_pages_alloc() gets an address of struct page ** variable that contains NULL, allocates the array and (on success) stores its address in that variable. Not hard to combine - always pass struct page ***, have the previous pipe_get_pages_alloc() caller pass ~0U as cap for array size. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions