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>
1 file changed