Comments (3)
Note that trace_entry_t was originally not meant to be a public interface at all. Even now with the record_filter_t tool operating on it, nearly all uses should be at the memref_t level. We want to discourage new tools like converters from our format to other formats from using trace_entry_t as they will end up duplicating caching of encodings + v2p + other non-repeated items or will make mistakes; that is one reason we never wanted it to be well-documented/publicized/supported externally.
from dynamorio.
Pasting from #6771 (comment)
trace_entry_t is not meant to be a public interface with guaranteed stability. The public interface is the memref_t record and reader library and the libraries on top of those like the analysis tools. trace_entry_t is supposed to be treated more like a black box by users. Its individual fields are not doxygen-commented.
Hence, providing a pretty printer seems to send the wrong message, encouraging users to peer inside the black box. We would prefer things like converters to other simulator formats to use memref_t + reader_t whose abstraction layer hides a number of messy details.
The record_filter tool can be used while keeping trace_entry_t a black box, as basically all of its filters operate above the memref_t abstraction level: remove marker types; trim to timestamp values; apply cache filters. So it is a little different.
from dynamorio.
Further observations:
-
The on-disk record format is not very usable as the encodings (beyond the 1st) are missing, so you just see the PC w/o knowing what instruction it is.
-
On-disk examination is generally a debugging step. Once something is fixed, the memref_t view tool should generally always be run as the final step to confirm the tool view is correct, and the invariant_checker used for regression checking.
-
The last time I looked at the on-disk view was debugging record_filter zip chunking support. There I had to look just before and after the 10M-instr chunk boundaries. Running
od
on one particular zipfile subfile at a time made this very easy. This new tool abstracts away the file divisions and provides a single trace_entry_t stream: so unfortunately I don't think it would have removed the need to runod
for this debugging (even if the chunk markers are found, there is no fast skipping implemented at the trace_entry_t layer, and the markers can't be assumed to be correct when debugging the chunk boundaries: have to runod
anyway).
from dynamorio.
Related Issues (20)
- AArch64 linux.thread-reset fails on non-SVE hardware HOT 1
- Handle different iret behavior in user vs kernel space
- X86_32 Invariant checker test failure in check_kernel_syscall_trace: Too many read/write records
- drmemtrace -trace_after_instrs introduces gap between first and second timestamps HOT 1
- generalize reg_{to,is}_pointer_sized() to non-GPR registers
- tool.record_filter_bycore_multi failured due to inaccurate pi estimation HOT 3
- linux.signalNNN1 test failing due to non-determinism in floating point operations
- AArch64: add client.cleancall to AArch64's pre-commit tests.
- AArch64: Fix P register save/restore on 128-bit vector length systems HOT 1
- tool.drcov.eintr failing on ubuntu-20-arm64-sve HOT 4
- drrun fails on windows without YMM support HOT 4
- `client.detach_test` is intermittently timing out on the `vs2019-32` CI build
- xsave* also loads data
- drcachesim.TLB-threads fails in aarch64-precommit HOT 3
- AArch64 SVE: Add 128 bit vector length tests to CI
- CRASH drcachesim with fewer simulated cores than present in a core-sharded-on-disk trace
- Unable to see read/write addresses in dynamorio kernel traces that got generated with libipt HOT 1
- [CRASH] when using drsym_lookup_address [Windows 19045]
- ubuntu22 GA workflows failing apt-get update HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamorio.