diff options
author | 2025-03-15 14:17:38 +0800 | |
---|---|---|
committer | 2025-03-16 12:38:27 +0100 | |
commit | b6ecb57f1fec114cfa19b1bf06f25f904ca928f9 (patch) | |
tree | 753aaf10611dd634bdf7032706ec551a3770d2ca /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | perf/core: Remove optional 'size' arguments from strscpy() calls (diff) | |
download | linux-rng-b6ecb57f1fec114cfa19b1bf06f25f904ca928f9.tar.xz linux-rng-b6ecb57f1fec114cfa19b1bf06f25f904ca928f9.zip |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions