#include <l4/rt_mon/types.h>
Go to the source code of this file.
Functions | |
| EXTERN_C_BEGIN rt_mon_event_list_t * | rt_mon_list_create (int event_size, int event_type, int event_count, const char *name, const char *unit, int clock, int shared) |
| Creates a new event_list, allocates memory for it and registers it at the coordinator. | |
| void | rt_mon_list_free (rt_mon_event_list_t *list) |
| Destroys an event_list, unregisters it at the coordinator and frees its memory. | |
| void | rt_mon_list_insert (rt_mon_event_list_t *list, const void *event) |
| Insert event into event_list. | |
| rt_mon_time_t | rt_mon_list_measure (rt_mon_event_list_t *list) |
| Get a time stamp using the timesource specified in list. | |
| int | rt_mon_list_remove (rt_mon_event_list_t *list, void *event) |
| Get (move) an event from list. | |
| void | rt_mon_list_dump (rt_mon_event_list_t *list) |
| Dump the content of an event_list using printf. | |
| EXTERN_C_BEGIN rt_mon_event_list_t* rt_mon_list_create | ( | int | event_size, | |
| int | event_type, | |||
| int | event_count, | |||
| const char * | name, | |||
| const char * | unit, | |||
| int | clock, | |||
| int | shared | |||
| ) |
Creates a new event_list, allocates memory for it and registers it at the coordinator.
| event_size | Size in bytes of all events in this event_list | |
| event_type | typecode for the events, can be used to distinguish lists with different event types in monitors | |
| event_count | number of events to allocate memory buffer for | |
| name | name of this event_list | |
| unit | measurement unit of data transported in the events in this event_list | |
| clock | type of time source to use for this sensor | |
| shared | boolean flag whether to use a shared datastructure |
| void rt_mon_list_dump | ( | rt_mon_event_list_t * | list | ) |
Dump the content of an event_list using printf.
| list | event_list to dump |
| void rt_mon_list_free | ( | rt_mon_event_list_t * | list | ) |
Destroys an event_list, unregisters it at the coordinator and frees its memory.
| list | event_list to free |
| void rt_mon_list_insert | ( | rt_mon_event_list_t * | list, | |
| const void * | event | |||
| ) | [inline] |
Insert event into event_list.
| list | event_list to insert to | |
| event | event to insert |
| rt_mon_time_t rt_mon_list_measure | ( | rt_mon_event_list_t * | list | ) | [inline] |
Get a time stamp using the timesource specified in list.
| list | event_list to get the time source type from |
| int rt_mon_list_remove | ( | rt_mon_event_list_t * | list, | |
| void * | event | |||
| ) | [inline] |
Get (move) an event from list.
| list | event_list to get the event from | |
| event | pointer to event struct to move event to |
1.5.6