aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorTobias Klauser <[email protected]>2021-09-17 00:27:05 +0200
committerGreg Kroah-Hartman <[email protected]>2021-09-21 17:34:53 +0200
commitc86a2d9058c5a4a05d20ef89e699b7a6b2c89da6 (patch)
treeb5e8bfbd9790d02b6ba4aa731c96ee4331903aba /tools/perf/scripts
parentaf505cad9567f7a500d34bf183696d570d7f6810 (diff)
cpumask: Omit terminating null byte in cpumap_print_{list,bitmask}_to_buf
The changes in the patch series [1] introduced a terminating null byte when reading from cpulist or cpumap sysfs files, for example: $ xxd /sys/devices/system/node/node0/cpulist 00000000: 302d 310a 00 0-1.. Before this change, the output looked as follows: $ xxd /sys/devices/system/node/node0/cpulist 00000000: 302d 310a 0-1. Fix this regression by excluding the terminating null byte from the returned length in cpumap_print_list_to_buf and cpumap_print_bitmask_to_buf. [1] https://lore.kernel.org/all/[email protected]/ Fixes: 1fae562983ca ("cpumask: introduce cpumap_print_list/bitmask_to_buf to support large bitmask and list") Acked-by: Barry Song <[email protected]> Acked-by: Yury Norov <[email protected]> Signed-off-by: Tobias Klauser <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions