summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2026-03-07 19:44:12 -0600
committerJonathan Cameron <jic23@kernel.org>2026-04-27 09:58:15 +0100
commit99577250145316cb5840867f0278ddd8e0de8689 (patch)
tree7482076dd3433f1d9b04765944793ac182a1f168 /tools/perf/scripts/python/stackcollapse.py
parentcb27d8c18fa311ad87fca4c2e7f1d73ec0cb440d (diff)
iio: buffer: ensure repeat alignment is a power of two
Use roundup_pow_of_two() in the calculation of iio_storage_bytes_for_si() when scan_type->repeat > 1 to ensure that the size is a power of two. storagebits is always going to be a power of two bytes, so we only need to apply this to the repeat factor. The storage size is also used for alignment, and we want to ensure that all alignments are a power of two. The only repeat in use in the kernel currently is for quaternions, which have a repeat of 4, so this does not change the result for existing users. Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions