This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/4466] New: system_func (0,1,1) fails on ppc64.


My environment is kernel-2.6.21-rc7, systemtap-20070505, elfutils-0.125

Systemtap.samples/system_func.stp probes sys_open and prints "sys_open". But
system_func.stp taking some time to print "sys_open" and  hence system_func.exp
which greps "sys_open" is failing.

==================================================================
Running
/home/systemtap/tmp/stap_testing_200705070516/src/testsuite/systemtap.samples/system_func.e
xp ...
cat: __xyzzy123ABC__: No such file or directory
root

Waititing for processes to exit
DONE
FAIL: system_func (0,1,1)
testcase
/home/systemtap/tmp/stap_testing_200705070516/src/testsuite/systemtap.samples/system_func.
exp completed in 6 seconds
================================================
I have added extra 10 secs timer to wait for "sys_open" message. This fixes the
problem.
=======================================
#! stap

# test the system() function

probe kernel.function("sys_open") {
  # very inefficient. Testing only. DO NOT DO THIS
  msg="echo sys_open"
  system(msg)
}

probe begin {
  # should succeed
  system("whoami")

  # should fail
  system("cat __xyzzy123ABC__")

}

probe timer.ms(10000)
{
exit()
}

probe end {
  # should succeed
  system("echo DONE")
}
============================

-- 
           Summary: system_func (0,1,1) fails on ppc64.
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: srinivasa at in dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4466

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]