diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 326068a593a5f4a735483611580add3c68de8679..738d3b8d97459e12418bdcbcdf7eb8cbbc319b2d 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -2391,7 +2391,6 @@ int perf_session__write_header(struct perf_session *session, } lseek(fd, header->data_offset + header->data_size, SEEK_SET); - header->frozen = 1; return 0; } @@ -2871,7 +2870,6 @@ int perf_session__read_header(struct perf_session *session, int fd) session->pevent)) goto out_delete_evlist; - header->frozen = 1; return 0; out_errno: return -errno; diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index c9fc55cada6d1ceaf04c001f40bc9c052ef566ff..16a3e83c584e7a08003f6c7803fdf7cf8a99246f 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h @@ -84,7 +84,6 @@ struct perf_session_env { }; struct perf_header { - int frozen; bool needs_swap; s64 attr_offset; u64 data_offset;