- Add a warnings field in the jLLDBGetState response, for warnings to be delivered to the client for troubleshooting. This removes the need to silently log lldb-server's llvm::Errors and not expose them easily to the user
- Simplify the tscPerfZeroConversion struct and schema. It used to extend a base abstract class, but I'm doubting that we'll ever add other conversion mechanisms because all modern kernels support perf zero. It is also the one who is supposed to work with the timestamps produced by the context switch trace, so expecting it is imperative.
- Force tsc collection for cpu tracing.
- Add a test checking that tscPerfZeroConversion is returned by the GetState request
- Add a pre-check for cpu tracing that makes sure that perf zero values are available.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp | ||
---|---|---|
40 | Don't we want to always reload the parameters here (ie not do this check) since they could potentially change or is that not the case? |
lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp | ||
---|---|---|
40 | ahh, that's a good point. We should favor the most recent instructions, which means favoring the most recent conversion params |
Comment Actions
sending this back to you based on the one minor thing we discussed related to reloading. If this is addressed in one of the cleanup diffs, lmk and I'll accept this.
Don't we want to always reload the parameters here (ie not do this check) since they could potentially change or is that not the case?
We had discussions about this when I initially added the tsc conversion logic but I can't remember so maybe you can help refresh my memory: