diff options
| author | Jiri Olsa <[email protected]> | 2019-02-24 19:06:43 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-02-25 13:37:01 +0000 |
| commit | ccb7a71dcea071c7fd68192909c4e54561c88043 (patch) | |
| tree | ede25918c93298b4c4514afb80d4f311135c9919 /tools/perf/scripts/python/futex-contention.py | |
| parent | perf data: Make check_backup work over directories (diff) | |
| download | kernel-ccb7a71dcea071c7fd68192909c4e54561c88043.tar.gz kernel-ccb7a71dcea071c7fd68192909c4e54561c88043.zip | |
perf data: Fail check_backup in case of error
And display the error message from removing the old data file:
$ perf record ls
Can't remove old data: Permission denied (perf.data.old)
Perf session creation failed.
$ perf record ls
Can't remove old data: Unknown file found (perf.data.old)
Perf session creation failed.
Not sure how to make fail the rename (after we successfully remove the
destination file/dir) to show the message, anyway let's have it there.
Signed-off-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Alexey Budankov <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[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/futex-contention.py')
0 files changed, 0 insertions, 0 deletions
