From: Viktor Rosendahl <Viktor.Rosendahl@nokia.com>
To: ext Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Russell King <rmk@arm.linux.org.uk>,
ext Tony Lindgren <tony@atomide.com>,
"Moiseichuk Leonid (Nokia-D/Helsinki)"
<leonid.moiseichuk@nokia.com>,
"Kallioinen Juha (Nokia-D/Helsinki)" <juha.kallioinen@nokia.com>,
"Siamashka Siarhei (Nokia-D/Helsinki)"
<siarhei.siamashka@nokia.com>,
"Tamminen Eero (Nokia-D/Helsinki)" <eero.tamminen@nokia.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.arm.linux.org.uk"
<linux-arm-kernel@lists.arm.linux.org.uk>
Subject: Re: [PATCH] ARM fix syscall trace return value
Date: Tue, 17 Feb 2009 21:22:03 +0200 [thread overview]
Message-ID: <1234898523.14675.18.camel@viktor.research.nokia.com> (raw)
In-Reply-To: <20090217181805.GA15788@Krystal>
On Tue, 2009-02-17 at 19:18 +0100, ext Mathieu Desnoyers wrote:
> Hi Russell,
>
> I am currently finding core bugs in the Linux kernel implementation of
> the ARM architecture. :-( e.g. return value not being sent to the
> syscall_trace function upon exit (upon which LTTng depends). (patch
> below)
>
> This is _very_ silly because there is no dependency on the syscall being
> executed, and the syscall_entry/syscall_exit events are recorded at the
> _exact_ same time. Yes, I mean the _exact_ same time : using a clock
> which consists of atomic_add_return monotonic increments, it seems like
> ARM is able to return the _same_ value of an atomic increment return
> *twice* !! I think the atomic.h primitives are broken and that they
> allow concurrent modification of a given atomic variable by the pipeline.
> It sounds weird, and I hope I am not crazy (just getting into the ARM
> world..). ;) Any thoughts ? I'll try adding some barriers to see if it
> helps.
Hi Mathieu,
I am currently investigating a very similar behavior,
(syscall_entry/syscall_exit events having the exact same time in lttng).
However, I am using the CCNT (together with trace-clock-32-to-64.c) for
timestamping. This is, if I understand you correctly, a different clock
than the one you are using, not using atomic_add_return(). Thus, I
suspect that the reason for getting the exact same time for entry/exit
events might be something else than the clocks being broken.
I have to admit that I cannot explain how it can happen though. Could it
be some weird problem in the lttng trace recording ?
best regards,
Viktor
next prev parent reply other threads:[~2009-02-17 19:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-17 18:18 [PATCH] ARM fix syscall trace return value Mathieu Desnoyers
2009-02-17 19:02 ` Russell King
2009-02-17 19:22 ` Viktor Rosendahl [this message]
2009-02-17 19:30 ` Mathieu Desnoyers
2009-02-17 19:40 ` Russell King
2009-02-17 20:08 ` Mathieu Desnoyers
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=1234898523.14675.18.camel@viktor.research.nokia.com \
--to=viktor.rosendahl@nokia.com \
--cc=eero.tamminen@nokia.com \
--cc=juha.kallioinen@nokia.com \
--cc=leonid.moiseichuk@nokia.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@polymtl.ca \
--cc=rmk@arm.linux.org.uk \
--cc=siarhei.siamashka@nokia.com \
--cc=tony@atomide.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