<?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>6016</bug_id>
          
          <creation_ts>2014-03-20 13:24:51 +0000</creation_ts>
          <short_desc>CrossTap has issues on running scheduler script against qemuppc</short_desc>
          <delta_ts>2017-03-23 03:18:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.6</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10990</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandra Safta">alexandra.safta</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>ada-mihaela.solcan</cc>
    
    <cc>alexandru.c.georgescu</cc>
    
    <cc>catalin.scrieciu</cc>
    
    <cc>dvhart</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41524</commentid>
    <comment_count>0</comment_count>
      <attachid>1845</attachid>
    <who name="Alexandra Safta">alexandra.safta</who>
    <bug_when>2014-03-20 13:24:51 +0000</bug_when>
    <thetext>Created attachment 1845
sched_switch.stp

When running the crosstap tests using the sched_switch.stp the following error is displayed: 

$ ./../scripts/crosstap root@192.168.7.4 sched_switch.stp 

semantic error: not accessible at this address [man error::Dwarf] (0xc0065470, dieoffset: 0x4a42c2): identifier &apos;$p&apos; at poky-1960f6b2ecbb793b40ebc9aed25c8f9cb7884c9a/build_ppc/tmp/sysroots/x86_64-linux/usr/share/systemtap/tapset/linux/scheduler.stp:257:9

source: task = $p 
^ 

Pass 2: analysis failed. [man error::Pass2] 
Number of similar error messages suppressed: 65. 
Rerun with -v to see them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41554</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-03-20 22:54:38 +0000</bug_when>
    <thetext>This may be a duplicate of:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=5948

but I can&apos;t tell from looking at the commit whether this is current master or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41556</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-20 23:36:02 +0000</bug_when>
    <thetext>Alexandra, can you confirm if what you are seeing is a dup of 5948?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41563</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandra Safta">alexandra.safta</who>
    <bug_when>2014-03-21 10:00:43 +0000</bug_when>
    <thetext>yes, it seems to be the same problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41587</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-21 21:57:01 +0000</bug_when>
    <thetext>Thank you Alexandra, marking as a duplicate of BUG 5948

*** This bug has been marked as a duplicate of bug 5948 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41847</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-03-27 14:45:02 +0000</bug_when>
    <thetext>Re-opening this bug as it is opened against master while Bug 5948 was against 1.4.3, which is closed as WONTFIX. Let&apos;s focus our efforts on this bug for master. Assigning to Tom as he agreed to do the system tap update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41904</commentid>
    <comment_count>6</comment_count>
      <attachid>1865</attachid>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-03-28 15:31:27 +0000</bug_when>
    <thetext>Created attachment 1865
systemtap &apos;update&apos;

With this patch, I was able to run the sched_switch.stp script targeting qemuppc.

Please try it and let me know if it works for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41937</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-03-31 07:28:00 +0000</bug_when>
    <thetext>The similar issue still happens on 1.6 M5 rc1. It not only happens on qemuppc, but also on qemuarm. I think the cause is the kernel update from 3.10 to 3.14.


Git rev: master-next-1.6rc1 / 47ceed0d8d60a3ddc398738acafe3aabf4ab8c90

##########
$ crosstap root@192.168.7.2 sched_switch.stp 
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build
In file included from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder.c:17:0,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:192,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapoOW56J/sched_switch_src.c:24:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function &apos;__stp_utrace_attach_match_filename&apos;:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:821:11: error: incompatible types when assigning to type &apos;uid_t&apos; from type &apos;kuid_t&apos;
  tsk_euid = task_euid(tsk);
           ^
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function &apos;stap_start_task_finder&apos;:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:1711:12: error: incompatible types when assigning to type &apos;uid_t&apos; from type &apos;kuid_t&apos;
   tsk_euid = task_euid(tsk);
            ^
In file included from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:198:0,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapoOW56J/sched_switch_src.c:24:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/sym.c: In function &apos;_stp_snprint_addr&apos;:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/sym.c:567:4: error: implicit declaration of function &apos;preempt_enable_no_resched&apos; [-Werror=implicit-function-declaration]
    preempt_enable_no_resched();
    ^
