All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Bart Vissers <bvissers@e2mtechnologies.eu>
Cc: Michael Smith <2michael.smith@gmail.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] Failed testsuite/latency
Date: Tue, 03 Mar 2015 16:46:37 +0100	[thread overview]
Message-ID: <54F5D75D.9090009@xenomai.org> (raw)
In-Reply-To: <54F5D34A.90005@xenomai.org>

On 03/03/2015 04:29 PM, Philippe Gerum wrote:
> On 03/02/2015 03:56 PM, Philippe Gerum wrote:
>> On 02/25/2015 09:33 AM, Bart Vissers wrote:
>>> Hi Philippe,
>>>
>>> Before making any changes, I ran xeno-config --info:
>>> Xenomai version: Xenomai/cobalt v3.0-rc3 --
>>> Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015
>>> i686 GNU/Linux
>>> Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3
>>> root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet
>>> I-pipe release #2 detected
>>> Cobalt core 3.0-rc3 detected
>>> Build args: --prefix=/usr --includedir=/usr/include/xenomai
>>> --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite
>>> --build i486-linux-gnu build_alias=i486-linux-gnu
>>>
>>> namelist did not work, as latency does not contain any symbols. How
>>> can I include these when building debian packages?
>>>
>>> Unfortunately, I got compilation errors after applying the patch to
>>> xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this
>>> function)
>>> So I decided to repeat my steps with the git next branch, 52fb91e...
>>> So, same linux kernel, i-pipe patch and kernel config. Also included
>>> the printk patch. Output:
>>>
>>> == Sampling period: 100 us
>>> == Test mode: periodic user-mode task
>>> == All results in microseconds
>>> warming up...
>>> latency: failed to set periodic, code 9
>>> ^C---|-----------|-----------|-----------|--------|------|-------------------------
>>> RTS|  10000.000|      0.000| -10000.000|       0|     0|    00:03:26/00:03:26
>>>
>>> Notice the ^C. I killed it because it was running indefinitely. This
>>> was also the case in my previous attempts.
>>>
>>>
>>
>> Can any of you send me the generated debian package privately? I would
>> also need to know the gcc version used.
>>
> 
> Never mind, I could reproduce this bug eventually. This issue is due to
> some register trashing at work in the pipeline code, not to the Xenomai
> core. More later.
>

This patch will fix this issue.

diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index 6e6b88a..e834437 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -517,6 +517,7 @@ sysenter_exit_fast:
 	jmp sysenter_exit
 sysenter_exit_root:
 	call __ipipe_root_sync
+	movl PT_EAX(%esp),%eax
 	jmp sysenter_exit_check
 #endif

-- 
Philippe.


  reply	other threads:[~2015-03-03 15:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-23 12:30 [Xenomai] Failed testsuite/latency Michael Smith
2015-02-23 12:38 ` Gilles Chanteperdrix
2015-02-23 14:23   ` Michael Smith
2015-02-23 16:00 ` Philippe Gerum
2015-02-24 13:28   ` Bart Vissers
2015-02-24 14:37     ` Philippe Gerum
2015-02-25  8:33       ` Bart Vissers
2015-02-25  9:24         ` Philippe Gerum
2015-02-25  9:32           ` Gilles Chanteperdrix
2015-02-26  6:05             ` Michael Smith
2015-02-26  6:20           ` Michael Smith
2015-02-26  6:07         ` Michael Smith
2015-03-02 14:56         ` Philippe Gerum
2015-03-03 15:29           ` Philippe Gerum
2015-03-03 15:46             ` Philippe Gerum [this message]
2015-03-03 19:18               ` Philippe Gerum
2015-03-03 19:29                 ` Helder Daniel
2015-03-03 19:43                   ` Philippe Gerum
2015-03-05 12:04                     ` Helder Daniel
2015-03-05 13:33                       ` Philippe Gerum

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=54F5D75D.9090009@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=2michael.smith@gmail.com \
    --cc=bvissers@e2mtechnologies.eu \
    --cc=xenomai@xenomai.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.