summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix regression in tracepoint unregistrationJosh Stone2009-03-161-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | Commit 96b030fe reorganized the tracepoint registration calls by creating generic wrappers that return int. However, the older tracepoint implementation (as found in RHEL5.3) returned void for unreg, so this was failing pass-4. Since we can't handle unregistration failures anyway, this change just makes the generic unregister function return void instead. As noted in the newly-added comment, it should be safe for us to ignore unreg failures.
* | minor editsddomingo2009-03-171-38/+32
| |
* | working copy, still existing issues with Description headers, will work on ↵ddomingo2009-03-171-9/+11
| | | | | | | | it tom
* | minor editsddomingo2009-03-171-1/+1
| |
* | minor editsddomingo2009-03-176-21/+20
| |
* | working copyddomingo2009-03-171-1/+9
| |
* | further cleanup for formattingddomingo2009-03-171-4/+4
| |
* | further cleanup for formattingddomingo2009-03-171-21/+21
| |
* | minor editsddomingo2009-03-171-48/+22
| |
* | minor editsddomingo2009-03-171-1/+1
| |
* | almost done, output clean, just a few more improvementsddomingo2009-03-171-44/+62
|/
* Edit signal.stp documentation comments.William Cohen2009-03-161-69/+105
|
* Add workaround for dwfl_module_build_id bug with elfutils < 0.140.Mark Wielaard2009-03-161-7/+25
| | | | | * translate.cxx (dump_unwindsyms): Check elfutils version and whether build_id_vaddr < base, and if so add main_bias to address.
* almost done, script generates man pages of stapprobes based on what we add ↵ddomingo2009-03-161-0/+103
| | | | to Tapset_Reference_Guide
* minor edits to ensure uniformity in manpage generatorddomingo2009-03-161-4/+4
|
* minor editddomingo2009-03-161-4/+3
|
* minor editsddomingo2009-03-161-6/+6
|
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-6/+8
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-3/+5
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-3/+5
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-9/+11
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+4
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | tapsetdescription for man page generator (in development)
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | tapsetdescription for man page generator (in development)
* added description for memory tapsetddomingo2009-03-161-3/+7
|
* Move vma module tracking from pr6866 branch to master.Mark Wielaard2009-03-153-11/+45
| | | | | | | | | | | | * tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Always emit vm callback probe for __stp_tf_vm_cb. * runtime/task_finder.c (__stp_tf_vm_cb): Always expose, move _stp_dbug statements under ifdef DEBUG_TASK_FINDER_VMA. Find and record corresponding module when vm_path not NULL. * runtime/task_finder_vma.c (struct __stp_tf_vma_entry): Add _stp_module. (stap_add_vma_map_info): Add _stp_module argument and assign. (__stp_tf_get_vma_entry_addr): New static function to get the __stp_tf_vma_entry given an address.
* Fixups to allow Tapset_Reference_guide documentation to build.William Cohen2009-03-141-2/+14
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapWilliam Cohen2009-03-135-16/+41
|\
| * Move lookup_bad_addr call in STAPCONF_PROBE_KERNELJosh Stone2009-03-131-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With most of the implementations, kread/kwrite call deref/store_deref, and so it makes sense to have lookup_bad_addr in the latter as an underlying address check. However, in the STAPCONF_PROBE_KERNEL case that uses probe_kernel_read and probe_kernel_write, the roles are reversed, so lookup_bad_addr needs to be in kread/kwrite. Also note that __deref_bad and __store_deref_bad should only be used in cases that can be determined at compile time. These turn into invalid symbols which prevent the module from loading. (They might be better replaced with compile-time assertions.)
| * PR9947: move runtime cleanup out of the work queueJosh Stone2009-03-134-8/+35
| | | | | | | | | | | | | | | | | | | | | | | | The kernel lockdep checking found a possible deadlock if a forced rmmod tried to destroy _stp_work_queue at the same time that the work queue was unregistering tracepoints. An unlikely scenario, but still possible. Now the work queue will just issue a STP_REQUEST_EXIT down to usermode, and usermode will echo back an STP_EXIT that triggers the actual probe cleanup. This way the unregistrations are happening in exactly the same context as the registrations were.
* | Add missing </para>.William Cohen2009-03-131-1/+1
|/
* Add -ansi -pedantic pair to sdt test.Mark Wielaard2009-03-131-1/+1
| | | | | * testsuite/systemtap.base/sdt.exp: Add additional_flags -ansi together with -pedantic.
* Add -O2 and -O3 as extra test flags to sdt.Mark Wielaard2009-03-131-1/+1
| | | | * testsuite/systemtap.base/sdt.exp: Add -O2, -O3.
* Introduce stap_run3 for distinct test names.Mark Wielaard2009-03-132-8/+21
| | | | | * testsuite/lib/stap_run2.exp: Add stap_run3, called from stap_run2. * testsuite/systemtap.base/sdt.exp: Use stap_run3, for distinct test names.
* Simplify tracepoint registrationsJosh Stone2009-03-121-28/+43
| | | | | | | Instead of registering tracepoints with the deeply-nested if-tree, which was cluttering the module_init/exit, this now emits normalized reg/unreg functions for each tracepoint probes. Now the module_init/exit can be a simple loop like all of the other probe types.
* Add test to compile and run all tracepointsJosh Stone2009-03-112-0/+26
| | | | | | | | | This checks that kernel.trace("*") will compile, with all context variables accessed as well. For kernels without tracepoints, it will just hit a "begin" and quit. This doesn't ensure that kernel.trace("*") will always find something when it should, though...
* Fix @cast module splittingJosh Stone2009-03-111-1/+1
| | | | | | The new semok testcase exposed that the module splitting wasn't properly setting substr boundaries. Instead of passing the end position, it's supposed to pass the number of characters (end - begin). Oops.
* Add simple testcases for @castJosh Stone2009-03-113-0/+39
|
* improve sdt.h compatibility and test suiteFrank Ch. Eigler2009-03-113-31/+36
| | | | | | Replaced cpp VA_ARGS in sdt.h with explicit enumeration of arguments (since with -pedantic, cpp has no varargs), and added a few more cflags variants to the sdt.exp test case.
* PR 7071: Optional $context variables fixRajan Arora2009-03-116-12/+50
| | | | | | | | | | | | | | | | * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Substitute erroneous target symbol with literal 0 if session level flag, skip_badvars is set. * session.h (struct systemtap_session): New flag: skip_badvars. * main.cxx: Command line argument --skip-badvars added. * stap.1.in: Entry for new option --skip-badvars. * NEWS: Added blurb for new option now available. * testsuite/semok/badvar.stp: Test case to check added functionality.
* Run the tests for each member of a list of extra options.Stan Cox2009-03-111-1/+30
| | | | * testsuite/systemtap.base/sdt.h: Add extra_flags and g++ as a test language.
* 2009-03-11 Dave Brolley <brolley@redhat.com>Dave Brolley2009-03-112-20/+51
| | | | | | | | | | | | PR 9936 * stap-find-servers (configuration): Set timeout to 10 seconds. (find_servers): Run avahi-browse in the background and wait for $timeout seconds for it to finish. Kill it if it does not finish. Use a temp file for avahi-browse output. (match_server): Use -t $timeout on read commands. * stap-start-server: Check for $server_pid as a running process and for avahi-publish-service running as a child of $server_pid in order to confirm that the server is running.
* Make marker probe support listing mode -LWenji Huang2009-03-101-0/+22
| | | | | | | | | | | | | | | | This patch is to enable displaying the arguments of marker probe for listing mode -L. The output is like, $stap -L 'kernel.mark("*")' kernel.mark("core_marker_format").format("name %s format %s") $arg1:string $arg2:string kernel.mark("jbd2_checkpoint").format("dev %s need_checkpoint %d") $arg1:string $arg2:long kernel.mark("jbd2_end_commit").format("dev %s transaction %d head %d") $arg1:string $arg2:long $arg3:long kernel.mark("jbd2_start_commit").format("dev %s transaction %d") $arg1:string $arg2:long Note: It's also possible to figure out the arguments according to the format. Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
* Make tracepoint probe support listing mode -LWenji Huang2009-03-103-1/+13
| | | | | | | | | | | | | | This patch is to enable displaying arguments of tracepoint probe in listing mode -L. The example output is like $stap -L 'kernel.trace("block_bio*")' kernel.trace("block_bio_bounce") $q:struct request_queue* $bio:struct bio* kernel.trace("block_bio_backmerge") $q:struct request_queue* $bio:struct bio* kernel.trace("block_bio_complete") $q:struct request_queue* $bio:struct bio* kernel.trace("block_bio_queue") $q:struct request_queue* $bio:struct bio* kernel.trace("block_bio_frontmerge") $q:struct request_queue* $bio:struct bio* Signed-off-by: Wenji Huang <wenji.huang@oracle.com>