pub struct CoverageDataCollectorProxy { /* private fields */ }
Implementations§
Source§impl CoverageDataCollectorProxy
impl CoverageDataCollectorProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.fuzzer/CoverageDataCollector.
Sourcepub fn take_event_stream(&self) -> CoverageDataCollectorEventStream
pub fn take_event_stream(&self) -> CoverageDataCollectorEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn initialize(
&self,
eventpair: EventPair,
process: Process,
) -> QueryResponseFut<Options, DefaultFuchsiaResourceDialect>
pub fn initialize( &self, eventpair: EventPair, process: Process, ) -> QueryResponseFut<Options, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn add_inline8bit_counters( &self, inline_8bit_counters: Vmo, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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 Clone for CoverageDataCollectorProxy
impl Clone for CoverageDataCollectorProxy
Source§fn clone(&self) -> CoverageDataCollectorProxy
fn clone(&self) -> CoverageDataCollectorProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CoverageDataCollectorProxyInterface for CoverageDataCollectorProxy
impl CoverageDataCollectorProxyInterface for CoverageDataCollectorProxy
type InitializeResponseFut = QueryResponseFut<Options>
type AddInline8bitCountersResponseFut = QueryResponseFut<()>
fn initialize( &self, eventpair: EventPair, process: Process, ) -> Self::InitializeResponseFut
fn add_inline8bit_counters( &self, inline_8bit_counters: Vmo, ) -> Self::AddInline8bitCountersResponseFut
Source§impl Debug for CoverageDataCollectorProxy
impl Debug for CoverageDataCollectorProxy
Source§impl Proxy for CoverageDataCollectorProxy
impl Proxy for CoverageDataCollectorProxy
Source§type Protocol = CoverageDataCollectorMarker
type Protocol = CoverageDataCollectorMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Auto Trait Implementations§
impl Freeze for CoverageDataCollectorProxy
impl !RefUnwindSafe for CoverageDataCollectorProxy
impl Send for CoverageDataCollectorProxy
impl Sync for CoverageDataCollectorProxy
impl Unpin for CoverageDataCollectorProxy
impl !UnwindSafe for CoverageDataCollectorProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)