@@ -10,6 +10,9 @@ use libafl::{
10
10
executors:: InProcessForkExecutor ,
11
11
state:: { HasLastReportTime , HasMetadata } ,
12
12
} ;
13
+
14
+ #[ cfg( feature = "introspection" ) ]
15
+ use libafl:: state:: HasClientPerfMonitor ;
13
16
use libafl:: {
14
17
events:: { EventFirer , EventRestarter } ,
15
18
executors:: {
@@ -20,7 +23,7 @@ use libafl::{
20
23
fuzzer:: HasObjective ,
21
24
inputs:: UsesInput ,
22
25
observers:: { ObserversTuple , UsesObservers } ,
23
- state:: { HasClientPerfMonitor , HasCorpus , HasExecutions , HasSolutions , State , UsesState } ,
26
+ state:: { HasCorpus , HasExecutions , HasSolutions , State , UsesState } ,
24
27
Error ,
25
28
} ;
26
29
use libafl_bolts:: os:: unix_signals:: { siginfo_t, ucontext_t, Signal } ;
@@ -81,7 +84,7 @@ pub unsafe fn inproc_qemu_crash_handler<E, EM, OF, Z>(
81
84
E : Executor < EM , Z > + HasObservers ,
82
85
EM : EventFirer < State = E :: State > + EventRestarter < State = E :: State > ,
83
86
OF : Feedback < E :: State > ,
84
- E :: State : HasExecutions + HasSolutions + HasClientPerfMonitor + HasCorpus ,
87
+ E :: State : HasExecutions + HasSolutions + HasCorpus ,
85
88
Z : HasObjective < Objective = OF , State = E :: State > ,
86
89
{
87
90
let real_crash = if USE_LIBAFL_CRASH_HANDLER {
@@ -118,7 +121,7 @@ pub unsafe fn inproc_qemu_timeout_handler<E, EM, OF, Z>(
118
121
E : Executor < EM , Z > + HasObservers ,
119
122
EM : EventFirer < State = E :: State > + EventRestarter < State = E :: State > ,
120
123
OF : Feedback < E :: State > ,
121
- E :: State : HasSolutions + HasClientPerfMonitor + HasCorpus + HasExecutions ,
124
+ E :: State : HasSolutions + HasCorpus + HasExecutions ,
122
125
Z : HasObjective < Objective = OF , State = E :: State > ,
123
126
{
124
127
if BREAK_ON_TMOUT {
@@ -148,7 +151,7 @@ where
148
151
where
149
152
EM : EventFirer < State = S > + EventRestarter < State = S > ,
150
153
OF : Feedback < S > ,
151
- S : State + HasExecutions + HasCorpus + HasSolutions + HasClientPerfMonitor ,
154
+ S : State + HasExecutions + HasCorpus + HasSolutions ,
152
155
Z : HasObjective < Objective = OF , State = S > ,
153
156
{
154
157
let mut inner = InProcessExecutor :: new ( harness_fn, observers, fuzzer, state, event_mgr) ?;
@@ -322,7 +325,7 @@ where
322
325
where
323
326
EM : EventFirer < State = S > + EventRestarter ,
324
327
OF : Feedback < S > ,
325
- S : HasSolutions + HasClientPerfMonitor ,
328
+ S : HasSolutions ,
326
329
Z : HasObjective < Objective = OF , State = S > ,
327
330
{
328
331
assert ! ( !QT :: HOOKS_DO_SIDE_EFFECTS , "When using QemuForkExecutor, the hooks must not do any side effect as they will happen in the child process and then discarded" ) ;
@@ -367,7 +370,7 @@ impl<'a, EM, H, OT, QT, S, Z, SP> Executor<EM, Z> for QemuForkExecutor<'a, H, OT
367
370
where
368
371
EM : EventManager < InProcessForkExecutor < ' a , H , OT , S , SP > , Z , State = S > ,
369
372
H : FnMut ( & S :: Input ) -> ExitKind ,
370
- S : State + HasClientPerfMonitor + HasMetadata + HasExecutions + HasLastReportTime ,
373
+ S : State + HasMetadata + HasExecutions + HasLastReportTime ,
371
374
OT : ObserversTuple < S > ,
372
375
QT : QemuHelperTuple < S > ,
373
376
SP : ShMemProvider ,
0 commit comments