Module related to trace filter. See the Filter
object.
Class | RingPolicy |
Enum describing the ring policy to apply in a filter |
Function | filter |
Get all context ranges that are associated to the given processes and given ring policy |
Function | _pack_processes |
Undocumented |
Function | _pack_ring_policy |
Undocumented |
Function | _forward_filter |
Undocumented |
Function | _backward_filter |
Undocumented |
Undocumented
Parameters | processes | Undocumented (type: _Iterable[_Process] ) |
Undocumented
Parameters | ring_policy | Undocumented (type: RingPolicy ) |
Undocumented
Parameters | _rvn | Undocumented (type: _reven_api.reven_connection ) |
processes | Undocumented (type: _Iterable[_Process] ) | |
ring_policy | Undocumented (type: RingPolicy ) | |
from_context | Undocumented (type: int ) | |
to_context | Undocumented (type: int ) | |
fetch_count | Undocumented (type: int ) | |
trace | Undocumented (type: _trace.Trace ) | |
Returns | Undocumented (type: _Iterator[_trace.ContextRange] ) |
Undocumented
Parameters | _rvn | Undocumented (type: _reven_api.reven_connection ) |
processes | Undocumented (type: _Iterable[_Process] ) | |
ring_policy | Undocumented (type: RingPolicy ) | |
from_context | Undocumented (type: int ) | |
to_context | Undocumented (type: int ) | |
fetch_count | Undocumented (type: int ) | |
trace | Undocumented (type: _trace.Trace ) | |
Returns | Undocumented (type: _Iterator[_trace.BackwardContextRange] ) |
Get all context ranges that are associated to the given processes and given ring policy
A valid list of `ossi.Process` object must be given. To get one, use the `Ossi.executed_processes` method.
This function is not meant to be call directly. Use RevenServer.trace.filter
(Trace.filter
) instead.
Depends on the ossi range resource. If unavailable, this function will raise an error.
>>> # iterate on ranges in ring 0 >>> for range in reven_server.trace.filter(ring_policy=reven2.filter.RingPolicy.R0Only): >>> print(range) [Context before #853196, Context before #857514] [Context before #5113265, Context before #5118308] [Context before #8202545, Context before #8208679] [Context before #16222616, Context before #16229012]
>>> # iterate on any contexts associated to process `foo.exe` with pid 1234 >>> process = next(reven_server.ossi.executed_processes('foo.exe', 1234)) >>> for range in reven_server.trace.filter([process]): >>> for context in range: >>> print(context) Context before #1000 Context before #1001 Context before #1002 Context before #1003 Context before #1004 Context before #1005 ...
Parameters | _rvn | Undocumented (type: _reven_api.reven_connection ) |
trace | Undocumented (type: _trace.Trace ) | |
ossi | Undocumented (type: _Ossi ) | |
processes | Undocumented (type: _Optional[_Iterable[_Process]] ) | |
ring_policy | Undocumented (type: RingPolicy ) | |
from_context | Undocumented (type: _Optional[_trace.Context] ) | |
to_context | Undocumented (type: _Optional[_trace.Context] ) | |
is_forward | Undocumented (type: bool ) | |
fetch_count | Undocumented (type: int ) | |
Returns | Undocumented (type: _Union[_Iterator[_trace.ContextRange], _Iterator[_trace.BackwardContextRange]] ) |