<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5630</bug_id>
          
          <creation_ts>2013-12-05 10:31:12 +0000</creation_ts>
          <short_desc>perf test shows multiple errors and fails on qemux86</short_desc>
          <delta_ts>2014-02-10 11:42:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-oe-core</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39233</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-12-05 10:31:12 +0000</bug_when>
    <thetext>poky: c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c
QEMU image used: http://autobuilder.yoctoproject.org/pub/releases/1.6_M1.rc1/machines/qemu/qemux86/core-image-sato-sdk-qemux86.tar.bz2

Errors appear when running &quot;$ perf test&quot; in qemux86:

root@qemux86:~# perf test
 1: vmlinux symtab matches kallsyms                        : Skip
 2: detect open syscall event                              : Ok
 3: detect open syscall event on all cpus                  : Ok
 4: read samples using the mmap interface                  : Ok
 5: parse events tests                                     :  Warning: function scsi_trace_parse_cdb not defined
  Warning: function scsi_trace_parse_cdb not defined
  Warning: function scsi_trace_parse_cdb not defined
  Warning: function scsi_trace_parse_cdb not defined
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: bad op token {
  Warning: Error: expected type 4 but read 0
  Warning: function jiffies_to_msecs not defined
  Warning: function jiffies_to_msecs not defined
  Warning: unknown op &apos;{&apos;
  Warning: unknown op &apos;{&apos;
 Ok
 6: x86 rdpmc test                                         :Error: sys_perf_event_open() syscall returned with -1 (No such file or directory)
 FAILED!
 7: Validate PERF_RECORD_* events &amp; perf_sample fields     : FAILED!
 8: Test perf pmu format parsing                           : Ok
 9: Test dso data interface                                : Ok
10: roundtrip evsel-&gt;name check                            : Ok
11: Check parsing of sched tracepoints fields              : FAILED!
12: Generate and check syscalls:sys_enter_open event fields: Ok
13: struct perf_event_attr setup                           :sh: /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/x86_64-linux/usr/bin/python-native/python: No such file or directory
 FAILED!
14: Test matching and linking mutliple hists               : Ok
15: Try &apos;use perf&apos; in python, checking link problems       : FAILED!
16: Test breakpoint overflow signal handler                : FAILED!
17: Test breakpoint overflow sampling                      : FAILED!
18: Test number of exit event of a simple workload         : Skip
19: Test software clock events have valid period values    : Ok
root@qemux86:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39247</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-12-05 15:47:47 +0000</bug_when>
    <thetext>Tom, can you have a look at this please? Do we expect this to work on all BSPs or is there a debug/tracing feature required?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39248</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-12-05 15:52:20 +0000</bug_when>
    <thetext>A quick look at the output seems to show it trying to parse e.g. scsi events, which may not be there if scsi isn&apos;t enabled in the kernel.

My first question is if this is a regression - I don&apos;t recall this test being run before - or is this a new QA test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39250</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-12-05 16:00:30 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; A quick look at the output seems to show it trying to parse e.g. scsi
&gt; events, which may not be there if scsi isn&apos;t enabled in the kernel.
&gt; 
&gt; My first question is if this is a regression - I don&apos;t recall this test
&gt; being run before - or is this a new QA test?

Hi Tom,
We don&apos;t usually test this, but I stumbled on it by testing eclipse-pluign. Eclipse has a tool that gives the developers the ability to use perf. So it was me just trying &quot;perf test&quot; in the Eclipse plugin and see what&apos;s the output.

I cannot tell if it&apos;s a regression or not since. I also tested it on qemux86. On qemux86-64 gives slightly similar issues. I don&apos;t know for the other arches but I suspect similar output as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39482</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-12-18 19:13:21 +0000</bug_when>
    <thetext>perf testing shouldn&apos;t be done using qemu, which doesn&apos;t properly emulate the PMU.

From qemux86 dmesg:

Performance Events: Broken PMU hardware detected, using software events only.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39483</commentid>
    <comment_count>5</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-12-18 19:14:34 +0000</bug_when>
    <thetext>See previous entry - not expected to work on qemu.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40269</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-02-10 11:42:31 +0000</bug_when>
    <thetext>verified as per Tom&apos;s comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>