In file included from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto-dev/3.14++gitAUTOINC+f6370641ed_fecc3fd7d3-r0/linux/include/linux/sched.h:53:0,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto-dev/3.14++gitAUTOINC+f6370641ed_fecc3fd7d3-r0/linux/include/linux/ptrace.h:5,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto-dev/3.14++gitAUTOINC+f6370641ed_fecc3fd7d3-r0/linux/include/linux/ftrace.h:13,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto-dev/3.14++gitAUTOINC+f6370641ed_fecc3fd7d3-r0/linux/include/linux/kprobes.h:42,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapoOW56J/sched_switch_src.c:24:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/control.c: In function &apos;_stp_ctl_write_cmd&apos;:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto-dev/3.14++gitAUTOINC+f6370641ed_fecc3fd7d3-r0/linux/include/linux/cred.h:333:25: error: incompatible types when initializing type &apos;uid_t&apos; using type &apos;kuid_t&apos;
 #define current_euid()  (current_cred_xxx(euid))
                         ^
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/control.c:41:15: note: in expansion of macro &apos;current_euid&apos;
  uid_t euid = current_euid();
               ^
In file included from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/print.c:17:0,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/print.c:17,
                 from /buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime_context.h:22,
                 from /tmp/stapoOW56J/sched_switch_src.c:312:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c: In function &apos;_stp_transport_init&apos;:
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c:344:11: error: incompatible types when assigning to type &apos;uid_t&apos; from type &apos;kuid_t&apos;
  _stp_uid = current_uid();
           ^
/buildarea/jenkins-yocto/workspace/Yocto1.6-case316_319_compile_kernel_module/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c:345:11: error: incompatible types when assigning to type &apos;gid_t&apos; from type &apos;kgid_t&apos;
  _stp_gid = current_gid();
           ^
cc1: all warnings being treated as errors
make[3]: *** [/tmp/stapoOW56J/sched_switch_src.o] Error 1
make[2]: *** [_module_/tmp/stapoOW56J] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
##########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41954</commentid>
    <comment_count>8</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-03-31 12:37:50 +0000</bug_when>
    <thetext>Is this with the above systemtap update patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42000</commentid>
    <comment_count>9</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-04-01 05:29:11 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; Is this with the above systemtap update patch?

Yes.

