perf header: Use last modification time for timestamp
[linux-2.6-microblaze.git] / tools / perf / util / header.c
index 93ad278..4246e74 100644 (file)
@@ -2922,7 +2922,7 @@ int perf_header__fprintf_info(struct perf_session *session, FILE *fp, bool full)
        if (ret == -1)
                return -1;
 
-       stctime = st.st_ctime;
+       stctime = st.st_mtime;
        fprintf(fp, "# captured on    : %s", ctime(&stctime));
 
        fprintf(fp, "# header version : %u\n", header->version);