commit | cd58c5549fe71f2589a1dd95178fa9b78aef573f | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Mon Nov 30 15:58:30 2009 -0500 |
committer | Steven Rostedt <rostedt@goodmis.org> | Mon Nov 30 15:58:30 2009 -0500 |
tree | 4a4ca12e1a6cc52ffe7d6e5d51c9742a599562f1 | |
parent | 12b4430819051ce143bf57b9ed55edfdf8b5fc5f [diff] |
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>