control: Flight recorder wrapper for actions

Add a convenience function 'record()' to the action base class that
handles creating a unique ID for each action instance to pass in to the
flight recorder.  This is done so different instances of actions show up
in their own buckets in the flight recorder.

It just increments a count when each action is created and appends that
count to the action name when creating the unique name, like
"set_net_increase_target-5".

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I8989a02b12b85f1587eea53ec50ba217e1576900
1 file changed