module documentation

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
def _pack_processes(processes):

Undocumented

ParametersprocessesUndocumented (type: _Iterable[_Process])
def _pack_ring_policy(ring_policy):

Undocumented

Parametersring_policyUndocumented (type: RingPolicy)
def _forward_filter(_rvn, processes, ring_policy, from_context, to_context, fetch_count, trace):

Undocumented

Parameters_rvnUndocumented (type: _reven_api.reven_connection)
processesUndocumented (type: _Iterable[_Process])
ring_policyUndocumented (type: RingPolicy)
from_contextUndocumented (type: int)
to_contextUndocumented (type: int)
fetch_countUndocumented (type: int)
traceUndocumented (type: _trace.Trace)
ReturnsUndocumented (type: _Iterator[_trace.ContextRange])
def _backward_filter(_rvn, processes, ring_policy, from_context, to_context, fetch_count, trace):

Undocumented

Parameters_rvnUndocumented (type: _reven_api.reven_connection)
processesUndocumented (type: _Iterable[_Process])
ring_policyUndocumented (type: RingPolicy)
from_contextUndocumented (type: int)
to_contextUndocumented (type: int)
fetch_countUndocumented (type: int)
traceUndocumented (type: _trace.Trace)
ReturnsUndocumented (type: _Iterator[_trace.BackwardContextRange])
def filter(_rvn, trace, ossi, processes=None, ring_policy=RingPolicy.All, from_context=None, to_context=None, is_forward=True, fetch_count=10):

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.

Warnings

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.

Examples

>>> # 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_rvnUndocumented (type: _reven_api.reven_connection)
traceUndocumented (type: _trace.Trace)
ossiUndocumented (type: _Ossi)
processesUndocumented (type: _Optional[_Iterable[_Process]])
ring_policyUndocumented (type: RingPolicy)
from_contextUndocumented (type: _Optional[_trace.Context])
to_contextUndocumented (type: _Optional[_trace.Context])
is_forwardUndocumented (type: bool)
fetch_countUndocumented (type: int)
ReturnsUndocumented (type: _Union[_Iterator[_trace.ContextRange], _Iterator[_trace.BackwardContextRange]])
API Documentation for reven2, generated by pydoctor 21.2.2 at 2021-10-01 07:18:12.