|
|
@@ -2636,6 +2636,7 @@ int perf_header__fprintf_info(struct perf_session *session, FILE *fp, bool full)
|
|
|
struct perf_header *header = &session->header;
|
|
|
int fd = perf_data__fd(session->data);
|
|
|
struct stat st;
|
|
|
+ time_t stctime;
|
|
|
int ret, bit;
|
|
|
|
|
|
hd.fp = fp;
|
|
|
@@ -2645,7 +2646,8 @@ int perf_header__fprintf_info(struct perf_session *session, FILE *fp, bool full)
|
|
|
if (ret == -1)
|
|
|
return -1;
|
|
|
|
|
|
- fprintf(fp, "# captured on : %s", ctime(&st.st_ctime));
|
|
|
+ stctime = st.st_ctime;
|
|
|
+ fprintf(fp, "# captured on : %s", ctime(&stctime));
|
|
|
|
|
|
fprintf(fp, "# header version : %u\n", header->version);
|
|
|
fprintf(fp, "# data offset : %" PRIu64 "\n", header->data_offset);
|