This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/5516] New: stap can not overwrite kernel local variables in guru mode
- From: "mhiramat at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 20 Dec 2007 22:08:15 -0000
- Subject: [Bug translator/5516] New: stap can not overwrite kernel local variables in guru mode
- Reply-to: sourceware-bugzilla at sourceware dot org
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
<input>:3:9
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
<input>:2:30
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
mode
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
http://sourceware.org/bugzilla/show_bug.cgi?id=5516
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.