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 translator/2924] New: Translator can't resolve "$error" local variable.


stap command causes a semantic error when it is resolving "$error" local
variable. But it seems to have succeeded in resolving the symbol's address.

Example script is here:
----
$ cat test.stp
probe kernel.function("bio_endio") {
        printf("%d\n", $error)
}
----
And results are here:
----
$ stap test.stp -vvv
Created temporary directory "/tmp/stapKmkvms"
Searched '/usr/local//share/systemtap/tapset/2.6.18-rc1/i686/*.stp', match count 0
Searched '/usr/local//share/systemtap/tapset/2.6.18-rc1/*.stp', match count 0
Searched '/usr/local//share/systemtap/tapset/2.6.18/i686/*.stp', match count 0
Searched '/usr/local//share/systemtap/tapset/2.6.18/*.stp', match count 0
Searched '/usr/local//share/systemtap/tapset/2.6/i686/*.stp', match count 0
Searched '/usr/local//share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/local//share/systemtap/tapset/i686/*.stp', match count 1
Searched '/usr/local//share/systemtap/tapset/*.stp', match count 27
Pass 1: parsed user script and 28 library script(s) in 130usr/0sys/143real ms.
parsed 'bio_endio' -> func 'bio_endio'
pattern 'kernel' matches module 'kernel'
focused on module 'kernel' = [c0100000-c04ed364, bias 0]
pattern 'bio_endio' matches function 'bio_endio'
selected function bio_endio
prologue searching function 'bio_endio'
0xc014b403-0xc014b45f@/home/hiramatu/ksrc/linux-2.6.18-rc1/fs/bio.c:1032
checking line record 0xc014b403@/home/hiramatu/ksrc/linux-2.6.18-rc1/fs/bio.c:1032
checking line record 0xc014b404@/home/hiramatu/ksrc/linux-2.6.18-rc1/fs/bio.c:1033
prologue found function 'bio_endio' = 0xc014b404
finding location for local 'error' near address c014b404, module bias 0
finding location for local 'error' near address c014b404, module bias 0
probe bio_endio@/home/hiramatu/ksrc/linux-2.6.18-rc1/fs/bio.c:1032 pc=0xc014b404
pattern 'kernel' matches module 'kernel'
semantic error: unresolved target-symbol expression: identifier '$error' at
test.stp:2:17
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 global(s) in
250usr/0sys/253real ms.
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapKmkvms

-- 
           Summary: Translator can't resolve "$error" local variable.
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: masami dot hiramatsu dot pt at hitachi dot com


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

------- 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]