[lldb-dev] Inquiry for performance monitors
Abhishek Aggarwal via lldb-dev
lldb-dev at lists.llvm.org
Thu Feb 4 04:49:04 PST 2016
Hello Pavel
As per my understanding, instead of doing it by expression evaluation
if the code (to enable pt and gathering the raw traces) is written on
lldb-server side, then also lldb-server will have to wait for the
inferior to stop in order to encapsulate all the traces in packets and
send them to client for analysis.
Is it possible that client can request the lldb-server to send it a
part of the raw traces while the inferior is still running?
- Abhishek
On Thu, Feb 4, 2016 at 1:32 PM, Ravitheja Addepally via lldb-dev
<lldb-dev at lists.llvm.org> wrote:
> Yes, thanx for the clarification.
>
> On Thu, Feb 4, 2016 at 11:24 AM, Pavel Labath <labath at google.com> wrote:
>>
>> On 4 February 2016 at 10:04, Ravitheja Addepally
>> <ravithejawork at gmail.com> wrote:
>> > Hello Pavel,
>> > In the case of expression evaluation approach you
>> > mentioned
>> > that:
>> > 1. The data could be accessible only when the target is stopped. why is
>> > that
>> > ?
>> If I understand the approach correctly, the idea is the run all perf
>> calls as expressions in the debugger. Something like
>> lldb> expr perf_event_open(...)
>> We need to stop the target to be able to do something like that, as we
>> need to fiddle with its registers. I don't see any way around that...
>>
>> > 2. What sort of noise were you referring to ?
>> Since now all the perf calls will be expressions executed within the
>> context of the process being traced, they themselves will show up in
>> the trace. I am sure we could filter that out somehow, but it feels
>> like an added complication..
>>
>> Does that make it any clearer?
>>
>> pl
>
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
More information about the lldb-dev
mailing list