2012/2/23 Gilles Chanteperdrix <[email protected]>

> On 02/23/2012 11:43 PM, Oscar Dávila wrote:
> > 2012/2/14 Gilles Chanteperdrix <[email protected]>
> >
> >> On 02/14/2012 06:54 PM, Oscar Dávila wrote:
> >>> I compiled Xenomai succesfully, but when i try to run an example it
> >> freezes
> >>> / machine look up, any help will be apreciated, thanks.
> >>>
> >>> Here is some info about the system, its a Debian 6.0 with a
> >>> kernel 2.6.35.9, xenomai-2.6.0, the adeos
> >>> patch adeos-ipipe-2.6.35.9-x86-2.8-04.patch and Im also using the
> >>> nmi_watchdog=2 in the boot kernel options.
> >>
> >> Please reproduce the bug:
> >> - in text mode, so as to have the full bug trace;
> >> - with frame pointers enabled;
> >> - with highest kernel verbosity for BUGs and backtraces.
> >>
> >
> > How do i do this last point? i mean, i already compile kernel with frame
> > pointers enabled, also i already ran it in text mode, and i active all
> the
> > xenomai debug kernel options. i saw some other debug options in kernel
> > hacking, do i have to active those ones too?
>
> The stack trace looks fine. Could you show us the disassembly of the
> __ipipe_sync_stage function?
>
>
Here is what i think is the disassembly of the __ipipe_sync_stage function,
the full disassembly of the core.c file is in
http://odavilar.0x1fee3.org/xenomai/__ipipe_sync_stage

.globl __ipipe_sync_stage
        .type   __ipipe_sync_stage, @function
__ipipe_sync_stage:
.LFB1334:
        .loc 1 1247 0
        .cfi_startproc
        pushl   %ebp
.LCFI66:
        .cfi_def_cfa_offset 8
        movl    %esp, %ebp
        .cfi_offset 5, -8
.LCFI67:
        .cfi_def_cfa_register 5
        pushl   %edi
        pushl   %esi
        pushl   %ebx
        subl    $40, %esp
.LBB904:
        .loc 1 1252 0
        movl    $ipipe_percpu_domain, %edx
.LVL259:
.LBB905:
#APP
# 1252 "kernel/ipipe/core.c" 1
        movl %fs:this_cpu_off,%eax
# 0 "" 2
.LVL260:
#NO_APP
.LBE905:
.LBE904:
        movl    (%eax,%edx), %esi
        .cfi_offset 3, -20
        .cfi_offset 6, -16
        .cfi_offset 7, -12
.LVL261:
.LBB906:
        .loc 1 1253 0
        movl    $ipipe_percpu_darray, %edx
.LVL262:
.LBE906:
        addl    %edx, %eax
.LVL263:
        imull   $5736, (%esi), %ecx
        addl    %ecx, %eax
.LVL264:
.LBB907:
.LBB908:
        .loc 2 84 0
#APP
# 84 "/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/bitops.h"
1
        bts $0,(%eax)
# 0 "" 2
#NO_APP
.LBE908:
.LBE907:
        .loc 1 1256 0
        .loc 1 1275 0
        leal    4(%esi), %ecx
        movl    %ecx, -32(%ebp)
.LBB909:
.LBB910:
.LBB911:
        .file 11 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
        .loc 11 68 0
        movl    $__ipipe_tick_regs, %ebx
        movl    %ebx, -16(%ebp)
.LBE911:
.LBE910:
.LBE909:
.LBB917:
        .loc 1 1296 0
        movl    %edx, -40(%ebp)
.LVL265:
.L148:
.LBE917:
.LBB919:
.LBB920:
.LBB921:
.LBB922:
        .loc 2 127 0
        leal    16(%eax), %edx
.LVL266:
        movl    %edx, -20(%ebp)
.LBE922:
.LBE921:
.LBB924:
.LBB925:
        leal    8(%eax), %ecx
.LVL267:
        movl    %ecx, -24(%ebp)
.LBE925:
.LBE924:
.LBB927:
.LBB928:
        leal    4(%eax), %ebx
        movl    %ebx, -28(%ebp)
        movl    %esi, -48(%ebp)
