pub struct CoverageDataCollectorSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CoverageDataCollectorSynchronousProxy
impl CoverageDataCollectorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CoverageDataCollectorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CoverageDataCollectorEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn initialize(
&self,
eventpair: EventPair,
process: Process,
___deadline: MonotonicInstant,
) -> Result<Options, Error>
pub fn initialize( &self, eventpair: EventPair, process: Process, ___deadline: MonotonicInstant, ) -> Result<Options, Error>
Registers the instrumented target process.
This method is called once per connection to set up:
- The eventpair used to synchronize the start and end of code coverage collection.
- The process Handle used to monitor the target process for errors.
This method must be called before the target process can call AddLlvmModule
.
It returns the currently set options; see fuchsia.fuzzer.Controller/Configure
.
Certain options determine sanitizer behaviors before main
is called, and cannot
subsequently be changed while the target process is running. This is the root cause of the
constraint in Controller
against modifying options during “long-running workflows”, i.e
those that spawn target processes.
The channel is closed on FIDL error. Clients should not attempt to reconnect.
Sourcepub fn add_inline8bit_counters(
&self,
inline_8bit_counters: Vmo,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn add_inline8bit_counters( &self, inline_8bit_counters: Vmo, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Adds a VMO with the code coverage of an LLVM module.
The VMO used to share inline 8-bit code-coverage edge counters for a single LLVM module in an instrumented target process.
Its ZX_PROP_NAME property must be set, and client and server implementations must agree on how to use it to uniquely identify the module. If the same module is added more than once by different processes, the module identifiers must match so that the code counters can be combined.
Its ZX_PROP_VMO_CONTENT_SIZE property must be set to the actual number of counters present.
It is an error to call this method without first calling |Initialize|.
The channel is closed on FIDL error. Clients should not attempt to reconnect.
See also: https://clang.llvm.org/docs/SanitizerCoverage.html#inline-8bit-counters
Trait Implementations§
Source§impl SynchronousProxy for CoverageDataCollectorSynchronousProxy
impl SynchronousProxy for CoverageDataCollectorSynchronousProxy
Source§type Proxy = CoverageDataCollectorProxy
type Proxy = CoverageDataCollectorProxy
Source§type Protocol = CoverageDataCollectorMarker
type Protocol = CoverageDataCollectorMarker
Proxy
controls.