RKH
|
Specifies the runtime filter operations for the trace facility. More...
#include "rkhtrc_define.h"
Go to the source code of this file.
Data Structures | |
struct | RKH_TRC_FIL_T |
Represents the filter of signal and active object. More... | |
Macros | |
#define | RKH_FILTER_ON_GROUP(grp) rkh_trc_filter_group_(FILTER_ON, (grp), EUNCHANGE) |
Suppress the enabled trace events from a specific group. Use the RKH_TRC_ALL_GROUPS to disable all groups. | |
#define | RKH_FILTER_OFF_GROUP(grp) rkh_trc_filter_group_(FILTER_OFF, (grp), EUNCHANGE) |
Emit the enabled trace events from a specific group. Use the RKH_TRC_ALL_GROUPS to enable all groups. | |
#define | RKH_FILTER_ON_EVENT(evt) rkh_trc_filter_event_(FILTER_ON, (evt)) |
Suppress (disable) one trace event. Use the RKH_TRC_ALL_EVENTS to disable all trace events. | |
#define | RKH_FILTER_OFF_EVENT(evt) rkh_trc_filter_event_(FILTER_OFF, (evt)) |
Emit (enable) one trace event. Use the RKH_TRC_ALL_EVENTS to enable all trace events. More... | |
#define | RKH_FILTER_ON_GROUP_ALL_EVENTS(grp) rkh_trc_filter_group_(FILTER_ON, (grp), ECHANGE) |
Suppress (disable) all events in a specific group. | |
#define | RKH_FILTER_OFF_GROUP_ALL_EVENTS(grp) rkh_trc_filter_group_(FILTER_OFF, (grp), ECHANGE) |
Emit (enable) all events in a specific group. More... | |
#define | RKH_FILTER_ON_SMA(sma) |
Suppress the enable trace events related to a specified active object. | |
#define | RKH_FILTER_ON_ALL_SMA() rkh_trc_symFil(RKHFilterSma, 0, RKH_TRC_SET_ALL(FILTER_ON)) |
Suppress all enabled trace events related to active objects. | |
#define | RKH_FILTER_OFF_SMA(sma) |
Emmit the enabled trace events related to a specified active object. | |
#define | RKH_FILTER_OFF_ALL_SMA() rkh_trc_symFil(RKHFilterSma, 0, RKH_TRC_SET_ALL(FILTER_OFF)) |
Emmit all enabled trace events related to active objects. | |
#define | RKH_FILTER_ON_SIGNAL(sig) rkh_trc_symFil(RKHFilterSignal, (sig), FILTER_ON) |
Suppress the enabled trace events related to a specified event signal. | |
#define | RKH_FILTER_ON_ALL_SIGNALS() rkh_trc_symFil(RKHFilterSignal, 0, RKH_TRC_SET_ALL(FILTER_ON)) |
Suppress all enabled trace events related to signals. | |
#define | RKH_FILTER_OFF_SIGNAL(sig) rkh_trc_symFil(RKHFilterSignal, (sig), FILTER_OFF) |
Emmit the enabled trace events related to a specified event signal. | |
#define | RKH_FILTER_OFF_ALL_SIGNALS() rkh_trc_symFil(RKHFilterSignal, 0, RKH_TRC_SET_ALL(FILTER_OFF)) |
Emmit all enabled trace events related to signals. | |
Typedefs | |
typedef rui8_t | RKH_TRC_FSLOT |
This data type defines the size of filter table for AO and signals. | |
Functions | |
void | rkh_trc_filter_group_ (rui8_t ctrl, RKH_TG_T grp, rui8_t mode) |
Emit or suppress all trace events from a specific group. More... | |
void | rkh_trc_filter_event_ (rui8_t ctrl, RKH_TE_ID_T evt) |
Emit or suppress a specific event. More... | |
rbool_t | rkh_trc_isoff_ (RKH_TE_ID_T e) |
Test the group and event filter condition. More... | |
void | rkh_trc_symFil (RKHFilter fd, RKH_TRC_FSLOT slot, rui8_t mode) |
Emmit or suppresse trace events related to a particular active object or event signal. More... | |
rbool_t | rkh_trc_symFil_isoff (RKHFilter fd, RKH_TRC_FSLOT slot) |
Test the active objecto or signal filter condition. More... | |
void | rkh_trc_filter_get (RKH_FilterTbl *outFilterTbl) |
Get a memory reference to every trace filter table. More... | |
Specifies the runtime filter operations for the trace facility.
Definition in file rkhtrc_filter.h.
void rkh_trc_filter_group_ | ( | rui8_t | ctrl, |
RKH_TG_T | grp, | ||
rui8_t | mode | ||
) |
Emit or suppress all trace events from a specific group.
The stream is initially created with an empty filter (that is, without filtering any event type). If this is not the required behavior, the application can build a set of event types, include the appropriate event types in it, and apply it as a filter to the stream. After that, the stream will reject any event whose type is in the filter set.
Gathering many events generates a lot of data, which requires memory and processor time. It also makes the task of interpreting the data more difficult. Because the amount of data that the instrumented framework generates can be overwhelming, the RKH supports several types of filters that can use it to reduce the amount of data to be processed. The available groups are enumerated in RKH_TG_<group> definitions.
[in] | ctrl | filter option, the available options are FILTER_ON or FILTER_OFF. |
[in] | grp | trace group. The available groups are enumerated in RKH_TG_<group> definitions. |
[in] | mode | filter mode. ECHANGE indicates that the all event's group are accordingly changed as filter option value, otherwise EUNCHANGE. |
void rkh_trc_filter_event_ | ( | rui8_t | ctrl, |
RKH_TE_ID_T | evt | ||
) |
Emit or suppress a specific event.
The stream is initially created with an empty filter (that is, without filtering any event type). If this is not the required behavior, the application can build a set of event types, include the appropriate event types in it, and apply it as a filter to the stream. After that, the stream will reject any event whose type is in the filter set.
Gathering many events generates a lot of data, which requires memory and processor time. It also makes the task of interpreting the data more difficult. Because the amount of data that the instrumented framework generates can be overwhelming, the RKH supports several types of filters that can use it to reduce the amount of data to be processed. The available events are enumerated in RKH_TE_<group>_<event> definitions.
[in] | ctrl | filter option, the available options are FILTER_ON or FILTER_OFF. |
[in] | evt | trace event. The available events are enumerated in RKH_TE_<group>_<event> definitions. |
rbool_t rkh_trc_isoff_ | ( | RKH_TE_ID_T | e | ) |
Test the group and event filter condition.
[in] | e | trace event ID. The available events are enumerated in RKH_TE_<group>_<event> definitions. |
void rkh_trc_symFil | ( | RKHFilter | fd, |
RKH_TRC_FSLOT | slot, | ||
rui8_t | mode | ||
) |
Emmit or suppresse trace events related to a particular active object or event signal.
[in] | fd | filter type. |
[in] | slot | indicates the filter slot to be applied. |
[in] | mode | filter option, the available options are FILTER_ON or FILTER_OFF. |
rbool_t rkh_trc_symFil_isoff | ( | RKHFilter | fd, |
RKH_TRC_FSLOT | slot | ||
) |
Test the active objecto or signal filter condition.
[in] | fd | filter type. |
[in] | slot | indicates the filter slot to be applied. |
void rkh_trc_filter_get | ( | RKH_FilterTbl * | outFilterTbl | ) |
Get a memory reference to every trace filter table.
[out] | outFilterTbl | pointer to every filter table. |