.LVL268:
.L142:
.LBE928:
.LBE927:
        .loc 1 648 0
        movl    4(%eax), %edx
.LVL269:
        .loc 1 649 0
        testl   %edx, %edx
        je      .L140
.LBB930:
.LBB931:
        .loc 11 54 0
#APP
# 54 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
1
        bsrl %edx, %edx
# 0 "" 2
.LVL270:
#NO_APP
.LBE931:
.LBE930:
        .loc 1 653 0
        movl    8(%eax,%edx,4), %ecx
.LVL271:
        .loc 1 654 0
        testl   %ecx, %ecx
        je      .L140
.LBB932:
.LBB933:
        .loc 11 54 0
#APP
# 54 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
1
        bsrl %ecx, %ecx
# 0 "" 2
.LVL272:
#NO_APP
.LBE933:
.LBE932:
        .loc 1 657 0
        movl    %edx, %ebx
.LVL273:
        sall    $5, %ebx
        addl    %ebx, %ecx
.LVL274:
        .loc 1 658 0
        leal    4(%ecx), %edi
.LVL275:
        movl    (%eax,%edi,4), %ebx
.LVL276:
        .loc 1 659 0
        testl   %ebx, %ebx
        je      .L140
.LBB934:
.LBB935:
        .loc 11 54 0
#APP
# 54 
"/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/ipipe_32.h"
1
        bsrl %ebx, %esi
# 0 "" 2
.LVL277:
#NO_APP
.LBE935:
.LBE934:
        .loc 1 663 0
        movl    %ecx, %ebx
.LVL278:
        sall    $5, %ebx
        movl    %ebx, -36(%ebp)
        movl    -36(%ebp), %ebx
.LVL279:
        addl    %esi, %ebx
.LBB936:
.LBB923:
        .loc 2 127 0
        movl    -20(%ebp), %esi
#APP
# 127 "/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/bitops.h"
1
        btr %ebx,(%esi)
# 0 "" 2
#NO_APP
.LBE923:
.LBE936:
        .loc 1 666 0
        cmpl    $0, (%eax,%edi,4)
        jne     .L141
.LBB937:
.LBB926:
        .loc 2 127 0
        movl    -24(%ebp), %esi
#APP
# 127 "/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/bitops.h"
1
        btr %ecx,(%esi)
# 0 "" 2
#NO_APP
.LBE926:
.LBE937:
        .loc 1 668 0
        cmpl    $0, 8(%eax,%edx,4)
        jne     .L141
.LBB938:
.LBB929:
        .loc 2 127 0
        movl    -28(%ebp), %ecx
.LVL280:
#APP
# 127 "/home/odavilar/workspace/xe/linux-2.6.35.9/arch/x86/include/asm/bitops.h"
1
        btr %edx,(%ecx)
# 0 "" 2
.LVL281:
#NO_APP
.L141:
.LBE929:
.LBE938:
.LBE920:
.LBE919:
        .loc 1 1263 0
        testl   %ebx, %ebx
        js      .L140
        .loc 1 1270 0
        .loc 1 1272 0
        leal    2(%ebx), %edx
.LVL282:
        sall    $7, %edx
        movl    -48(%ebp), %esi
        testb   $32, (%esi,%edx)
        jne     .L142
        .loc 1 1275 0
        movl    -32(%ebp), %eax
.LVL283:
        cmpl    __ipipe_pipeline, %eax
        je      .L143
        .loc 1 1276 0
#APP
# 1276 "kernel/ipipe/core.c" 1
        sti
# 0 "" 2
#NO_APP
.L143:
        .loc 1 1278 0
        cmpl    $ipipe_root, %esi
.LVL284:
        je      .L144
        .loc 1 1279 0
        leal    2(%ebx), %ecx
.LVL285:
        sall    $7, %ecx
        movl    12(%ecx,%esi), %edx
        movl    %ebx, %eax
        call    *8(%esi,%ecx)
        .loc 1 1281 0

<http://odavilar.0x1fee3.org/xenomai/__ipipe_sync_stage>Thanks
PS: Is there an irc channel for xenomai?

 --
>                                                                Gilles.
>
>


-- 
Atentamente:
Oscar Dávila Ramírez
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to