RE: record btrace experience [Re: x86_64-m32 internal error for multi-thread-step.exp [Re: [PATCH v10 06/28] btrace: change branch trace data structure]]

Metzger, Markus T
2015-01-29T16:33:17Z

> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Jan Kratochvil
> Sent: Monday, January 26, 2015 10:55 PM
> To: Metzger, Markus T
> Cc: gdb-patches@sourceware.org
> Subject: Re: record btrace experience [Re: x86_64-m32 internal error for
> multi-thread-step.exp [Re: [PATCH v10 06/28] btrace: change branch trace
> data structure]]
>
> On Mon, 26 Jan 2015 08:59:59 +0100, Metzger, Markus T wrote:
> > I think what you are looking for is a command to set the buffer size.
> > See https://sourceware.org/ml/gdb-patches/2014-11/msg00462.html.
>
> Yes, definitely. But I see the patch is still pending/unapproved.

Even with this patch, "unlimited" is not advisable. An unlimited buffer size
corresponds to 4MB and can easily hold 1Minsn. It'll take some time to
process the recorded trace.

Here's an old patch to improve this somewhat:
https://www.sourceware.org/ml/gdb-patches/2014-06/msg00848.html.
I'll rebase and resend it after the current series has been merged.

Regards,
Markus.

Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052