commit | 85e11f10baf72f3272f3b9aa5aa9e27ecbdfcd77 | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Fri Jan 15 09:36:07 2010 -0500 |
committer | Steven Rostedt <rostedt@goodmis.org> | Fri Jan 15 09:36:07 2010 -0500 |
tree | 1ffec09fb79ad3d1106ac9ba85329eb5ed28a7dc | |
parent | 91a4a56506bdcdab7142788337d63df668839617 [diff] |
trace-cmd: Handle empty CPUs without crashing The get_page() needs to return -1 on reading a CPU that has no data. Also added checks of get_page() return status that was missing from some callers. Have tracecmd_set_cpu_to_timestamp() also return -1 when reading an empty CPU. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>