LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: "Frédéric Weisbecker" <fweisbec@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH] Make ftrace able to trace function return
Date: Thu, 30 Oct 2008 20:26:21 +0100 [thread overview]
Message-ID: <20081030192621.GF27407@elte.hu> (raw)
In-Reply-To: <alpine.DEB.1.10.0810301447490.15853@gandalf.stny.rr.com>
* Steven Rostedt <rostedt@goodmis.org> wrote:
> gcc -c -finstrument-functions traceme.c
> This is not 5 extra bytes but 27 extra bytes for a total of 32 bytes
> at every function. Also note that this also adds these calls to
> inline functions as well. We could easly stop that by adding
> "notrace" to the inline define (which I've done).
>
> But this would make the patching a bit more difficult (not
> impossible). But it will bloat the image quite a bit.
yeah, i too knew it was expensive, but didnt realize it's this bloaty.
It's a non-starter really.
How reliable can we make Frederic's trampoline approach? Especially
with the opt-in function filters of dyn-ftrace, there's real value in
the trampoline approach IMO (we could display real function cost,
etc.), and the runtime cost should be OK as long we dont probe a ton
of functions all the time. (and it's optional anyway)
Ingo
next prev parent reply other threads:[~2008-10-30 19:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 19:20 Frederic Weisbecker
2008-10-30 18:20 ` Ingo Molnar
2008-10-30 18:30 ` Frédéric Weisbecker
2008-10-30 18:37 ` Ingo Molnar
2008-10-30 19:17 ` Steven Rostedt
2008-10-30 19:26 ` Ingo Molnar [this message]
2008-11-03 11:16 ` Ananth N Mavinakayanahalli
2008-11-03 13:32 ` Frédéric Weisbecker
2008-10-31 1:35 ` Frédéric Weisbecker
2008-10-30 20:30 ` Steven Rostedt
2008-10-31 0:05 ` Frédéric Weisbecker
2008-10-31 2:43 ` Steven Rostedt
2008-10-31 20:18 ` Frederic Weisbecker
2008-11-03 10:06 ` Ingo Molnar
2008-11-03 13:11 ` Frédéric Weisbecker
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=20081030192621.GF27407@elte.hu \
--to=mingo@elte.hu \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--subject='Re: [RFC][PATCH] Make ftrace able to trace function return' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).