diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2021-04-30 09:03:01 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-05-12 17:43:10 +0200 |
commit | 2a525f6a5502bfd80568e6befb84053cf650ad25 (patch) | |
tree | 6b2bdf6fbde7501965a097302c91545deb421bf2 /tools/perf/util/data.h | |
parent | perf intel-pt: Support Z itrace option for timeless decoding (diff) | |
download | linux-2a525f6a5502bfd80568e6befb84053cf650ad25.tar.xz linux-2a525f6a5502bfd80568e6befb84053cf650ad25.zip |
perf inject: Add facility to do in place update
When there is a need to modify only timestamps, it is much simpler and
quicker to do it to the existing file rather than re-write all the
contents.
In preparation for that, add the ability to modify the input file in place.
In practice that just means making the file descriptor and mmaps writable.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20210430070309.17624-5-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/data.h')
-rw-r--r-- | tools/perf/util/data.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/data.h b/tools/perf/util/data.h index 62a3e66fbee8..c9de82af5584 100644 --- a/tools/perf/util/data.h +++ b/tools/perf/util/data.h @@ -31,6 +31,7 @@ struct perf_data { bool is_dir; bool force; bool use_stdio; + bool in_place_update; enum perf_data_mode mode; struct { |