crash.subsystem.storage.block module¶
- crash.subsystem.storage.block.for_each_request_in_queue(queue: Value) Iterable[Value][source]¶
Iterates over each
struct requestin request_queueThis method iterates over requests queued in
request_queue. It takes care of properly handling both single and multiqueue queues.- Parameters:
queue – The
struct request_queueused to iterate. The value must be of typestruct request_queue.- Yields:
gdb.Value– Eachstruct requestcontained within therequest_queue. The value is of typestruct request.
- crash.subsystem.storage.block.queue_request_stats(queue: Value) Tuple[int, int, int, int][source]¶
Report various request information for this queue
- Parameters:
queue – The request queue to inspect for request information. The value must be of type
struct request_queue.- Returns:
Number queued async requests, number of queued sync requests, number of async requests being processed by the driver, number of sync requests being processed by the driver.
- Return type:
(
int,int,int,int)
- crash.subsystem.storage.block.requests_in_flight(queue: Value) Tuple[int, int][source]¶
Report how many requests are in flight for this queue
- Parameters:
queue – The request queue to inspect for requests in flight. The value must be of type
struct request_queue.- Returns:
The requests in flight. The first member of the 2-tuple is the number of async requests, the second is the number of sync requests.
- Return type:
(
int,int)
- crash.subsystem.storage.block.requests_queued(queue: Value) Tuple[int, int][source]¶
Report how many requests are queued for this queue
- Parameters:
queue – The request queue to inspect for number of queued requests. The value must be of type
struct request_queue.- Returns:
The number of queued requests. The first member of the 2-tuple is the number of async requests, the second is the number of sync requests.
- Return type:
(
int,int)