aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/flamegraph-record
diff options
context:
space:
mode:
authorVipin Sharma <[email protected]>2022-11-03 12:17:15 -0700
committerSean Christopherson <[email protected]>2022-11-16 10:03:24 -0800
commit018ea2d71a43372cb984021f03514dc6dd3d46df (patch)
tree0c8b29c542aa023906296179eb252c9eedbbb69c /tools/perf/scripts/python/bin/flamegraph-record
parent0eb88a4121861ce3d5f925a183abb13ad954dbe6 (diff)
KVM: selftests: Add atoi_paranoid() to catch errors missed by atoi()
atoi() doesn't detect errors. There is no way to know that a 0 return is correct conversion or due to an error. Introduce atoi_paranoid() to detect errors and provide correct conversion. Replace all atoi() calls with atoi_paranoid(). Signed-off-by: Vipin Sharma <[email protected]> Suggested-by: David Matlack <[email protected]> Suggested-by: Sean Christopherson <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-record')
0 files changed, 0 insertions, 0 deletions