diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-08-30 13:59:59 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-09-02 12:20:12 +0000 |
commit | 3198a52448965ccce9480b9a6b243aee4120cf1e (patch) | |
tree | 2940d6543bc873b9955a644cea69d696dd2f9bc5 | |
parent | 633638ae5dc6f057938bc11337f52c3f047c0d79 (diff) | |
download | gem5-3198a52448965ccce9480b9a6b243aee4120cf1e.tar.xz |
stats: Create HDF5 stat files relative to simout
When using the HDF5 stats backend, we currently pass the filename from
the command line straight to the HDF5 library. This behaviour is
different from the expected behaviour when using plain text stat files
where relative paths are resolved relative to simout. This change adds
support for resolving hdf5 paths relative to simout.
Change-Id: I09cb0b7468735e697125eda7f04c5a85725ca8d0
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20508
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r-- | src/base/stats/hdf5.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/stats/hdf5.cc b/src/base/stats/hdf5.cc index 1e11d5627..0345c8c62 100644 --- a/src/base/stats/hdf5.cc +++ b/src/base/stats/hdf5.cc @@ -319,7 +319,7 @@ initHDF5(const std::string &filename, unsigned chunking, bool desc, bool formulas) { return std::unique_ptr<Output>( - new Hdf5(filename, chunking, desc, formulas)); + new Hdf5(simout.resolve(filename), chunking, desc, formulas)); } }; // namespace Stats |