You copied the Doc URL to your clipboard.

Attributes for custom, filesystem, and ftrace counters in the events XML file

Events XML files define the counters that you can select in the Counter Configuration dialog box. In order to add custom, filesystem, or ftrace counters to gator, you must define them in your events XML file.

For descriptions of the valid XML nodes and attributes you can use in the events XML file, see the gator protocol documentation, located in DS-5_install_directory/sw/streamline/protocol/gator/. In addition, the following attributes are specific to Filesystem and Ftrace counters:

regex
A POSIX-extended regular expression used to extract a value from a file.
path
The absolute path and name of a file, for example /proc/stat.
enable
For ftrace counters only, specifies an ftrace event to enable. This attribute is optional.
tracepoint
This has the same meaning as enable, but uses perf instead of ftrace when using user space gator. This attribute is optional.
arg
Used in conjunction with tracepoint to specify the value to show. This attribute is optional. If not specified, the number of tracepoint events is counted.
Was this page helpful? Yes No