Fix tracecmd_read_at after file is fully read

When the file is completely read by tracecmd_read_data, the get_next_page
returns NULL, and no longer mmaps the file.

But tracecmd_read_at may be used after the file has been completely read.
This patch fixes this, and lets tracecmd_read_at work after the file
has been completely read.

Also converted some input_fd to handle->fd.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 file changed