aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDonald Yandt <[email protected]>2019-05-28 09:41:28 -0400
committerArnaldo Carvalho de Melo <[email protected]>2019-05-28 18:37:44 -0300
commit34b65affe18daad31fed83e50d1f3b817786a2b7 (patch)
tree1f94a5a9dd451cae8f7800c0433f69f4c205ab72 /tools/perf/scripts/python/export-to-postgresql.py
parent80ec26d110c5c5a81b60c444db851e5734dee09a (diff)
perf machine: Return NULL instead of null-terminating /proc/version array
Return NULL instead of null-terminating version char array when fgets fails due to end-of-file or error. Signed-off-by: Donald Yandt <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Yanmin Zhang <[email protected]> Fixes: 30ba5b0e66c8 ("perf machine: Null-terminate version char array upon fgets(/proc/version) error") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions