backport v2.6.35 new tracepoint API with ABI compatiblity

Ren Zhen Yu backported these two patches to prepare for LTTng kmods support. He have tested them for one weekend under heavy concurrent tests.