This is the mail archive of the 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/5516] New: stap can not overwrite kernel local variables in guru mode

I got semantic error when I compiled a script which overwrote a kernel local
variable in guru-mode.
probe kernel.function("icmp_rcv") {
        printf("skb = %x\n", $skb);
        $skb = 0;
(NOTE: this script will crash kernel, so don't run it.)

Here is an error log.
$ stap -vg -p3  mini.stp
Pass 1: parsed user script and 38 library script(s) in 230usr/20sys/657real ms.
semantic error: Expecting symbol or array index expression: identifier '$skb' at
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
340usr/430sys/8696real ms.
semantic error: unknown type of arg to print operator: identifier '$skb' at
Pass 3: translated to C into
"/tmp/stapUtkYiN/stap_4974e47d8036f6f2354d350ccb2ada6a_556.c" in 0usr/0sys/0real ms.
Pass 3: translation failed.  Try again with more '-v' (verbose) options.

           Summary: stap can not overwrite kernel local variables in guru
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mhiramat at redhat dot com

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