From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15595 invoked by alias); 7 Nov 2011 06:41:25 -0000 Received: (qmail 15578 invoked by uid 22791); 7 Nov 2011 06:41:24 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f41.google.com (HELO mail-fx0-f41.google.com) (209.85.161.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Nov 2011 06:41:10 +0000 Received: by faaf16 with SMTP id f16so6133855faa.0 for ; Sun, 06 Nov 2011 22:41:09 -0800 (PST) Received: by 10.223.17.3 with SMTP id q3mr44786762faa.28.1320648069110; Sun, 06 Nov 2011 22:41:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.103.67 with HTTP; Sun, 6 Nov 2011 22:40:28 -0800 (PST) In-Reply-To: References: From: Hui Zhu Date: Mon, 07 Nov 2011 06:41:00 -0000 Message-ID: Subject: Re: Tracepoints and Timestamps To: Abhishek Karoliya Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00045.txt.bz2 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=A0(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 wrote: > Hi, > > =A0 I am remote debuging=A0a 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.=A0On 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=A0(tbl and tbu). The current register dump does not > show=A0the contents of these register on e500v2 although I have seen an > entry=A0for other powerpc processor. > > Is there=A0a way I can quickly add support=A0for these registers.=A0If > someone can point me to=A0file/doc/previous patches to do this I will be > grateful. > > =A0Cheers! > Abhi >