diff options
author | Pierre Habouzit <[email protected]> | 2009-08-07 14:16:01 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-08-09 12:54:40 +0200 |
commit | 266e0e219888420a1a7cafc82e82891cf7b5a979 (patch) | |
tree | 12a0d8c29552d800cfd44ff4b6e44f0b6f42e7c3 /net/lapb/lapb_iface.c | |
parent | 7eac7e9e726c1b136bd7e0ad6671ce315f48bb18 (diff) |
perf record: Fix the -A UI for empty or non-existent perf.data
1. Ignore the -A argument if there is no perf.data file
2. Treat an empty file like a non existent file.
Else, perf will try to read the perf.data header, and fail with
an error.
Treating an empty file like a non-existent file makes sense,
since an interupted (as in SIGKILLed) perf could leave such
files around, and you don't want to annoy the user with errors
for files with no data in it.
Signed-off-by: Pierre Habouzit <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions