ftrace/x86: Add support for C version of recordmcount