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/16165] New: @perf operator in error msgs is corrupted


https://sourceware.org/bugzilla/show_bug.cgi?id=16165

            Bug ID: 16165
           Summary: @perf operator in error msgs is corrupted
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

The following command:

$ stap -e '
global x

probe perf.hw.cpu_cycles.process("/home/yyz/jlebon/towers.x").counter("a") {} 

probe process("/home/yyz/jlebon/towers.x").function("main")
{
   # wrong type
   x = "b" . @perf("a")
}
'

gives as semantic error this:

semantic error: type mismatch: expected string but found long: identifier 'a'
at /home/yyz/jlebon/perf.stp:8:14
        source:    x = "b" . aperf("a")
                             ^

Pass 2: analysis failed.  [man error::pass2]

Notice the corruption from '@' to 'a'.

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


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