diff --git a/trace_extra/guest_context_tracker.cc b/trace_extra/guest_context_tracker.cc index 41176ec29c..bb6313a64e 100644 --- a/trace_extra/guest_context_tracker.cc +++ b/trace_extra/guest_context_tracker.cc @@ -138,9 +138,7 @@ void guest_context_tracker::mode_update( void guest_context_tracker::context_update(const log_event_ctx_update_t *evt) { // Currently these are the only ones existing - assert((evt->op == LOG_EVENT_CTX_OP_SWITCH || - evt->op == LOG_EVENT_CTX_OP_SETUP) && - "Invalid ctx update op"); + assert((evt->op == LOG_EVENT_CTX_OP_SWITCH) && "Invalid ctx update op"); /* * Find or create the track associated with the new context and set it as * the current context track on the CPU. This will be used to log diff --git a/trace_extra/trace_perfetto.cc b/trace_extra/trace_perfetto.cc index 0aa99af972..35d83f0b6c 100644 --- a/trace_extra/trace_perfetto.cc +++ b/trace_extra/trace_perfetto.cc @@ -213,8 +213,7 @@ void process_events(perfetto_backend_data *data, cpu_log_entry_handle entry) } break; case LOG_EVENT_CTX_UPDATE: { /* Swap current context. */ - if (evt->ctx_update.op == LOG_EVENT_CTX_OP_SETUP || - evt->ctx_update.op == LOG_EVENT_CTX_OP_SWITCH) { + if (evt->ctx_update.op == LOG_EVENT_CTX_OP_SWITCH) { ctx_data->stats.pause(*ctx_track, perfetto_log_entry_pc(entry)); data->ctx_tracker_.context_update(&evt->ctx_update); /* Reload data and track as context_update will have changed