]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: fix a bug in the SDT probe location generator
authorKris Van Hees <kris.van.hees@oracle.com>
Mon, 30 Jul 2012 19:03:45 +0000 (15:03 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:27 +0000 (22:40 +0100)
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 <kris.van.hees@oracle.com>
scripts/dtrace_sdt.sh

index 0d85f18c556cf7c886d939f4008b1959d2c08672..a7af742025d5499fde2b6dbbb9e790d48f46dc07 100755 (executable)
@@ -128,7 +128,7 @@ lfn="$2"
             print "dtrace_sdt_probes:";
         }
 
-        NF < 4 {
+        $2 ~ /^[tT]$/ {
             fun = $3;
 
             if (fun in prdata) {