This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Tracepoints and Timestamps
- From: Hui Zhu <teawater at gmail dot com>
- To: Abhishek Karoliya <abhikaro at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 7 Nov 2011 14:40:28 +0800
- Subject: Re: Tracepoints and Timestamps
- References: <CAEEVgBVFNRLqG67VwzF1D63Ro57Sww1HOwyrPBywRPBnHt5Hjg@mail.gmail.com> <CAEEVgBWyzfHXFoNFW-nyB7YNFXjSuZq0am9Ky2Ti=AHovrDM3g@mail.gmail.com>
If you use the gdbserver that include in GDB source, you can access
special tvariable $trace_timestamp.
If not, I think maybe you can add a special tvariable that access to
timebase registers?(tbl and tbu) to gdbserver. Then you can collect
it when you want it.
Thanks,
Hui
On Sat, Nov 5, 2011 at 03:05, Abhishek Karoliya <abhikaro@gmail.com> wrote:
> Hi,
>
> ? I am remote debuging?a multi threaded app on a powerpc e500v2 dual
> processor running linux 2.6.32 while the host gdb is x86_64 linux
> machine. The version of gdb is 7.3.1.?On hitting a tracepoint, I want
> to collect the timestamp. I am wondering is there is any way of doing
> it currently on this gdb. If not, I was wondering if I can collect the
> timebase registers?(tbl and tbu). The current register dump does not
> show?the contents of these register on e500v2 although I have seen an
> entry?for other powerpc processor.
>
> Is there?a way I can quickly add support?for these registers.?If
> someone can point me to?file/doc/previous patches to do this I will be
> grateful.
>
> ?Cheers!
> Abhi
>