diff options
author | XieLudan <xie.ludan@zte.com.cn> | 2025-03-15 09:17:38 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-16 14:38:27 +0300 |
commit | b6ecb57f1fec114cfa19b1bf06f25f904ca928f9 (patch) | |
tree | 753aaf10611dd634bdf7032706ec551a3770d2ca /tools/perf/scripts/python/gecko.py | |
parent | fd3f5d385a52531589c8a7a26d9e108aa1d3f52e (diff) | |
download | linux-b6ecb57f1fec114cfa19b1bf06f25f904ca928f9.tar.xz |
perf/core: Use sysfs_emit() instead of scnprintf()
Follow the advice in Documentation/filesystems/sysfs.rst:
"- show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space."
No change in functionality intended.
[ mingo: Updated the changelog ]
Signed-off-by: XieLudan <xie.ludan@zte.com.cn>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250315141738452lXIH39UJAXlCmcATCzcBv@zte.com.cn
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions