- case SIMCALL_COMM_WAITANY: {
- xbt_dynar_t comms;
- simgrid::simix::Comm *act = static_cast<simgrid::simix::Comm*>(simcall_comm_wait__get__comm(req));
-#if HAVE_MC
-
- s_xbt_dynar_t comms_buffer;
- size_t buffer_size = 0;
- if (mc_model_checker != nullptr) {
- // Read dynar:
- mc_model_checker->process().read(
- &comms_buffer, remote(simcall_comm_waitany__get__comms(req)));
- assert(comms_buffer.elmsize == sizeof(act));
- buffer_size = comms_buffer.elmsize * comms_buffer.used;
- comms = &comms_buffer;
- } else
- comms = simcall_comm_waitany__get__comms(req);
-
- // Read all the dynar buffer:
- char buffer[buffer_size];
- if (mc_model_checker != nullptr)
- mc_model_checker->process().read_bytes(buffer, sizeof(buffer),
- remote(comms->data));
-#else
- comms = simcall_comm_waitany__get__comms(req);
-#endif
+ if (req->inspector_ != nullptr)
+ return req->inspector_->is_enabled();
+
+ using simix::Simcall;
+ switch (req->call_) {
+ case Simcall::NONE:
+ return false;
+
+ case Simcall::COMM_WAIT: {
+ /* FIXME: check also that src and dst processes are not suspended */
+ const kernel::activity::CommImpl* act = simcall_comm_wait__getraw__comm(req);