summaryrefslogtreecommitdiffstats
path: root/dtrace.in
Commit message (Collapse)AuthorAgeFilesLines
* reorganize app tests; rewrite tcl as sample of improvementsFrank Ch. Eigler2009-10-311-1/+1
| | | | | | | | | | | | | | | * testsuite/configure.ac (--enable-testapps): New option. * testsuite/Makefile.am (TESTAPPS): Pass to dejagnu. * testsuite/systemtap.base/{xulrunner,tcl,mysql,postgres}: Moved under new systemtap.apps/ subdirectory. * testsuite/systemtap.apps/stap-tcl.sh: New file to build tcl. * testsuite/systemtap.apps/stap-tcl.stp: New file to test tcl. * testsuite/systemtap.apps/tcl.exp: New simplified test driver. * dtrace.in: Disable STAP_HAS_SEMAPHORES as they don't work on shlibs yet. * includes/sys/sdt.h (STAP_SEMAPHORE): Include __builtin_expect for unlikely.
* Add testsuite for tcl sdt markers.Stan Cox2009-10-191-1/+2
| | | | | dtrace.in (provider::generate): Set enabled to true until .so is resolved. tcl.exp: New testsuite for tcl sdt markers modelled after mysql.
* Add DEBUG_UPROBES for sdt semaphores.Stan Cox2009-10-011-3/+15
| | | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Add DEBUG_UPROBES for sdt semaphores * dtrace.in (main): Add -k option to keep around the temp files.
* PR10655 part 1: uprobes: track sdt semaphores properlyFrank Ch. Eigler2009-09-181-2/+4
| | | | | | | | | | | | | | | | | | | commit 6846cfc8 introduced an unintended side-effect where semaphore tracking was identified with stap_uprobe_specs[] elements, which are normally static/const. This kernel patch <http://article.gmane.org/gmane.linux.kernel/854187> catches and panics on this. The cure is to move the variable over to the stap_uprobes[] array. * tapsets.cxx (uprobe emit_module_decls): Add sdt_sem_address to stap_uprobe{} struct, to contain per-process relocated semaphore address. (emit_module_decls,_init): Remove tsk field, restore constness of appropriate locals. Activate uprobe semaphore right around uprobe activation time. Remove semaphore clearing upon process exit, since by then it's gone. (emit_module_exit): Use remembered relocated semaphore address to clean up. Fix "-uprobe" DEBUG_UPROBES message. * runtime.h: #include <linux/sched.h>. * dtrace.in (*_semaphore): Make it an unsigned short - intended 16 bits on all common architectures/multilibs.
* Add semaphores for use with the forthcoming sdt marker checks.Stan Cox2009-09-111-2/+24
| | | | | | | dtrace.in (semaphore_def_append): New. (generate): Call it. (semaphore_def_write): New. (main): Call it.
* Have dtrace use [wd] as the default dir when -o isn't given.Stan Cox2009-08-281-0/+1
| | | | | * dtrace.in: Generate the output file from basename of input filename. * dtrace.exp: Adjust the tests accordingly.
* Simplify mkstemp invocation.Stan Cox2009-08-231-1/+1
| | | | *dtrace: Don't bother with prefix when invoking mkstemp.
* * dtrace.in: Support -C, preprocess with cpp, which upstream postgresStan Cox2009-08-201-0/+14
| | | | is now using.
* * dtrace.in: Honor the dirname for the output file.Stan Cox2009-08-181-2/+1
| | | | * testsuite/systemtap.base/dtrace.exp: New test.
* dtrace.in: Don't interpret -h -o FILE, just use the filename as is.Stan Cox2009-07-301-8/+9
|
* PR10399 dtrace should obey prefix install pathMark Wielaard2009-07-151-0/+183
* dtrace: Renamed to... * dtrace.in: Add -I@prefix/include to gcc invocation. * configure.ac (AC_CONFIG_FILES): List dtrace. * configure: Regenerated.