libtraceevent: Fix tep_kbuffer() to have kbuf assign long_size

If the tep handle that returns the kbuf from tep_kbuffer() did not have its
long_size initialized, neither will the kbuffer it returns. This can cause
inconsistent results. Default the long_size to the "commit" size of the header
page as that should also be the size of long.

Link: https://lore.kernel.org/linux-trace-devel/[email protected]

Fixes: 21ba6336 ("libtraceevent: Add kbuffer_create()")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 file changed