diff options
author | Antoine Tenart <atenart@kernel.org> | 2024-10-17 17:24:19 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-23 10:28:26 +0200 |
commit | 124afe773b1ad6cddb8f661a14a32c9e76ca92a6 (patch) | |
tree | 0df1a4a2b72ef3190e88744493933b2e9e123928 /tools/perf/scripts/python/stackcollapse.py | |
parent | a8cc8fa14541d6f8f1fbe78607a096e97c80179e (diff) |
net: sysctl: allow dump_cpumask to handle higher numbers of CPUs
This fixes the output of rps_default_mask and flow_limit_cpu_bitmap when
the CPU count is > 448, as it was truncated.
The underlying values are actually stored correctly when writing to
these sysctl but displaying them uses a fixed length temporary buffer in
dump_cpumask. This buffer can be too small if the CPU count is > 448.
Fix this by dynamically allocating the buffer in dump_cpumask, using a
guesstimate of what we need.
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions