summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* stap-* scripts should be executable.Dave Brolley2009-06-254-0/+0
|
* Only compile with plain gcc for exelib.exp testcases.Mark Wielaard2009-06-251-1/+4
| | | | | | | g++ is also supported but disabled because it didn't add much interesting differences in binaries and exploded the test search case a bit. * testsuite/systemtap.exelib/exelib.exp: Disable g++ by default, but keep support for enabling it.
* Add seperate debuginfo after prelinking to exelib.exp tests.Mark Wielaard2009-06-251-2/+16
| | | | | | | | | | | | We split debuginfo before prelinking, that means that the base load address of the .so is non-zero, while for the .debug files they are zero. In the other case we supported sep-debug without prelinking both .so and .debug load bases were zero. In this new test case both base load addresses are non-zero. * testsuite/systemtap.exelib/exelib.exp: Add libdebug == "sep-after" to indicate separate debuginfo after prelinking library. Skip sep-after if not prelinking.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapWilliam Cohen2009-06-246-29/+75
|\
| * Enable exelib.exp prelink tests except for ustack.tcl.Mark Wielaard2009-06-242-2/+5
| | | | | | | | | | * testsuite/systemtap.exelib/exelib.exp: Enable prelink "yes". * testsuite/systemtap.exelib/ustack.tcl: Ignore any prelink test (PR10323).
| * PR10305 Mark probes fail on prelinked shared library.Mark Wielaard2009-06-243-6/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark probes rely on literal statement addresses, these are based on the on-disk module address space. Introduce helper function to turn such addresses into symbol addresses as expected by libdwfl. Also properly adjust for dw bias when such addresses are used in dw queries. * dwflpp.h (dwflpp::literal_addr_to_sym_addr): New method. * dwflpp.cxx (query_cu_containing_address): Don't "globalize" address. (literal_addr_to_sym_addr): New method. * tapsets.cxx (query_module_dwarf): Turn literal addresses into symbol addresses. (query_dwarf_func): Likewise and adjust for dw module bias.
| * loc2c-test resolve through const and volatile types.Mark Wielaard2009-06-241-1/+3
| | | | | | | | | | * loc2c-test.c (handle_variable): Resolve through DW_TAG_const_type and DW_TAG_volatile_type typetags.
| * Remove needless string copyingJosh Stone2009-06-232-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | More fat-trimming optimization for ~7% off listing syscall.*. * dwflpp.cxx (dwflpp::iterate_over_functions): remove a parameter copy (dwflpp::module_name_matches): Use const string& parameters (dwflpp::name_has_wildcard): Ditto. (dwflpp::module_name_final_match): Ditto. (dwflpp::function_name_matches_pattern): Ditto. (dwflpp::function_name_matches): Ditto. (dwflpp::function_name_final_match): Ditto.
* | Have appropriate argument for bkl.stp built and run tests.William Cohen2009-06-241-2/+2
|/
* mention that process.* probes are limited to -c/-x hierarchy if givenFrank Ch. Eigler2009-06-231-1/+4
|
* Make blk.stp and blk_stats.stp executable.William Cohen2009-06-232-0/+0
|
* Add the bkl.stp and bkl_stats.stp examples.William Cohen2009-06-238-0/+228
|
* PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils (old)Mark Wielaard2009-06-231-0/+3
| | | | | | | | Really old versions of elfutils didn't have version.h, but we still want to support them. So add workaround also for that case. * dwflpp.h: Define elf_getshdrstrndx as elf_getshstrndx also for really old elfutils versions.
* PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils.Mark Wielaard2009-06-233-4/+11
| | | | | | | | * dwflpp.h: Check elfutils version, define elf_getshdrstrndx as elf_getshstrndx if elfutils 0.142 detected. * dwflpp.cxx (get_blacklist_section): Use elf_getshdrstrndx. * tapsets.cxx (probe_table): Likewise. (prepare_section_rejection): Likewise.
* Remove unused strlens from str_replaceJosh Stone2009-06-221-2/+0
|
* Testcase For str_replace()Varun Chandramohan2009-06-222-0/+39
| | | | | | | | | | | | This patch adds the test case needed for this function. I have added few tests. If required more can be added in future. As discussed in previous version, the testcase patch has been reverted to the original as the str_replace() functionality has changed wrt to error handle. Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* Add str_replace() To TapsetsVarun Chandramohan2009-06-221-0/+33
| | | | | | | | | | | | | | | | | | This patch adds a search and replace string functionality to existing tapsets. The functionality is as follows: The function takes in a parent string and searches for a substring as specified by the user. If substring not found, the parent string is returned. If substring is found, it is replaced by another string and returned. NOTE: The function will search and replace all the occurrence of substrings in a parent string when matched. Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* Merge commit 'origin'Josh Stone2009-06-222-1/+3
|\
| * Correct typo in forktracker.meta.William Cohen2009-06-221-1/+1
| |
| * Strip -o option suffixStan Cox2009-06-221-0/+2
| | | | | | | | dtrace: Strip the -o option suffix.
* | Bump up the default timeout for target_set testJosh Stone2009-06-221-0/+1
| | | | | | | | | | | | Starting the test with a cold cache can take easily longer than dejagnu's default 10 second timeout. I'm bumping it to 180 seconds, the same as in the stap_run library functions.
* | Add test for target_set tapset.Przemyslaw Pawelczyk2009-06-222-0/+83
|/ | | | Signed-off-by: Josh Stone <jistone@redhat.com>
* PR10308 Beginning of statement check should provide alternatives.Mark Wielaard2009-06-221-0/+2
| | | | tapsets.cxx (query_cu): Add suggested address if found to error message.
* PR10307 beginning of statement check should be overridden in guru mode.Mark Wielaard2009-06-221-1/+5
| | | | | | * tapsets.cxx (query_cu): When in guru mode just issue an warning (if not suppressed) instead of an error when address isn't at the beginning of a statement.
* Fix various issues in initscript (bz506956)Masami Hiramatsu2009-06-191-11/+23
| | | | | | | | * initscript/systemtap.in: Fix messages. (clog): Don't strip spaces out. (parse_args): Parse -y option. (status): Show message if no scripts are running. (restart): Don't try to stop scripts if no scripts are running.
* Fix on-file flight recorder mode bugs on old kernel.Masami Hiramatsu2009-06-194-35/+42
| | | | | | | | * runtime/staprun/common.c (make_outfile_name): Moved from relay.c, fix not to open /dev/null.XXX output files, and add 'bulk' argument for bulkmode. * runtime/staprun/relay.c (make_outfile_name): Moved to common.c. * runtime/staprun/relay_old.c (open_oldoutfile): Fix to use fopen() and store FILE * to percpu_tmpfile[cpu].
* Correctly find probes for -m32 executables.Stan Cox2009-06-192-10/+19
| | | | | | | * sdt.h (STAP_PROBE_DATA_): Pad with 0 so final probe entry doesn't pickup a stray word. * sdt_misc.exp (static_user_markers.{c,d}): Add bstruct to test struct type handling
* Merge branches 'master' and 'master' of ssh://sourceware.org/git/systemtapStan Cox2009-06-190-0/+0
|
* Merge branch 'master' of ssh://sourceware.org/git/systemtapStan Cox2009-06-1939-844/+1540
|\
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-06-192-0/+0
| |\
| | * Revert "Make examples-index-gen.pl executable."William Cohen2009-06-191-0/+0
| | | | | | | | | | | | This reverts commit 0c98234c86877cfea3df762dc8627b3f05c38e75.
| | * Make forktracker.stp example executable.William Cohen2009-06-191-0/+0
| | |
| * | Disabled transport version 3 (for now).David Smith2009-06-191-0/+6
| | |
| * | Merge commit 'origin/master' into pr7043David Smith2009-06-1912-16/+197
| |\|
| | * Make examples-index-gen.pl executable.William Cohen2009-06-191-0/+0
| | |
| | * Add froktracker.stp example.William Cohen2009-06-196-0/+69
| | |
| * | Cleanup.David Smith2009-06-183-56/+1
| | | | | | | | | | | | | | | | | | * runtime/print_old.c: Removed unneeded file. * runtime/print_flush.c: Renamed from print_new.c * runtime/print.c: Includes print_flush.c (instead of print_new.c).
| * | Transports now export their state.David Smith2009-06-185-17/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/transport/transport.h: Added prototype for _stp_transport_get_state(). * runtime/transport/relay_v2.c (_stp_transport_get_state): New function. * runtime/transport/relayfs.c (_stp_transport_get_state): Ditto. * runtime/transport/ring_buffer.c (_stp_transport_data_fs_init): Sets state. (_stp_transport_data_fs_start): Ditto. (_stp_transport_data_fs_stop): Ditto. (_stp_transport_get_state): Returns state. * runtime/print_new.c (stp_print_flush): Checks transport state before trying to flush.
| * | Moved global data into a single structure.David Smith2009-06-181-39/+45
| | |
| * | Removed unused code (and all references to 'utt').David Smith2009-06-181-52/+0
| | |
| * | Merge commit 'origin/master' into pr7043David Smith2009-06-182-9/+10
| |\ \
| * | | Enabled overwrite processing on original transports.David Smith2009-06-185-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/transport/relay_v2.c (_stp_transport_data_fs_overwrite): Renamed from stp_relay_set_overwrite(). * runtime/transport/relayfs.c (stp_relay_set_overwrite): Ditto. * runtime/transport/ring_buffer.c (_stp_transport_data_fs_overwrite): New place holder function. * runtime/transport/transport.c (_stp_detach): Calls _stp_transport_data_fs_overwrite(). (_stp_attach): Calls _stp_transport_data_fs_overwrite(). * runtime/transport/transport.h: Added prototype for _stp_transport_data_fs_overwrite().
| * | | Merge commit 'origin/master' into pr7043David Smith2009-06-186-51/+59
| |\ \ \
| * \ \ \ Merge commit 'origin/master' into pr7043David Smith2009-06-174-22/+35
| |\ \ \ \
| * \ \ \ \ Merge commit 'origin/master' into pr7043David Smith2009-06-1641-576/+1051
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/transport/transport.c
| * | | | | | Fixed non-bulkmode output on smp systems using transport version 2.David Smith2009-06-121-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/transport/relay_v2.c (__stp_relay_create_buf_file_callback): Set the 'is_global' return parameter so that smp systems work correctly.
| * | | | | | Merge commit 'origin/master' into pr7043David Smith2009-06-1183-8341/+18522
| |\ \ \ \ \ \
| * | | | | | | Fixed cut-and-paste error.David Smith2009-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder.c (__stp_call_mmap_callbacks_for_task): Fixed cut-and-paste error.
| * | | | | | | Avoid holding semaphore while making mmap callbacks.David Smith2009-06-091-52/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder.c (__stp_call_mmap_callbacks_for_task): Grabs the 'mmap_sem' sempaphore. Caches vma information, releases the semaphore, then makes mmap callbacks. (__stp_utrace_task_finder_target_quiesce): Calls __stp_call_mmap_callbacks_for_task() to make mmap callbacks on initial attach to a task.
| * | | | | | | Avoid 1 case of holding a semaphore while mmap callbacks are being made.David Smith2009-06-091-57/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/task_finder.c (__stp_call_mmap_callbacks_with_addr): Renamed from __stp_call_mmap_callbacks_with_vma(). Also added some code from __stp_utrace_task_finder_target_syscall_exit() that locks the 'mmap_sem' semaphore. This avoids holding the semaphore while the mmap callbacks are made. (__stp_utrace_task_finder_target_syscall_exit): Just calls __stp_call_mmap_callbacks_with_addr() in the mmap case.