mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Frédéric Weisbecker" <fweisbec@gmail.com>
To: "Alexander van Heukelum" <heukelum@fastmail.fm>
Cc: "Ingo Molnar" <mingo@elte.hu>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Tim Bird" <tim.bird@am.sony.com>,
	"Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] tracing/function-branch-tracer: support for x86-64
Date: Thu, 4 Dec 2008 00:33:00 +0100	[thread overview]
Message-ID: <c62985530812031533w1b90f423lcae013b96dfe8ba9@mail.gmail.com> (raw)
In-Reply-To: <1228339777.2982.1288110715@webmail.messagingengine.com>

2008/12/3 Alexander van Heukelum <heukelum@fastmail.fm>:
> Hi Frederic,
>
> The changes to entry_64.S look simple enough. The order of
> saving the registers on the stack is not important in any
> way, right?
>[...]

No they don't matter.
All arguments should be saved on ftrace_graph_caller to not loose them
on call entry hooking.

On return (return_to_handler), I thought that I only needed to save
%rax (return value), the other scratch registers shouldn't matter at
the return state and the others will be saved by the return hooker.

But when I only save %rax, my system crashes. I don't know why so I
kept saving all scratch registers.

> I think this can be done with:
>
> _ASM_EXTABLE(1b,3b)
> _ASM_EXTABLE(2b,3b)
>
> (from: arch/x86/include/asm/asm.h)

Thanks. That and the generic move have actually been implemented by
Steven very recently:
http://lkml.org/lkml/2008/12/2/280

      reply	other threads:[~2008-12-03 23:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-01 23:20 Frederic Weisbecker
2008-12-02  9:02 ` Ingo Molnar
2008-12-02  9:05   ` [PATCH] tracing/function-graph-tracer: " Ingo Molnar
2008-12-02 12:03     ` Frédéric Weisbecker
2008-12-02 11:10   ` [PATCH] tracing/function-branch-tracer: " Frédéric Weisbecker
2008-12-02 21:25   ` Steven Rostedt
2008-12-02 21:40     ` Frédéric Weisbecker
2008-12-03 21:29 ` Alexander van Heukelum
2008-12-03 23:33   ` Frédéric Weisbecker [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=c62985530812031533w1b90f423lcae013b96dfe8ba9@mail.gmail.com \
    --to=fweisbec@gmail.com \
    --cc=heukelum@fastmail.fm \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=tim.bird@am.sony.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

all inboxes | Powered by JetHome®