commit 94a9df269877cb5c11ad39c7bc7c3edef5a3cf08
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Fri Feb 14 10:18:08 2014 -0800

    systemtap_git: update to newer version to fix a build issue
    
    This build issue was observed with the 2.4+git version of the systemtap.
    
    .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx: In function &apos;void validate_module_elf(Dwfl_Module*, const char*, base_query*)&apos;:
    .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx:1998:10: error: &apos;EM_AARCH64&apos; was not declared in this scope
    .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx: In constructor &apos;sdt_uprobe_var_expanding_visitor::sdt_uprobe_var_expanding_visitor(systemtap_session&amp;
    .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.cxx:5613:31: error: &apos;EM_AARCH64&apos; was not declared in this scope
    
    This is a known issue, and it is already fixed in the upstream tree.
    
    Updating the recipe to get the commit which fixes the issue.
    
    (From OE-Core rev: 5170f58f4a46edead40d98f302ba3294e078c113)
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc
index b87aa1a..56db7b2 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.inc
+++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
@@ -1,7 +1,7 @@
 LICENSE = &quot;GPLv2&quot;
 LIC_FILES_CHKSUM = &quot;file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263&quot;
-SRCREV = &quot;9190b3acfe706d3bfd66dec18133d28f98443321&quot;
-PV = &quot;2.4+git${SRCPV}&quot;
+SRCREV = &quot;508059f04842ed85d10bfbec8a9c688d57368860&quot;
+PV = &quot;2.5+git${SRCPV}&quot;
 
 SRC_URI = &quot;git://sourceware.org/git/systemtap.git \
            file://docproc-build-fix.patch \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42029</commentid>
    <comment_count>10</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-04-01 12:36:23 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; Is this with the above systemtap update patch?
&gt; 
&gt; Yes.
&gt; 
&gt; commit 94a9df269877cb5c11ad39c7bc7c3edef5a3cf08
&gt; Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
&gt; Date:   Fri Feb 14 10:18:08 2014 -0800
&gt; 
&gt;     systemtap_git: update to newer version to fix a build issue
&gt;     
&gt;     This build issue was observed with the 2.4+git version of the systemtap.
&gt;     
&gt;    
&gt; .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.
&gt; cxx: In function &apos;void validate_module_elf(Dwfl_Module*, const char*,
&gt; base_query*)&apos;:
&gt;    
&gt; .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.
&gt; cxx:1998:10: error: &apos;EM_AARCH64&apos; was not declared in this scope
&gt;    
&gt; .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.
&gt; cxx: In constructor
&gt; &apos;sdt_uprobe_var_expanding_visitor::
&gt; sdt_uprobe_var_expanding_visitor(systemtap_session&amp;
&gt;    
&gt; .../x86_64-linux/systemtap-native/2.4+gitAUTOINC+9190b3acfe-r0/git/tapsets.
&gt; cxx:5613:31: error: &apos;EM_AARCH64&apos; was not declared in this scope
&gt;     
&gt;     This is a known issue, and it is already fixed in the upstream tree.
&gt;     
&gt;     Updating the recipe to get the commit which fixes the issue.
&gt;     
&gt;     (From OE-Core rev: 5170f58f4a46edead40d98f302ba3294e078c113)
&gt;     
&gt;     Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
&gt;     Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
&gt; 
&gt; diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc
&gt; b/meta/recipes-kernel/systemtap/systemtap_git.inc
&gt; index b87aa1a..56db7b2 100644
&gt; --- a/meta/recipes-kernel/systemtap/systemtap_git.inc
&gt; +++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
&gt; @@ -1,7 +1,7 @@
&gt;  LICENSE = &quot;GPLv2&quot;
&gt;  LIC_FILES_CHKSUM = &quot;file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263&quot;
&gt; -SRCREV = &quot;9190b3acfe706d3bfd66dec18133d28f98443321&quot;
&gt; -PV = &quot;2.4+git${SRCPV}&quot;
&gt; +SRCREV = &quot;508059f04842ed85d10bfbec8a9c688d57368860&quot;
&gt; +PV = &quot;2.5+git${SRCPV}&quot;
&gt;  
&gt;  SRC_URI = &quot;git://sourceware.org/git/systemtap.git \
&gt;             file://docproc-build-fix.patch \

No, I meant the &apos;systemtap &apos;update&apos; patch attached above:


From e655af2c2602546c818caf858177744a2ada11f7 Mon Sep 17 00:00:00 2001
Message-Id: &lt;e655af2c2602546c818caf858177744a2ada11f7.1396020509.git.tom.zanussi@linux.intel.com&gt;
From: Tom Zanussi &lt;tom.zanussi@linux.intel.com&gt;
Date: Fri, 28 Mar 2014 10:19:01 -0500
Subject: [PATCH] systemtap: Move to current HEAD

This moves the systemtap recipe to the current HEAD commit, in order
to allow users to get past some bugs blocking qemuppc users.

Normally, we&apos;d stick to a release commit, but apparently we&apos;re already
past the official 2.4 release commit and couldn&apos;t be on the 2.5
release commit since 2.5 hasn&apos;t been released yet (despite what the
PV says).

Signed-off-by: Tom Zanussi &lt;tom.zanussi@linux.intel.com&gt;
---
 meta/recipes-kernel/systemtap/systemtap_git.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc
index 56db7b2..db9d910 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.inc
+++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
@@ -1,6 +1,6 @@
 LICENSE = &quot;GPLv2&quot;
 LIC_FILES_CHKSUM = &quot;file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263&quot;
-SRCREV = &quot;508059f04842ed85d10bfbec8a9c688d57368860&quot;
+SRCREV = &quot;ae91e3d552aff4f0e74662d055dae06ea55eb6bc&quot;
 PV = &quot;2.5+git${SRCPV}&quot;
 
 SRC_URI = &quot;git://sourceware.org/git/systemtap.git \
-- 
1.8.3.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42097</commentid>
    <comment_count>11</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-04-02 06:39:45 +0000</bug_when>
    <thetext>Sorry for my mistake. I will re-test it with this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42274</commentid>
    <comment_count>12</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-04-04 09:43:31 +0000</bug_when>
    <thetext>I tested it on 1.6 M5,rc2 with systemtap update patch. On qemuppc, qemuarm, qemux86, the sched_switch.stp could work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42319</commentid>
    <comment_count>13</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-04-04 23:07:20 +0000</bug_when>
    <thetext>Patch submitted to oe-core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42323</commentid>
    <comment_count>14</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-04-05 15:51:00 +0000</bug_when>
    <thetext>*** Bug 6118 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42337</commentid>
    <comment_count>15</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-04-07 12:37:20 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=cb68ed9c4708a575a39ffd9351624321ea14d1e5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42347</commentid>
    <comment_count>16</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-04-07 16:45:10 +0000</bug_when>
    <thetext>*** Bug 6122 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44265</commentid>
    <comment_count>17</comment_count>
    <who name="Catalin Scrieciu">catalin.scrieciu</who>
    <bug_when>2014-07-01 13:40:56 +0000</bug_when>
    <thetext>I had a similar issue while testing Yocto 1.7_M1.rc1 (poky 68824d9b8f6e290da078383316b3f4b732585f2b):

$ ./../scripts/crosstap root@192.168.7.6 sched_switch.stp -c &quot;sleep 1&quot;

semantic error: not accessible at this address [man error::dwarf] (0xc05e46b8, dieoffset: 0x3e6165): identifier &apos;$prev&apos; at /Yocto_1.7_M1_RC1/poky-68824d9b8f6e290da078383316b3f4b732585f2b/build_arm/tmp/sysroots/x86_64-linux/usr/share/systemtap/tapset/linux/scheduler.stp:144:19
        source:                 prev_priority = $prev-&gt;prio
                                                ^

semantic error: unable to find local &apos;new&apos;, [man error::dwarf] dieoffset 0x3e6148 in kernel, near pc 0xc05e46b8 in context_switch /Yocto_1.7_M1_RC1/poky-68824d9b8f6e290da078383316b3f4b732585f2b/build_arm/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/3.14.5+gitAUTOINC+602be954ac_2489f1f4d7-r0/linux/kernel/sched/core.c (alternatives: $next, $prev, $rq)): identifier &apos;$new&apos; at :169:19
        source:                 next_priority = $new-&gt;prio
                                                ^

Pass 2: analysis failed.  [man error::pass2]
Number of similar error messages suppressed: 34.
Rerun with -v to see them.

$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50193</commentid>
    <comment_count>18</comment_count>
    <who name="Catalin Scrieciu">catalin.scrieciu</who>
    <bug_when>2015-04-09 15:34:03 +0000</bug_when>
    <thetext>We have encountered the same issue as above when testing Yocto 1.8 M4 RC2 (poky 33558eacc8a2d3dce3396b9ab2fd0773ac5076bc).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50198</commentid>
    <comment_count>19</comment_count>
    <who name="Catalin Scrieciu">catalin.scrieciu</who>
    <bug_when>2015-04-09 15:35:51 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; We have encountered the same issue as above when testing Yocto 1.8 M4 RC2
&gt; (poky 33558eacc8a2d3dce3396b9ab2fd0773ac5076bc).

The issues was encountered on QemuARM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51894</commentid>
    <comment_count>20</comment_count>
      <attachid>2561</attachid>
    <who name="Kevin Hao">kexin.hao</who>
    <bug_when>2015-06-24 07:17:54 +0000</bug_when>
    <thetext>Created attachment 2561
find the yocto kernel source tree</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51895</commentid>
    <comment_count>21</comment_count>
    <who name="Kevin Hao">kexin.hao</who>
    <bug_when>2015-06-24 07:19:14 +0000</bug_when>
    <thetext>It seems that this is a compatible issue between systemtap and yocto build system. I have created a patch (attached) to fix this issue. But I am not sure this is the right fix. Assigned this to Robert to have more deep investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52065</commentid>
    <comment_count>22</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-07-01 07:40:22 +0000</bug_when>
    <thetext>(In reply to comment #21)
&gt; It seems that this is a compatible issue between systemtap and yocto build
&gt; system. I have created a patch (attached) to fix this issue. But I am not
&gt; sure this is the right fix. Assigned this to Robert to have more deep
&gt; investigation.

Hi Kevin,

I think this is the right fix.

Please make a patch and send it to OE-core if convenient.

Regards,
Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52806</commentid>
    <comment_count>23</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-08-04 02:01:14 +0000</bug_when>
    <thetext>Hi Kevin,

Do you have time to send the patches? If not, I can do it for you.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56638</commentid>
    <comment_count>24</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2015-11-19 15:52:10 +0000</bug_when>
    <thetext>This was REOPENED</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71439</commentid>
    <comment_count>25</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-03-20 00:31:42 +0000</bug_when>
    <thetext>This issue should be fixed in 2.3 M3 rc1. It works well on qemuppc build.

Please see bug 10990 for more details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71621</commentid>
    <comment_count>26</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2017-03-23 03:18:24 +0000</bug_when>
    <thetext>It&apos;s been fixed in bug 10990 as Yi said.

*** This bug has been marked as a duplicate of bug 10990 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1845</attachid>
            <date>2014-03-20 13:24:51 +0000</date>
            <delta_ts>2014-03-20 13:24:51 +0000</delta_ts>
            <desc>sched_switch.stp</desc>
            <filename>sched_switch.stp</filename>
            <type>application/octet-stream</type>
            <size>2117</size>
            <attacher name="Alexandra Safta">alexandra.safta</attacher>
            
              <data encoding="base64">IyEgL3Vzci9iaW4vZW52IHN0YXAKLyogVGhpcyBzY3JpcHQgd29ya3Mgc2ltaWxhciB0byBmdHJh
Y2UncyBzY2hlZF9zd2l0Y2guIEl0IGRpc3BsYXlzIGEgbGlzdCBvZgogKiBwcm9jZXNzZXMgd2hp
Y2ggZ2V0IHN3aXRjaGVkIGluIGFuZCBvdXQgb2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W9yaXR5LHN0YXRlX2NhbGMocHJl
dnRza19zdGF0ZSksbmV4dF9waWQsCgkJbmV4dF9wcmlvcml0eSxzdGF0ZV9jYWxjKG5leHR0c2tf
c3RhdGUpLG5leHRfdGFza19uYW1lKQp9CnByb2JlIGJlZ2luCnsKCXRhcmdldF9waWQgPSAwCgl0
YXJnZXRfbmFtZSA9ICIiCgoJJSggJCMgPT0gMSB8fCAkIyA+IDIgJT8KCQlsb2coIldyb25nIG51
bWJlciBvZiBhcmd1bWVudHMsIHVzZSBub25lLCAncGlkIG5yJyBvciAnbmFtZSBwcm9jJyIpCgkJ
ZXhpdCgpCgklKQoKCSUoICQjID09IDIgJT8KCQlpZihAMSA9PSAicGlkIikgCgkJCXRhcmdldF9w
aWQgPSBzdHJ0b2woQDIsIDEwKQoJCWlmKEAxID09ICJuYW1lIikKCQkJdGFyZ2V0X25hbWUgPSBA
MgoJJSkKfQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1865</attachid>
            <date>2014-03-28 15:31:27 +0000</date>
            <delta_ts>2014-03-28 15:31:27 +0000</delta_ts>
            <desc>systemtap &apos;update&apos;</desc>
            <filename>0001-systemtap-Move-to-current-HEAD.patch</filename>
            <type>text/plain</type>
            <size>1371</size>
            <attacher name="Tom Zanussi">tom.zanussi</attacher>
            
              <data encoding="base64">RnJvbSBlNjU1YWYyYzI2MDI1NDZjODE4Y2FmODU4MTc3NzQ0YTJhZGExMWY3IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpNZXNzYWdlLUlkOiA8ZTY1NWFmMmMyNjAyNTQ2YzgxOGNhZjg1ODE3Nzc0
NGEyYWRhMTFmNy4xMzk2MDIwNTA5LmdpdC50b20uemFudXNzaUBsaW51eC5pbnRlbC5jb20+CkZy
b206IFRvbSBaYW51c3NpIDx0b20uemFudXNzaUBsaW51eC5pbnRlbC5jb20+CkRhdGU6IEZyaSwg
MjggTWFyIDIwMTQgMTA6M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Y2lw
ZXMta2VybmVsL3N5c3RlbXRhcC9zeXN0ZW10YXBfZ2l0LmluYwpAQCAtMSw2ICsxLDYgQEAKIExJ
Q0VOU0UgPSAiR1BMdjIiCiBMSUNfRklMRVNfQ0hLU1VNID0gImZpbGU6Ly9DT1BZSU5HO21kNT1i
MjM0ZWU0ZDY5ZjVmY2U0NDg2YTgwZmRhZjRhNDI2MyIKLVNSQ1JFViA9ICI1MDgwNTlmMDQ4NDJl
ZDg1ZDEwYmZiZWM4YTljNjg4ZDU3MzY4ODYwIgorU1JDUkVWID0gImFlOTFlM2Q1NTJhZmY0ZjBl
NzQ2NjJkMDU1ZGFlMDZlYTU1ZWI2YmMiCiBQViA9ICIyLjUrZ2l0JHtTUkNQVn0iCiAKIFNSQ19V
UkkgPSAiZ2l0Oi8vc291cmNld2FyZS5vcmcvZ2l0L3N5c3RlbXRhcC5naXQgXAotLSAKMS44LjMu
MQoK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2561</attachid>
            <date>2015-06-24 07:17:54 +0000</date>
            <delta_ts>2015-06-24 07:17:54 +0000</delta_ts>
            <desc>find the yocto kernel source tree</desc>
            <filename>0001-tracepoint-probes-add-the-support-to-find-the-yocto-.patch</filename>
            <type>text/plain</type>
            <size>1275</size>
            <attacher name="Kevin Hao">kexin.hao</attacher>
            
              <data encoding="base64">RnJvbSA2MDg2MThjZjFjNzA0Y2IyYzNkNmQ1YTAzZTdmY2RiZjI1MGMxMjVkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBLZXZpbiBIYW8gPGtleGluLmhhb0B3aW5kcml2ZXIuY29tPgpE
YXRlOiBXZWQsIDI0IEp1biAyMDE1IDE0OjU5OjI1ICswODAwClN1YmplY3Q6IFtQQVRDSF0gdHJh
Y2Vwb2ludCBwcm9iZXM6IGFkZCB0aGUgc3VwcG9ydCB0byBmaW5kIHRoZSB5b2N0byBrZXJuZWwK
IHNvdXJ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kIGtlcm5lbCBzb3VyY2UgdHJlZSBhdCAnJXMnIiwgc291cmNlX3RyZWUuY19z
dHIoKSkgPDwgZW5kbDsKKyAgICAgICAgICBzLmtlcm5lbF9zb3VyY2VfdHJlZSA9IHNvdXJjZV90
cmVlOworICAgICAgICB9CisgICAgIH0KKwogICAvLyBwcmVmaXhlcwogICB2ZWN0b3I8c3RyaW5n
PiBnbG9iX3ByZWZpeGVzOwogICBnbG9iX3ByZWZpeGVzLnB1c2hfYmFjayAocy5rZXJuZWxfYnVp
bGRfdHJlZSk7Ci0tIAoyLjEuMAoK
</data>

          </attachment>
      

    </bug>

</bugzilla>