Skip to contentSkip to conversation

testimage: Added IO commands to dumps

PATCH In review [email protected] 2 participants 3 messages Sep 29, 2015 – Oct 5, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 testimage: Added IO commands to dumps

From: Mariano Lopez <[email protected]>

This change just add two more commands to
the host dumps to get more information
related to the IO.

[YOCTO #8412]

---
 meta/classes/testimage.bbclass | 2 ++
 meta/lib/oeqa/utils/dump.py    | 2 ++
 2 files changed, 4 insertions(+)
meta/classes/testimage.bbclass +2 -0
index 2efab29..1f21c9e 100644
@@ -80,11 +80,13 @@ testimage_dump_target () {
 
 testimage_dump_host () {
     top -bn1
+    iostat -x -z -N -d -p ALL 20 2
     ps -ef
     free
     df
     memstat
     dmesg
+    ip -s link
     netstat -an
 }
 
meta/lib/oeqa/utils/dump.py +2 -0
index 3f31e20..63a591d 100644
@@ -20,11 +20,13 @@ class BaseDumper(object):
         # to set some defaults.
         self.parent_dir = parent_dir or "/tmp/oe-saved-tests"
         dft_cmds = """  top -bn1
+                        iostat -x -z -N -d -p ALL 20 2
                         ps -ef
                         free
                         df
                         memstat
                         dmesg
+                        ip -s link
                         netstat -an"""
         if not cmds:
             cmds = dft_cmds
Signature · 1 line
1.8.4.5
#2 lore raw
Quoted 22 lines · On Sep 29, 2015, at 2:05 AM, [email protected] wrote:

From: Mariano Lopez <[email protected]>

This change just add two more commands to
the host dumps to get more information
related to the IO.

[YOCTO #8412]

---
meta/classes/testimage.bbclass | 2 ++
meta/lib/oeqa/utils/dump.py | 2 ++

2 files changed, 4 insertions(+)
meta/classes/testimage.bbclass +0 -0
index 2efab29..1f21c9e 100644

meta/classes/testimage.bbclass testimage_dump_target () { · line 83

Quoted 4 lines
meta/classes/testimage.bbclass +1 -0
@@ -80,11 +80,13 @@ testimage_dump_target () {
 
 testimage_dump_host () {
    top -bn1
+    iostat -x -z -N -d -p ALL 20 2

Somewhere it needs to documented that build system now needs to have sysstat package installed.

meta/classes/testimage.bbclass testimage_dump_target () { · line 89

Quoted 6 lines
meta/classes/testimage.bbclass +1 -0
    ps -ef
    free
    df
    memstat
    dmesg
+    ip -s link

and iproute2

Quoted 29 lines
meta/classes/testimage.bbclass +0 -0
    netstat -an
 }
 
meta/lib/oeqa/utils/dump.py +2 -1
index 3f31e20..63a591d 100644
@@ -20,11 +20,13 @@ class BaseDumper(object):
        # to set some defaults.
        self.parent_dir = parent_dir or "/tmp/oe-saved-tests"
        dft_cmds = """  top -bn1
+                        iostat -x -z -N -d -p ALL 20 2
                        ps -ef
                        free
                        df
                        memstat
                        dmesg
+                        ip -s link
                        netstat -an"""
        if not cmds:
            cmds = dft_cmds
--

1.8.4.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 22 lines · Khem Raj
Quoted 22 lines · On Sep 29, 2015, at 2:05 AM, [email protected] wrote:

From: Mariano Lopez <[email protected]>

This change just add two more commands to
the host dumps to get more information
related to the IO.

[YOCTO #8412]

---
meta/classes/testimage.bbclass | 2 ++
meta/lib/oeqa/utils/dump.py | 2 ++

2 files changed, 4 insertions(+)
meta/classes/testimage.bbclass +0 -0
index 2efab29..1f21c9e 100644
@@ -80,11 +80,13 @@ testimage_dump_target () {
 
Quoted 4 lines

meta/classes/testimage.bbclass testimage_dump_target () { · line 83

Quoted 3 lines
meta/classes/testimage.bbclass +1 -0
 testimage_dump_host () {
     top -bn1
+    iostat -x -z -N -d -p ALL 20 2

Somewhere it needs to documented that build system now needs to have sysstat package installed.

Documentation has been updated:

http://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#qemu-image-enabling-tests.

Quoted 40 lines

meta/classes/testimage.bbclass testimage_dump_target () { · line 89

Quoted 7 lines
meta/classes/testimage.bbclass +1 -0
     ps -ef
     free
     df
     memstat
     dmesg
+    ip -s link

and iproute2

Quoted 29 lines
meta/classes/testimage.bbclass +0 -0
     netstat -an
 }
 
meta/lib/oeqa/utils/dump.py +2 -1
index 3f31e20..63a591d 100644
@@ -20,11 +20,13 @@ class BaseDumper(object):
         # to set some defaults.
         self.parent_dir = parent_dir or "/tmp/oe-saved-tests"
         dft_cmds = """  top -bn1
+                        iostat -x -z -N -d -p ALL 20 2
                         ps -ef
                         free
                         df
                         memstat
                         dmesg
+                        ip -s link
                         netstat -an"""
         if not cmds:
             cmds = dft_cmds
--

1.8.4.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core