aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJin Yao <[email protected]>2018-01-10 15:00:28 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-01-17 13:23:35 +0000
commit6e761cbc9127fb8fc609aea2265ee8279b8d6c55 (patch)
tree5c341396728ce7f3c627670b875c2a8c06218f44 /net/unix/af_unix.c
parentperf script: Improve error msg when no first/last sample time found (diff)
downloadkernel-6e761cbc9127fb8fc609aea2265ee8279b8d6c55.tar.gz
kernel-6e761cbc9127fb8fc609aea2265ee8279b8d6c55.zip
perf util: Improve error checking for time percent input
The command line like 'perf report --stdio --time 1abc%/1' could be accepted by perf. It looks not very good. This patch uses strtod() to replace original atof() and check the entire string. Now for the same command line, it would return error message "Invalid time string". root@skl:/tmp# perf report --stdio --time 1abc%/1 Invalid time string Signed-off-by: Jin Yao <[email protected]> Reviewed-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions