commit | 65a14e3c0cc780961e380e3a339ecddd0b0b7548 | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Mon Jan 04 14:17:14 2010 -0500 |
committer | Steven Rostedt <rostedt@goodmis.org> | Mon Jan 04 14:17:14 2010 -0500 |
tree | a2710b9d5dc73a60c828f272bb6774c229be9153 | |
parent | 05e0559ecaff29d65a478e85addef12cf9d1a81b [diff] |
trace-cmd: Have tracecmd_read_cpu_first() return the first record There was a bug with tracecmd_read_cpu_first() where it may not return the first record for a CPU. If another record was read on the first page the get_page() function would return without reseting the index. The tracecmd_read_cpu_first() needs to always reset the index before returning tracecmd_read_data(). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>