summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Baum <davidbaum461@gmail.com>2026-03-12 20:52:26 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-03-17 10:38:59 -0400
commitc955e99a060e4dc94228abe5cf63edd1e09754f2 (patch)
tree3275f0856b678783d0adc827ef2d796a06782a9c /tools/perf/scripts/python
parenteb422f3bbdff4ef870b855b7252e60bb591ed85f (diff)
drm/amdgpu: switch XGMI sysfs show helpers to sysfs_emit_at()
The XGMI sysfs show helpers amdgpu_xgmi_show_num_hops() and amdgpu_xgmi_show_num_links() currently populate the output buffer with sprintf() and then call sysfs_emit(buf, "%s\n", buf) to append the final newline. Convert both helpers to use sysfs_emit_at() while tracking the current offset. This keeps buffer construction in the sysfs helpers, avoids feeding the output buffer back into the final formatted write, and matches the style already used by amdgpu_xgmi_show_connected_port_num(). Signed-off-by: David Baum <davidbaum461@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions