From: Rouslan Korneychuk <rouslank@msn.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: RE: A little help with JIT support
Date: Wed, 01 May 2013 22:52:00 -0000 [thread overview]
Message-ID: <BAY171-W56D141F2B484ED5CF75C60D6BC0@phx.gbl> (raw)
In-Reply-To: <20130501143426.GA7081@host2.jankratochvil.net>
On Wed, 01 May 2013 16:34:26 +0200, Jan Kratochvil wrote:
> On Wed, 01 May 2013 01:05:01 +0200, Rouslan Korneychuk wrote:
> > Are the addresses in an in-memory object file supposed to be absolute addresses?
>
> According to GDB's jit.c jit_bfd_try_read_symtab yes:
>
> /* Read the section address information out of the symbol file. Since the
> file is generated by the JIT at runtime, it should all of the absolute
> addresses that we care about. */
> +
> /* We assume that these virtual addresses are absolute, and do not
> treat them as offsets. */
> sai->other[i].addr = bfd_get_section_vma (nbfd, sec);
>
> When you generate it at runtime it should not matter much IMO, instead of
> relocating it in GDB you can already relocate it yourself while generating the
> symbol file at runtime.
Ah, thank you.
From gdb-return-42084-listarch-gdb=sources.redhat.com@sourceware.org Thu May 02 02:19:32 2013
Return-Path: <gdb-return-42084-listarch-gdb=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb@sources.redhat.com
Received: (qmail 11440 invoked by alias); 2 May 2013 02:19:32 -0000
Mailing-List: contact gdb-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb.sourceware.org>
List-Subscribe: <mailto:gdb-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb/>
List-Post: <mailto:gdb@sourceware.org>
List-Help: <mailto:gdb-help@sourceware.org>, <http://sourceware.org/ml/#faqs>
Sender: gdb-owner@sourceware.org
Delivered-To: mailing list gdb@sourceware.org
Received: (qmail 11429 invoked by uid 89); 2 May 2013 02:19:32 -0000
X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=AWL,BAYES_05,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1
Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 02 May 2013 02:19:31 +0000
Received: from localhost (imp-4-3.polymtl.ca [132.207.4.78]) by smtp.polymtl.ca (8.14.3/8.14.3) with ESMTP id r422JQCG028355; Wed, 1 May 2013 22:19:27 -0400
Received: from 174-138-211-0.cpe.distributel.net (174-138-211-0.cpe.distributel.net [174.138.211.0]) by www.imp.polymtl.ca (IMP) with HTTP for <sushaa@pop3.polymtl.ca>; Wed, 01 May 2013 22:19:26 -0400
Message-ID: <1367461166.5181cd2ec5680@www.imp.polymtl.ca>
Date: Thu, 02 May 2013 02:19:00 -0000
From: Suchakrapani Datt Sharma <suchakrapani.sharma@polymtl.ca>
To: lgustavo@codesourcery.com
Cc: gdb@sourceware.org
Subject: Re: GDB fast tracepoint query
References: <1367263644.517ec99c4fb53@www.imp.polymtl.ca> <517ED307.7000901@codesourcery.com>
In-Reply-To: <517ED307.7000901@codesourcery.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.2.3
X-Poly-FromMTA: (imp-4-3.polymtl.ca [132.207.4.78]) at Thu, 2 May 2013 02:19:26 +0000
X-SW-Source: 2013-05/txt/msg00011.txt.bz2
Content-length: 760
Hi,
> AFAIU, the fast tracepoint jump pad will always be there if a trace
> experiment is running (with at least one active fast tracepoint set),
> which means GDB will take the path through the fast tracepoint's jump
> pad, save whatever needs to be saved, execute actions and then exit
> through the jump pad again. So there should be some small overhead there
> even if no actions are actually executed.
>
> As for the time when the instruction is modified, it is during the trace
> experiment startup, during "tstart". "ftrace" or "trace" will just
> register the tracepoint internally inside gdb.
>
> Luis
Thanks a lot for the info :) Sorry for the late reply
Suchakra
--
Suchakrapani Datt Sharma
Laboratorie DORSAL
Ãcole Polytechnique de Montréal
prev parent reply other threads:[~2013-05-01 22:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 23:05 Rouslan Korneychuk
2013-05-01 14:34 ` Jan Kratochvil
2013-05-01 22:52 ` Rouslan Korneychuk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY171-W56D141F2B484ED5CF75C60D6BC0@phx.gbl \
--to=rouslank@msn.com \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox