From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10776 invoked by alias); 7 Nov 2011 14:53:45 -0000 Received: (qmail 10768 invoked by uid 22791); 7 Nov 2011 14:53:44 -0000 X-SWARE-Spam-Status: No, hits=-1.4 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-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Nov 2011 14:53:26 +0000 Received: by bkas6 with SMTP id s6so4612925bka.0 for ; Mon, 07 Nov 2011 06:53:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.157.131 with SMTP id b3mr19553607bkx.41.1320677604873; Mon, 07 Nov 2011 06:53:24 -0800 (PST) Received: by 10.204.61.132 with HTTP; Mon, 7 Nov 2011 06:53:24 -0800 (PST) In-Reply-To: References: Date: Mon, 07 Nov 2011 14:53:00 -0000 Message-ID: Subject: Re: Tracepoints and Timestamps From: Abhishek Karoliya To: Hui Zhu Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00048.txt.bz2 Hi Hui, Thanks for the pointer ... However after going through the gdbserver source code, I realise that there is no tracepoint support for linux-ppc. So now I have a even bigger problem on my hand. Does anyone know if I can ppc tracepoint support being actively developed and if I can lay my hands on this experimental code. Cheers! Abhi On Mon, Nov 7, 2011 at 6:40 AM, Hui Zhu wrote: > 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) =A0to gdbserver. =A0Then you can colle= ct > it when you want it. > > Thanks, > Hui > > > On Sat, Nov 5, 2011 at 03:05, Abhishek Karoliya wrot= e: >> 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 >> >