Extend tsave to save starttime, stoptime.

This commit is contained in:
Dmitry Kozlov 2013-06-26 15:17:59 +00:00
parent f30aa5affe
commit cdba14e0bf
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
* tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
Fix trace-status to output proper start-time and stop-time.

View File

@ -3229,6 +3229,16 @@ tfile_write_status (struct trace_file_writer *self,
fprintf (writer->fp, ";disconn:%x", ts->disconnected_tracing);
if (ts->circular_buffer)
fprintf (writer->fp, ";circular:%x", ts->circular_buffer);
if (ts->start_time)
{
fprintf (writer->fp, ";starttime:%s",
phex_nz (ts->start_time, sizeof (ts->start_time)));
}
if (ts->stop_time)
{
fprintf (writer->fp, ";stoptime:%s",
phex_nz (ts->stop_time, sizeof (ts->stop_time)));
}
if (ts->notes != NULL)
{
char *buf = (char *) alloca (strlen (ts->notes) * 2 + 1);