diff options
author | Jiri Olsa <[email protected]> | 2017-03-30 16:46:37 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-03-31 11:26:04 -0300 |
commit | 3e00cbe8891a655520ca2cfe9b6d509d0a845f07 (patch) | |
tree | b955ef4837e06df3e51a01aa8d72ea70a56cd2f2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 67ef28794d7e30f33936d655f2951e8dcae7cd5a (diff) |
perf tools: Do not fail in case of empty HOME env variable
Currently we fail in the following case:
$ unset HOME
$ ./perf record ls
$ echo $?
255
It's because the config code init fails due to a missing HOME variable
value. Fix this by skipping the user config init if there's no HOME
variable value.
Reported-by: Jan Stancek <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Namhyung Kim <[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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions