summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguanglei <guanglei>2006-07-18 02:44:09 +0000
committerguanglei <guanglei>2006-07-18 02:44:09 +0000
commit749cc1800c9049aa92e7c98cfd1a6d953d73a342 (patch)
tree1601aa65b4c67213886209f1d9c70eb09620d5dc
parentc29ab02cbb0cb4136d13e95de9548c2575213db4 (diff)
downloadsystemtap-steved-749cc1800c9049aa92e7c98cfd1a6d953d73a342.tar.gz
systemtap-steved-749cc1800c9049aa92e7c98cfd1a6d953d73a342.tar.xz
systemtap-steved-749cc1800c9049aa92e7c98cfd1a6d953d73a342.zip
bugfix of an stp script example(skb --> $skb)
-rw-r--r--lket.5.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/lket.5.in b/lket.5.in
index e1844443..688bc1e5 100644
--- a/lket.5.in
+++ b/lket.5.in
@@ -586,7 +586,7 @@ probe register_event
}
probe addevent.netdev
{
- printf("%4b%4b", skb->mac_len, skb->priority)
+ printf("%4b%4b", $skb->mac_len, $skb->priority)
}
.ESAMPLE
@@ -605,7 +605,7 @@ To only probe syscall.entry:
stap -e "probe addevent.syscall.entry {}" -bM
.TP
To probe netdev transmition and log extra data of mac_len and priority:
-stap -e "probe addevent.netdev.transmit { printf(\\"%4b%4b\\", skb->mac_len, skb->priority) }" -bM
+stap -e "probe addevent.netdev.transmit { printf(\\"%4b%4b\\", $skb->mac_len, $skb->priority) }" -bM
.SH SEE ALSO
.IR stap (1)