06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

log_event pROBE+ and ESp <strong>System</strong> <strong>Calls</strong><br />

log_event Logs an event on ESp’s target-resident application monitor, pMONT.<br />

unsigned long log_event (<br />

unsigned long user_event_id, /* user-defined event ID */<br />

unsigned long event_data /* user-defined event data */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

This call logs an event in pMONT’s trace buffer. The log_event() call takes effect<br />

when the ESp data collection run begins.<br />

user_event_id Specifies an ID number for the current call to log_event().<br />

The maximum allowable ID number is 0xff. Providing an ID<br />

number for each call to log_event() helps you keep track of<br />

user-events.<br />

event_data An optional word or words you can use to store data<br />

associated with the event.<br />

This call always returns 0.<br />

None.<br />

Because pMONT uses pSOS+ objects for its functionality, some user-defined entries<br />

in the pSOS+ configuration table affect pMONT behavior and can even increase the<br />

likelihood of error messages. For example, an insufficient number of message<br />

buffers may result in a sudden break in the host/target connection. The paragraphs<br />

that follow explain this.<br />

pMONT uses the system-wide buffer pool to post messages to its queues, so you<br />

need to consider this when specifying kc_nmsgbuf in the pSOS+ configuration<br />

6-6 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!