Tracepoints and Timestamps

Hui Zhu teawater@gmail.com
Mon Nov 7 06:41:00 GMT 2011


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
>



More information about the Gdb mailing list