From 13d2ecdb6895bc9f2e0d1db9db478a953f3c1efe Mon Sep 17 00:00:00 2001 From: jistone Date: Tue, 22 Aug 2006 20:55:59 +0000 Subject: 2006-08-22 Josh Stone PR 3094 From Eugeniy Meshcheryakov : * stap.1.in: In groff, '-' produces a Unicode hyphen. Use '\-' where a plain-old minus sign is desired, e.g., code examples. * lket.5.in, stapex.5.in, stapfuncs.5.in, stapprobes.5.in: ditto --- stapex.5.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stapex.5.in') diff --git a/stapex.5.in b/stapex.5.in index 42c4e4d8..d43edda0 100644 --- a/stapex.5.in +++ b/stapex.5.in @@ -38,7 +38,7 @@ probe end { foreach (x+ in odds) { log("odds[" . sprint(x) . "] = " . sprint(odds[x])) } - foreach (x in evens-) { + foreach (x in evens\-) { log("evens[" . sprint(x) . "] = " . sprint(evens[x])) } } @@ -84,7 +84,7 @@ function fibonacci(i) { if (i < 1) error ("bad number") if (i == 1) return 1 if (i == 2) return 2 - return fibonacci (i-1) + fibonacci (i-2) + return fibonacci (i\-1) + fibonacci (i\-2) } probe begin { log ("11th fibonacci number: " . sprint (fibonacci (11))) @@ -107,7 +107,7 @@ To list the probeable functions in the kernel, use the last-pass option to the translator. That output needs to be filtered because each inlined function instance is listed separately. .SAMPLE -% stap -p2 -e \[aq]probe kernel.function("*") {}\[aq] | sort | uniq +% stap \-p2 \-e \[aq]probe kernel.function("*") {}\[aq] | sort | uniq .ESAMPLE -- cgit