diff options
| author | Haoqin Huang <haoqinhuang@tencent.com> | 2026-08-04 17:38:40 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-08-24 18:43:04 -0700 |
| commit | 7b0f677c7bd539bd5695b14f9a195e257c3b4463 (patch) | |
| tree | 2656f128bc787e13f429fecfd40e46b66ba2c8d4 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 70922d5ef84a5863ac80d4b13f574cb9e461a716 (diff) | |
zram: validate parameters in each backend's setup_params
Dict and level parameters are silently accepted even for backends that do
not support them. Validate these parameters in each backend's
.setup_params() to reject unsupported combinations and out-of-range levels
with a specific error message.
Link: https://lore.kernel.org/20260804093841.67920-5-haoqinhuang7@gmail.com
Signed-off-by: Haoqin Huang <haoqinhuang@tencent.com>
Signed-off-by: Rongwei Wang <zigiwang@tencent.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Tested-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: David Sterba <dsterba@suse.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nick Terrell <terrelln@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
