All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Porting xenomai 2.6.3 and ipipe to 3.12 kernel
Date: Tue, 01 Apr 2014 00:11:24 +0200	[thread overview]
Message-ID: <5339E80C.9020604@xenomai.org> (raw)
In-Reply-To: <20140331220421.GZ17765@csclub.uwaterloo.ca>

On 04/01/2014 12:04 AM, Lennart Sorensen wrote:
> On Mon, Mar 31, 2014 at 05:59:33PM -0400, Lennart Sorensen wrote:
>> On Mon, Mar 31, 2014 at 05:53:48PM -0400, Lennart Sorensen wrote:
>>> I am using the xenomai-2.6 git tree (current commit I see is as HEAD is
>>> 4081e1b032329bf0cc9442f466233d5fc1083fc5).
>>>
>>> Doing a git pull I see I am 4 commits behind, and one does sound
>>> interesting.  I will have to update that.
>>
>> Hmm, the interesting patch does the same thing I already did myself to
>> get it to compile.  I guess that is OK then.
> 
> Hmm, gdb is being not helpful at all:
> 
> root@omap5:/mnt/xenomai-2.6.3# gdb /usr/lib/xenomai/testsuite/latency 
> GNU gdb (GDB) 7.4.1-debian
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "arm-linux-gnueabihf".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/lib/xenomai/testsuite/latency...done.
> (gdb) run
> Starting program: /usr/lib/xenomai/testsuite/latency 
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
> == Sampling period: 1000 us
> == Test mode: periodic user-mode task
> == All results in microseconds
> [New Thread 0xb6e15470 (LWP 32035)]
> [New Thread 0xb6e0d470 (LWP 32036)]
> warming up...
> 
> Program received signal SIGILL, Illegal instruction.
> [Switching to Thread 0xb6e0d470 (LWP 32036)]
> 0xffff0f04 in ?? ()
> (gdb) where
> #0  0xffff0f04 in ?? ()
> Cannot access memory at address 0x3e0
> (gdb) list
> Cannot access memory at address 0x3e0
> (gdb) 
> 

0xffff0f04 looks like one of the kuser helpers. It is the I-pipe tsc
emulation address actually. You probably do not have access to the
architected timers in user-space. There is a snippet in
drivers/clocksource/arm_arch_timer.c to enable this access through the
CNTKCTL register. Maybe this only enables access to physical counter
whereas newer kernels use virtual counters?

-- 
                                                                Gilles.


  reply	other threads:[~2014-03-31 22:11 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 17:45 [Xenomai] Porting xenomai 2.6.3 and ipipe to 3.12 kernel Lennart Sorensen
2014-03-31 18:12 ` Gilles Chanteperdrix
2014-03-31 18:24   ` Lennart Sorensen
2014-03-31 19:15     ` Lennart Sorensen
2014-03-31 19:17       ` Gilles Chanteperdrix
2014-03-31 19:18         ` Lennart Sorensen
2014-03-31 19:37           ` Lennart Sorensen
2014-03-31 19:44             ` Gilles Chanteperdrix
2014-03-31 20:42               ` Lennart Sorensen
2014-03-31 20:53                 ` Lennart Sorensen
2014-03-31 20:57                   ` Lennart Sorensen
2014-03-31 21:06                     ` Gilles Chanteperdrix
2014-03-31 21:25                       ` Lennart Sorensen
2014-03-31 21:49                         ` Gilles Chanteperdrix
2014-03-31 21:53                           ` Lennart Sorensen
2014-03-31 21:59                             ` Lennart Sorensen
2014-03-31 22:04                               ` Lennart Sorensen
2014-03-31 22:11                                 ` Gilles Chanteperdrix [this message]
2014-03-31 22:27                                   ` Gilles Chanteperdrix
2014-04-01  1:32                                     ` Lennart Sorensen
2014-04-01 10:52                                       ` Gilles Chanteperdrix
2014-04-01 13:12                                         ` Lennart Sorensen
2014-04-01 19:35                                           ` Gilles Chanteperdrix
2014-04-01 19:40                                             ` Lennart Sorensen
2014-04-01 20:52                                               ` Gilles Chanteperdrix
2014-04-01 21:45                                                 ` Lennart Sorensen
2014-04-01 22:01                                                   ` Gilles Chanteperdrix
2014-04-02  2:35                                                   ` Lennart Sorensen
2014-04-02  7:11                                                     ` Gilles Chanteperdrix
2014-04-02 13:24                                                       ` Lennart Sorensen
2014-04-02 13:26                                                         ` Gilles Chanteperdrix
2014-04-02 13:40                                                           ` Lennart Sorensen
2014-04-02 13:41                                                             ` Lennart Sorensen
2014-04-02 13:46                                                               ` Lennart Sorensen
2014-04-02 13:56                                                                 ` Gilles Chanteperdrix
2014-04-02 14:38                                                                   ` Lennart Sorensen
2014-04-02 14:41                                                                     ` Gilles Chanteperdrix
2014-04-03 13:46                                                                       ` Lennart Sorensen
2014-04-03 13:56                                                                         ` Gilles Chanteperdrix
2014-04-03 14:16                                                                           ` Lennart Sorensen
2014-04-14 21:06                                                                             ` Lennart Sorensen
2014-04-15 11:39                                                                               ` Gilles Chanteperdrix
2014-06-13 18:15                                                                                 ` Lennart Sorensen
2014-03-31 19:19     ` Gilles Chanteperdrix
     [not found] <mailman.33.1396388743.2839.xenomai@xenomai.org>
2014-04-02  9:21 ` Andreas Glatz

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=5339E80C.9020604@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=lsorense@csclub.uwaterloo.ca \
    --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.