crash.subsystem.storage.blocksq module¶
-
crash.subsystem.storage.blocksq.for_each_request_in_queue(queue: gdb.Value) → Iterable[gdb.Value][source]¶ Iterates over each
struct requestin request_queueThis method iterates over the
request_queue’s queuelist and returns a request for each member.Parameters: queue – The struct request_queueused to iterate. The value must be of typestruct request_queue.Yields: gdb.Value– Eachstruct requestcontained within therequest_queue’s queuelist. The value is of typestruct request.
-
crash.subsystem.storage.blocksq.request_age_ms(request: gdb.Value) → int[source]¶ Returns the age of the request in milliseconds
This method returns the difference between the current time (
jiffies) and the request’sstart_time, in milliseconds.Parameters: request – The struct requestused to determine age. The value is of typestruct request.Returns: - Difference between the request’s
start_timeand - current
jiffiesin milliseconds.
Return type: int- Difference between the request’s
-
crash.subsystem.storage.blocksq.requests_in_flight(queue: gdb.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 read requests, the second is the number of write requests. Return type: ( int,int)