You copied the Doc URL to your clipboard.

gator_events functions

To create your own custom counters, you must add gator functions to your source code.

Here is a brief description of each of the gator event functions:



gator_events_your_custom_init gator calls this function at startup.


Tells gator what triggers calls to your custom events file.


Adds custom directories and enabled, event, and key files to /dev/gator/events.
gator_events_your_custom_start gator calls this at the start or execution.
gator_events_your_custom_read gator calls this function at every sample.
gator_events_your_custom_stop gator calls this at the termination of a capture session.