From: Kris Van Hees Date: Mon, 30 Jul 2012 19:03:45 +0000 (-0400) Subject: dtrace: fix a bug in the SDT probe location generator X-Git-Tag: v4.1.12-92~313^2~136 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2d397202437f7cca38948e98183526a984aef082;p=users%2Fjedix%2Flinux-maple.git dtrace: fix a bug in the SDT probe location generator The generator could accidentally add the address of a non-function identifier to the SDT list (e.g. watchdog occurs both in the uninitialised data section (BSS) and the text section). Signed-off-by: Kris Van Hees --- diff --git a/scripts/dtrace_sdt.sh b/scripts/dtrace_sdt.sh index 0d85f18c556c..a7af742025d5 100755 --- a/scripts/dtrace_sdt.sh +++ b/scripts/dtrace_sdt.sh @@ -128,7 +128,7 @@ lfn="$2" print "dtrace_sdt_probes:"; } - NF < 4 { + $2 ~ /^[tT]$/ { fun = $3; if (fun in prdata) {