You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,11 +151,19 @@ The default installation of `mitos` will be configured for Intel based Precise E
151
151
152
152
## Saving the virtual address
153
153
154
-
The source code of the executable must save the virtual addess offset when the executable starts runnnig. This can be done by including the [virtual_address_writer.h](src/virtual_address_writer.h) and calling the function [save_virtual_address_offset("virt_address.txt")](src/virtual_address_writer.h#L18).
154
+
The source code of the executable must save the virtual addess offset when the executable starts runnnig. This can be done by including the [virtual_address_writer.h](src/virtual_address_writer.h) and calling the function [save_virtual_address_offset("/tmp/mitos_virt_address.txt")](src/virtual_address_writer.h#L18).
155
155
156
156
See [matmul.cpp](examples/matmul.cpp) for reference.
157
157
158
-
This saves the virtual address offset to `/tmp/virt_address.txt`. Dyninst will access this file and attribute the source code information when the samples are saved.
158
+
This saves the virtual address offset to `/tmp/mitos_virt_address.txt`. Dyninst will access this file and attribute the source code information when the samples are saved.
159
+
160
+
When running the application with `mitosrun`, another location can also be specified. When doing this, use `-l` option with the `mitosrun` to specify the location of the file.
161
+
162
+
For instance, if the application saves virtual address by calling `save_virtual_address_offset("/myPath/mitos_virt_address.txt")`, `mitosrun` can be run as:
source = source.substr(mout->dname_srcdir_orig.length() + (mout->dname_srcdir_orig.back() == '/' ? 0 : 1)); //to remove slash if there is none in the string
0 commit comments