public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug testsuite/4942] New: kmodule.stp fails on systemtap-20070818 snapshot
@ 2007-08-20 14:07 srinivasa at in dot ibm dot com
  2007-08-20 14:11 ` [Bug testsuite/4942] " hunt at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: srinivasa at in dot ibm dot com @ 2007-08-20 14:07 UTC (permalink / raw)
  To: systemtap

My environment is Systemtap-20070818 snapshot,elfutils-0.128 and kernel-2.6.23-rc3.

kmodule.stp fails with below error message. From error it looks like 
===================================
Running
/home/systemtap/tmp/stap_testing_200708200604/src/testsuite/systemtap.base/kmodule.exp
...
Pass 1: parsed user script and 56 library script(s) in 1240usr/10sys/1372real ms.^M
semantic error: probe_1638 with unresolved type: identifier 'count' at
/home/systemtap/tmp/stap_testing_200708200604/src/testsuite/systemtap.base/kmodule.stp:25:26^M
semantic error: probe_1638 with unresolved type: identifier 'sprint' at
/home/systemtap/tmp/stap_testing_200708200604/src/testsuite/systemtap.base/kmodule.stp:25:19^M
FAIL: systemtap.base/kmodule.stp compilation
testcase
/home/systemtap/tmp/stap_testing_200708200604/src/testsuite/systemtap.base/kmodule.exp
completed in 3 seconds
===============================================================
Is there any change in semantics of "log" function?
=================================================
probe end
{
        log("systemtap ending probe")
        log("count = " . sprint(count));  ===> bug is here
}
============================================

-- 
           Summary: kmodule.stp fails on systemtap-20070818 snapshot
           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=4942

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/4942] kmodule.stp fails on systemtap-20070818 snapshot
  2007-08-20 14:07 [Bug testsuite/4942] New: kmodule.stp fails on systemtap-20070818 snapshot srinivasa at in dot ibm dot com
@ 2007-08-20 14:11 ` hunt at redhat dot com
  2007-08-20 16:20 ` fche at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hunt at redhat dot com @ 2007-08-20 14:11 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From hunt at redhat dot com  2007-08-20 14:03 -------
I tested CVS head and the snapshot and did not see this problem.  I am running a
different kernel, but this doesn't seem kernel related.

SystemTap translator/driver (version 0.6/0.128 built 2007-08-20)
Copyright (C) 2005-2007 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Created temporary directory "/tmp/staplkj09o"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 1
Searched '/usr/local/share/systemtap/tapset/*.stp', found 36
Searched '/usr/local/share/systemtap/tapset/LKET/*.stp', found 19
Pass 1: parsed user script and 56 library script(s) in 230usr/10sys/252real ms.
probe ext3_sync_file@fs/ext3/fsync.c:46 module=ext3 reloc=.text section=.text
pc=0x5e2ea5c
probe sd_rw_intr@drivers/scsi/sd.c:914 module=sd_mod reloc=.text section=.text
pc=0x2cc1768
[...]

-- 


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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/4942] kmodule.stp fails on systemtap-20070818 snapshot
  2007-08-20 14:07 [Bug testsuite/4942] New: kmodule.stp fails on systemtap-20070818 snapshot srinivasa at in dot ibm dot com
  2007-08-20 14:11 ` [Bug testsuite/4942] " hunt at redhat dot com
@ 2007-08-20 16:20 ` fche at redhat dot com
  2007-08-21 12:45 ` srinivasa at in dot ibm dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: fche at redhat dot com @ 2007-08-20 16:20 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2007-08-20 14:11 -------
What's happening here is:
* the module/function probes were all marked as optional, and for some reason
were all excluded in your kernel build
* this elided body of the handler ("count ++") 
* this in turn removed the only source of typing information for "count" (a number)
* this in turn made sprint (one of severa polymorphic functions) yelp that it
didn't know the type of "count"

Nothing changed with log.
What we need is some combination of:
* a change to the test case to add ", never" to the module/function probes
* a change to the test case to choose some other modules/functions that are
bound to be present in more kernels.


-- 


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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/4942] kmodule.stp fails on systemtap-20070818 snapshot
  2007-08-20 14:07 [Bug testsuite/4942] New: kmodule.stp fails on systemtap-20070818 snapshot srinivasa at in dot ibm dot com
  2007-08-20 14:11 ` [Bug testsuite/4942] " hunt at redhat dot com
  2007-08-20 16:20 ` fche at redhat dot com
@ 2007-08-21 12:45 ` srinivasa at in dot ibm dot com
  2007-08-21 15:50 ` fche at redhat dot com
  2007-10-02 20:59 ` fche at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: srinivasa at in dot ibm dot com @ 2007-08-21 12:45 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From srinivasa at in dot ibm dot com  2007-08-21 04:50 -------
Frank
 You are right, I tried using "never" its working now. So we need to change the
testcase.

Thanks
 Srinivasa DS

-- 


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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/4942] kmodule.stp fails on systemtap-20070818 snapshot
  2007-08-20 14:07 [Bug testsuite/4942] New: kmodule.stp fails on systemtap-20070818 snapshot srinivasa at in dot ibm dot com
                   ` (2 preceding siblings ...)
  2007-08-21 12:45 ` srinivasa at in dot ibm dot com
@ 2007-08-21 15:50 ` fche at redhat dot com
  2007-10-02 20:59 ` fche at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fche at redhat dot com @ 2007-08-21 15:50 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2007-08-21 12:45 -------
patch committed

-- 


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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/4942] kmodule.stp fails on systemtap-20070818 snapshot
  2007-08-20 14:07 [Bug testsuite/4942] New: kmodule.stp fails on systemtap-20070818 snapshot srinivasa at in dot ibm dot com
                   ` (3 preceding siblings ...)
  2007-08-21 15:50 ` fche at redhat dot com
@ 2007-10-02 20:59 ` fche at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fche at redhat dot com @ 2007-10-02 20:59 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2007-10-02 20:59 -------
patch already committed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-02 20:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-20 14:07 [Bug testsuite/4942] New: kmodule.stp fails on systemtap-20070818 snapshot srinivasa at in dot ibm dot com
2007-08-20 14:11 ` [Bug testsuite/4942] " hunt at redhat dot com
2007-08-20 16:20 ` fche at redhat dot com
2007-08-21 12:45 ` srinivasa at in dot ibm dot com
2007-08-21 15:50 ` fche at redhat dot com
2007-10-02 20:59 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).