diff options
author | 2021-05-20 15:59:45 +0800 | |
---|---|---|
committer | 2021-06-01 14:18:23 +0100 | |
commit | a5740e955540181f4ab8f076cc9795c6bbe4d730 (patch) | |
tree | 3d735ba7d7c8ce378b6ca0b58f351ca42b246180 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | arm_pmu: Fix write counter incorrect in ARMv7 big-endian mode (diff) | |
download | wireguard-linux-a5740e955540181f4ab8f076cc9795c6bbe4d730.tar.xz wireguard-linux-a5740e955540181f4ab8f076cc9795c6bbe4d730.zip |
arm64: perf: Convert snprintf to sysfs_emit
Use sysfs_emit instead of snprintf to avoid buf overrun,because in
sysfs_emit it strictly checks whether buf is null or buf whether
pagesize aligned, otherwise it returns an error.
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Link: https://lore.kernel.org/r/1621497585-30887-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions