aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBen Blum <[email protected]>2011-05-26 16:25:21 -0700
committerLinus Torvalds <[email protected]>2011-05-26 17:12:34 -0700
commitd846687d7f84e45f23ecf3846dbb43312a1206dd (patch)
tree5c19cf2e0e2faf288bb536f6878cddf11498ef3e /tools/perf/scripts/python
parent74a1166dfe1135dcc168d35fa5261aa7e087011b (diff)
cgroups: use flex_array in attach_proc
Convert cgroup_attach_proc to use flex_array. The cgroup_attach_proc implementation requires a pre-allocated array to store task pointers to atomically move a thread-group, but asking for a monolithic array with kmalloc() may be unreliable for very large groups. Using flex_array provides the same functionality with less risk of failure. This is a post-patch for cgroup-procs-write.patch. Signed-off-by: Ben Blum <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Li Zefan <[email protected]> Cc: Matt Helsley <[email protected]> Reviewed-by: Paul Menage <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: David Rientjes <[email protected]> Cc: Miao Xie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions