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/22278] New: the nss client code doesn't handle '-I DIR' well


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

            Bug ID: 22278
           Summary: the nss client code doesn't handle '-I DIR' well
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com
  Target Milestone: ---

Using a custom tapset directory works fine:

====
# cat tapset/foo.stp
function foo()
{
        printf("Hello\n")
}
# stap -I tapset -e 'probe oneshot { foo() }'
Hello
====

However, if you try to do the same thing with a compile server, you get an
error:

====
# stap --use-server -I tapset -e 'probe oneshot { foo() }'
semantic error: unresolved function (similar: log, HZ, pn, pp, cpu): identifier
'foo' at <input>:1:17
        source: probe oneshot { foo() }
                                ^

WARNING: unused command line option $1/@1
Pass 2: analysis failed.  [man error::pass2]
Passes: via server failed.  Try again with another '-v' option.
====

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