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.

This table gives a brief description of each of the gator events functions:

Gator events function


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 of execution.
gator_events_your_custom_read gator calls this at every sample.
gator_events_your_custom_stop gator calls this at the termination of a capture session.