Add type to record_ctrl interface

Redesign record_ctrl tools. Run "gcc -o record_ctrl record_ctrl.c" to compile
and "./record_ctrl" to see its usage.

Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com>