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:

Mode

Description

gator_events_your_custom_init gator calls this function at startup.

gator_events_your_custom_interface

Tells gator what triggers calls to your custom events file.

gator_events_your_custom_create_files

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.
Was this page helpful? Yes No