ftrace: correct the counter increment for trace_buffer data