This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/6897] New: stap not resolving process(pid).statements properly.


When running a SystemTap script with process(PID) syntax where PID is
non-existant,  I expected SystemTap to exit with an error message. However
SystemTap seems happy enuf to start a probing section.

cat sub.stp
#!/usr/bin/env stap
# Usage: stap <this script> pid
# where pid is an instance of /bin/bash

probe begin { printf("Probing...\n") }

probe process($1).statement(0x0805b834).absolute {
    printf("hello world\n")
}
# ps -aef | grep 9999 | grep -v grep
#
# ./sub.stp -v -v 9999
SystemTap translator/driver (version 0.7.1/0.137 git branch master, commit 6d24a6c9)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.23
Created temporary directory "/tmp/stapVayM4Y"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 980usr/20sys/1007real ms.
Pass 2: analyzed script: 2 probe(s), 0 function(s), 0 embed(s), 0 global(s) in
20usr/0sys/15real ms.
probe_1388 locks nothing
Pass 3: translated to C into
"/tmp/stapVayM4Y/stap_c93fcaf2947ac2443aa9b5e2c7690731_300.c" in
130usr/1130sys/1253real ms.
Pass 4, preamble: (re)building SystemTap's version of uprobes.
Running make -C /usr/local/share/systemtap/runtime/uprobes >/dev/null
Uprobes (re)build complete.
Running make -C "/lib/modules/2.6.23/build" M="/tmp/stapVayM4Y" modules >/dev/null
Pass 4: compiled C into "stap_c93fcaf2947ac2443aa9b5e2c7690731_300.ko" in
9690usr/1430sys/10907real ms.
Copying /tmp/stapVayM4Y/stap_c93fcaf2947ac2443aa9b5e2c7690731_300.ko to
/home/srikar/.systemtap/cache/c9/stap_c93fcaf2947ac2443aa9b5e2c7690731_300.ko
Copying /tmp/stapVayM4Y/stap_c93fcaf2947ac2443aa9b5e2c7690731_300.c to
/home/srikar/.systemtap/cache/c9/stap_c93fcaf2947ac2443aa9b5e2c7690731_300.c
Pass 5: starting run.
Running /usr/local/bin/staprun -v -u
/tmp/stapVayM4Y/stap_c93fcaf2947ac2443aa9b5e2c7690731_300.ko
Probing...
Additional information:
# stap -V
SystemTap translator/driver (version 0.7.1/0.137 git branch master, commit 6d24a6c9)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
# uname -a
Linux llm33.in.ibm.com 2.6.23 #3 SMP Tue Sep 9 12:05:52 IST 2008 i686 i686 i386
GNU/Linux
(On a 2.6.23 + utrace kernel)

-- 
           Summary: stap not resolving process(pid).statements properly.
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: srikar at linux dot vnet dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=6897

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]