← Back to team overview

kernel-packages team mailing list archive

[Bug 1318809] Re: Support for the ppc64el arch

 

I have tested the ported "crash" tool from development team(Mauricio and
Bharata). It is working fine. Here are the steps I followed to do basic
testing.

1)  dump Ubuntu 14.04 LE VM dump using virsh dump command
Ex:  virsh dump --memory-only    kal_ubu_at      kal_ubu_at.dump    --verbose
VM: kal_ubu_at
dump_file: kal_ubu_at.dump

2)  scp "kal_ubu_at.dump"  to Ubuntu VM

3) Install crash tool from development
  (http://poc1.ltc.br.ibm.com/~mauricfo/for_kalpana/lp1318809/crash_7.0.3-3ubuntu2.1+lp1318809.c3_ppc64el.deb)

4) Run crash =============> PASS

5)  Open dump file using crash (for analysis purpose....)
crash     /usr/lib/debug/boot/vmlinux-3.13.0-24-generic      /root/kal_ubu_at.dump

Could able to open the dump file =======================> PASS

crash 7.0.3
Copyright (C) 2002-2013  Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation
Copyright (C) 1999-2006  Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited
Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011  NEC Corporation
Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions.  Enter "help copying" to see the conditions.
This program has absolutely no warranty.  Enter "help warranty" for details.
 
GNU gdb (GDB) 7.6
Copyright (C) 2013 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 "powerpc64le-unknown-linux-gnu"...

      KERNEL: /usr/lib/debug/boot/vmlinux-3.13.0-24-generic
    DUMPFILE: /root/kal_ubu_at.dump
        CPUS: 1
        DATE: Mon May 19 11:58:51 2014
      UPTIME: 2 days, 13:26:42
LOAD AVERAGE: 0.00, 0.03, 0.05
       TASKS: 139
    NODENAME: ubuk61
     RELEASE: 3.13.0-24-generic
     VERSION: #47-Ubuntu SMP Fri May 2 23:29:18 UTC 2014
     MACHINE: ppc64le  (3026 Mhz)
      MEMORY: 2 GB
       PANIC: ""
         PID: 0
     COMMAND: "swapper/0"
        TASK: c000000000ea59f0  [THREAD_INFO: c000000000fc8000]
         CPU: 0
       STATE: TASK_RUNNING (PANIC)

crash>


few of crash commands tried:

crash> bt
PID: 0      TASK: c000000000ea59f0  CPU: 0   COMMAND: "swapper/0"

 R0:  0000000022002084    R1:  c000000000fcba70    R2:  c000000000fccf88   
 R3:  0000000000000000    R4:  c000000000e24e80    R5:  0000000000000000   


crash> ipcs
SHMID_KERNEL     KEY      SHMID      UID   PERMS BYTES      NATTCH STATUS
c000000075b2c380 00000000 0          0     644   80         2       
c000000075b2d280 00000000 32769      0     644   16384      2       
c000000075b22d80 00000000 65538      0     644   280        2       
c0000000778ba980 00000000 98307      0     644   64         2      dest 
c0000000778bd280 00000000 131076     0     644   16384      2      dest 
c0000000778b9f80 00000000 163845     0     644   280        2      dest 

SEM_ARRAY        KEY      SEMID      UID   PERMS NSEMS     
c000000077b34a80 000000a7 0          0     600   1         
c000000077b39880 610f20f1 32769      0     666   1         

MSG_QUEUE        KEY      MSQID      UID   PERMS USED-BYTES   MESSAGES    
(none allocated)

crash> help

*              files          mach           repeat         timer          
alias          foreach        mod            runq           tree           
ascii          fuser          mount          search         union          
bt             gdb            net            set            vm             
btop           help           p              sig            vtop           
dev            ipcs           ps             struct         waitq          
dis            irq            pte            swap           whatis         
eval           kmem           ptob           sym            wr             
exit           list           ptov           sys            q              
extend         log            rd             task           

crash version: 7.0.3    gdb version: 7.6
For help on any command above, enter "help <command>".
For help on input options, enter "help input".
For help on output options, enter "help output".

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to crash in Ubuntu.
https://bugs.launchpad.net/bugs/1318809

Title:
  Support for the ppc64el arch

Status in “crash” package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  Is it possible to (discuss how to) enable the crash package to on the
  ppc64el arch?

  Recently the kernel received the config changes 
  (CONFIG_CRASH_DUMP=y, CONFIG_RELOCATABLE=y, currently in the -proposed pocket [1])

  Is it hard to move to GDB 7.7? (ppc64el GDB package starts on that
  version).

  Thanks!

  [1] https://launchpad.net/ubuntu/trusty/+source/linux/3.13.0-26.48

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crash/+bug/1318809/+subscriptions


References