EM-ODP  3.7.0
Event Machine on ODP
em_locm_t Struct Reference

#include <em_mem.h>

Collaboration diagram for em_locm_t:

Data Fields

em_locm_current_t current
 
idle_state_t idle_state
 
int core_id
 
int event_burst_cnt
 
bool atomic_group_released
 
bool do_input_poll
 
bool do_output_drain
 
bool is_external_thr
 
bool is_sched_paused
 
unsigned int dispatch_cnt
 
odp_time_t dispatch_last_run
 
unsigned int poll_drain_dispatch_cnt
 
odp_time_t poll_drain_dispatch_last_run
 
local_queues_t local_queues
 
eo_elem_tstart_eo_elem
 
uint64_t error_count
 
em_log_func_t log_fn
 
em_vlog_func_t vlog_fn
 
sync_api_t sync_api
 
uint64_t debug_ts [EM_DEBUG_TSP_LAST]
 
output_queue_track_t output_queue_track
 
void *end[0] ENV_CACHE_LINE_ALIGNED
 

Detailed Description

EM core local data

Definition at line 188 of file em_mem.h.

Field Documentation

◆ atomic_group_released

bool em_locm_t::atomic_group_released

em_atomic_processing_end() called during event dispatch

Definition at line 201 of file em_mem.h.

◆ core_id

int em_locm_t::core_id

EM core id for this core

Definition at line 196 of file em_mem.h.

◆ current

em_locm_current_t em_locm_t::current

EM core/local current state

Definition at line 190 of file em_mem.h.

◆ debug_ts

uint64_t em_locm_t::debug_ts[EM_DEBUG_TSP_LAST]

dispatcher debug timestamps (ns)

Definition at line 239 of file em_mem.h.

◆ dispatch_cnt

unsigned int em_locm_t::dispatch_cnt

Number of dispatch rounds since previous polling of ctrl queues

Definition at line 212 of file em_mem.h.

◆ dispatch_last_run

odp_time_t em_locm_t::dispatch_last_run

Time when polling of ctrl queues where last done

Definition at line 214 of file em_mem.h.

◆ do_input_poll

bool em_locm_t::do_input_poll

Is input_poll_fn executed on this core

Definition at line 203 of file em_mem.h.

◆ do_output_drain

bool em_locm_t::do_output_drain

Is output_drain_fn executed on this core

Definition at line 205 of file em_mem.h.

◆ ENV_CACHE_LINE_ALIGNED

void* end [0] em_locm_t::ENV_CACHE_LINE_ALIGNED

Guarantee that size is a multiple of cache line size

Definition at line 245 of file em_mem.h.

◆ error_count

uint64_t em_locm_t::error_count

The number of errors on a core

Definition at line 227 of file em_mem.h.

◆ event_burst_cnt

int em_locm_t::event_burst_cnt

The number of events from the scheduler to dispatch

Definition at line 198 of file em_mem.h.

◆ idle_state

idle_state_t em_locm_t::idle_state

Idle state of the core, used when calling idle hooks

Definition at line 193 of file em_mem.h.

◆ is_external_thr

bool em_locm_t::is_external_thr

Is thread external to EM (doesn't participate in event dispatching)

Definition at line 207 of file em_mem.h.

◆ is_sched_paused

bool em_locm_t::is_sched_paused

Is the scheduler paused on this core (for odp_sched_pause/resume())

Definition at line 209 of file em_mem.h.

◆ local_queues

local_queues_t em_locm_t::local_queues

Local queues, i.e. storage for events to local queues

Definition at line 222 of file em_mem.h.

◆ log_fn

em_log_func_t em_locm_t::log_fn

EM-core local log function

Definition at line 230 of file em_mem.h.

◆ output_queue_track

output_queue_track_t em_locm_t::output_queue_track

Track output-queues used during this dispatch round (burst)

Definition at line 242 of file em_mem.h.

◆ poll_drain_dispatch_cnt

unsigned int em_locm_t::poll_drain_dispatch_cnt

Number of dispatch rounds since previous call of poll/drain functions

Definition at line 217 of file em_mem.h.

◆ poll_drain_dispatch_last_run

odp_time_t em_locm_t::poll_drain_dispatch_last_run

Time when poll and drain functions were last called

Definition at line 219 of file em_mem.h.

◆ start_eo_elem

eo_elem_t* em_locm_t::start_eo_elem

EO start-function ongoing, buffer all events and send after start

Definition at line 225 of file em_mem.h.

◆ sync_api

sync_api_t em_locm_t::sync_api

Synchronous API

Definition at line 236 of file em_mem.h.

◆ vlog_fn

em_vlog_func_t em_locm_t::vlog_fn

EM-core local log function with va_list

Definition at line 233 of file em_mem.h.


The documentation for this struct was generated from the following file: