summaryrefslogtreecommitdiff
path: root/btt/btt_plot.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-11-04 22:10:00 -0600
committerJens Axboe <axboe@kernel.dk>2017-11-04 22:10:00 -0600
commitab6809de8aa6c1e2bac1e2d9167e5232f0cccfeb (patch)
tree645e1072f43b6fbd3e543056dc4526a18773b4d5 /btt/btt_plot.py
parent8772bc4fb049bdd879de5952d6f291a34112fae0 (diff)
downloadblktrace-ab6809de8aa6c1e2bac1e2d9167e5232f0cccfeb.tar.gz
blktrace-ab6809de8aa6c1e2bac1e2d9167e5232f0cccfeb.tar.bz2
blktrace: abort if device ioctl setup fails
If we fail doing the BLKTRACESETUP ioctl, blktrace still marches on and sets up the rest. This results in errors like the below: blktrace /dev/sdf BLKTRACESETUP(2) /dev/sdf failed: 5/Input/output error Thread 1 failed open /sys/kernel/debug/block/(null)/trace1: 2/No such file or directory Thread 3 failed open /sys/kernel/debug/block/(null)/trace3: 2/No such file or directory Thread 2 failed open /sys/kernel/debug/block/(null)/trace2: 2/No such file or directory [...] FAILED to start thread on CPU 0: 1/Operation not permitted FAILED to start thread on CPU 1: 1/Operation not permitted FAILED to start thread on CPU 2: 1/Operation not permitted and blktrace continues to run, though it can't do anything in this state. If the ioctl setup fails, just abort. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'btt/btt_plot.py')
0 files changed, 0 insertions, 0 deletions