diff options
author | Tycho Andersen <[email protected]> | 2018-03-08 20:35:44 -0700 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2018-04-03 15:04:18 -0400 |
commit | 706dd22f12628b70b342bada819ffc1e80337f3f (patch) | |
tree | 1b2f42f7982a983e77becc1461efbae77defe302 /tools/perf/scripts/python/stackcollapse.py | |
parent | e5c4cb9b1b78edb5bd42a9bd7315a0d7b842ac71 (diff) |
dm stripe: get rid of a Variable Length Array (VLA)
Ideally, we'd like to get rid of all VLAs in the kernel and add -Wvla to
the build args: https://lkml.org/lkml/2018/3/7/621
This one is a simple case, since we don't actually need the VLA at all: we
can just iterate over the stripes twice, once to emit their names, and the
second time to emit status (i.e. trade memory for time). Since the number
of stripes is probably low, this is hopefully not that expensive.
Signed-off-by: Tycho Andersen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions