summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorMark Wachsler <wachsler@google.com>2013-09-11 18:23:31 -0400
committerMark Wachsler <wachsler@google.com>2013-09-16 18:08:07 -0400
commitbd446c76f3676b1a8d752fbd83846b54a81ac602 (patch)
tree4ffb9bc001cbfb7539b457f4d1ab7b2a6fffa040 /trusty/coverage/coverage_test.cpp
parent596e9c6314e4f2869499bcdbb816680ddb10c88f (diff)
Don't use control requests to read device serial numbers.
Instead of sending control requests to all devices to read their serial numbers, read the cached strings from sysfs. This fixes two problems: 1) The control requests sometimes timed out, causing devices to show up as "????????????????", and 2) a control request could mess up devices which were in the middle of being flashed. Also enumerate by walking sysfs rather than devs so that we can avoid opening host controller devices, which can be slow. On a system with 10 EHCI controllers, fastboot devices now takes 7 msec instead of 700 msec. Change-Id: I2ad2d58b48268d7950bd279fd6a6753dc2f79514
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions