This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: JIT debugging (Attach and speed)
- From: Pedro Alves <palves at redhat dot com>
- To: Yichao Yu <yyc1992 at gmail dot com>
- Cc: gdb at sourceware dot org, Paul Pluzhnikov <ppluzhnikov at google dot com>
- Date: Wed, 23 Mar 2016 19:48:47 +0000
- Subject: Re: JIT debugging (Attach and speed)
- Authentication-results: sourceware.org; auth=none
- References: <CAMvDr+TKDYeECiUK7Kz7TGSRF826Vq24z_=CPQXz1vyxmMUm_w at mail dot gmail dot com> <56F168D7 dot 9050405 at redhat dot com> <56F16F8F dot 9050404 at redhat dot com> <CAMvDr+TRSF16fKnnb9tWD4Xctek31Sdgx2m1ct=UctXL_b9vuA at mail dot gmail dot com> <56F1759F dot 3070100 at redhat dot com> <CAMvDr+QcMrHk6y7hGr1NaijEXK=dH+J0CGJZs6m_Rk2D2oSm-g at mail dot gmail dot com> <56F17A23 dot 90909 at redhat dot com> <CAMvDr+ST=4a11-B=ymUQDRdOCZmVUgdfkhFbUDknvjkaGjtGWw at mail dot gmail dot com> <CAMvDr+Ra3yi465XBcJR=oYtOM8+-=1Hj2xs32n-wYVpiN_exUQ at mail dot gmail dot com> <56F2DF69 dot 9030908 at redhat dot com> <CAMvDr+RxhEhRCHDFYhcpo29ma6z0CMYF1ZEryBzq2VPyaj4nmQ at mail dot gmail dot com>
On 03/23/2016 07:32 PM, Yichao Yu wrote:
>> So, as a quick hack, if you make inline_frame_sniffer bail out early
>> with 0, does it improve things?
>
> The timing looks the same. =(
Bummer. :-/
Having now looked at the gdb.base/jit.exp test, I see that
we can easily reproduce this with:
gdb ---args ./testsuite/outputs/gdb.base/jit/jit-main ./testsuite/outputs/gdb.base/jit/jit-solib.so 2000
(It'd be nice to turn this into a check-perf test...)
> What do you mean by "loader"? since you mentioned call JIT_REGISTER I
> assume you mean JIT compiler?
Yes, sorry. I meant whatever code ends up "sending" a JIT_REGISTER
event to gdb.
Thanks,
Pedro Alves