summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't print pid in flightrec5.exp test.Mark Wielaard2009-09-171-1/+0
|
* Fix compilation error of dwflpp.cxx on gcc 4.1Wenji Huang2009-09-171-2/+3
| | | | | * dwflpp.cxx(translate_location): Separate setting value from declaration and add missing parameter.
* Merge branch 'function_scopes'Josh Stone2009-09-163-74/+162
|\
| * PR10461: Match C++ scopes for namespaces and classesJosh Stone2009-09-163-71/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function spec for dwarf probes now supports scopes, so you can limit the probes to specific namespaces or classes. Multiple scopes can be specified, and they will be matched progressively outward. probe process("foo").function("std::vector<*>::*") { ... } probe process("foo").function("::global_function") { ... } * dwflpp.cxx (dwflpp::get_parent_scope): New, finds the containing scopes of the specified DIE. (dwflpp::function_scope_matches): New, checks that the scopes containing the function all match the given scope patterns. * tapsets.cxx (dwarf_query::parse_function_spec): Rewrite, now handles multiple scope separators too. (query_dwarf_func): Check that the functions scopes match.
| * Remove the unused function_name_final_matchJosh Stone2009-09-162-8/+0
| | | | | | | | * dwflpp.cxx (dwflpp::function_name_final_match): Removed.
* | PR10650: markup some unprivileged-safe tapset functionsFrank Ch. Eigler2009-09-1611-63/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add /* unprivileged */ to a variety of tapset embedded-c functions, together with uid-assertion-checking code as needed. This is only an initial set, and may need to grow or shrink after further testing. Prototyped-By: Dave Brolley <brolley@redhat.com> * runtime/runtime.h (is_myproc, assert_is_myproc): New macros. * runtime/addr-map.c (lookup_bad_addr): Reject if !is_myproc in unprivileged mode. * runtime/print.c (_stp_print_kernel_info): Add unprivileged mode info. * tapset/DEVGUIDE: Document /* pure */ and /* unprivileged */. * tapset/*.stp: Add /* unprivileged */ here and there, in questionable cases along with an assert_is_myproc().
* | * sdt.h (STAP_SEMAPHORE): New. Add guard to utrace probe points.Stan Cox2009-09-168-74/+232
|/ | | | | | | | | | | | | | * itrace.h (__access_process_vm): Moved from here... * runtime/access_process_vm.h: New. ...to here. * translate.cxx (translate_pass): Include access_process_vm.h * session.h (sdt_semaphore_addr): New. * tapsets.cxx (sdt_query::record_semaphore): New. Record sdt_semaphore_addr. (uprobe_derived_probe_group::emit_module_decls): Allow for uprobe guard variable to be set and unset. (uprobe_derived_probe_group::emit_module_decls): Likewise. (uprobe_derived_probe_group::emit_module_exit): Likewise. * tapset-utrace.cxx (utrace_derived_probe_group::emit_probe_decl): Likewise. (utrace_derived_probe_group::emit_module_decls): Likewise. (utrace_derived_probe_group::emit_module_exit): Likewise.
* Merge branch 'master' of sourceware.org:/git/systemtapJosh Stone2009-09-168-37/+297
|\
| * Handle DW_TAG_reference_type in loc2c-test.Roland McGrath2009-09-161-0/+1
| | | | | | | | * loc2c-test.c (handle_variable): Handle DW_TAG_reference_type.
| * Add signal based file switching testcaseMasami Hiramatsu2009-09-163-1/+131
| | | | | | | | | | | | | | | | * testsuite/systemtap.base/flightrec1.exp: Add signal file switching testcase. * testsuite/systemtap.base/flightrec4.exp: New test for signal file switching with file number limits. * testsuite/systemtap.base/flightrec5.exp: New test for signal file switching with file number limits on bulk mode.
| * Signal-based file switching support for old relayMasami Hiramatsu2009-09-161-14/+68
| | | | | | | | | | | | | | | | | | | | | | * runtime/staprun/relay_old.c (switch_oldoutfile): New function for file switching. (process_subbufs): Use switch_oldoutfile. (reader_thread): Use ppoll() instead of poll() for receiving SIGUSR2 and switch output file when receiving a signal(SIGUSR2). (switchfile_handler): Send SIGUSR2 signal to reader threads for file switching. (init_oldrelayfs): Assign switchfile_handler to SIGUSR2.
| * Signal-based file switching support for relay/ring buffer.Masami Hiramatsu2009-09-163-22/+97
| | | | | | | | | | | | | | | | | | | | * runtime/staprun/relay.c (switch_outfile): New function for file switching. (reader_thread): Don't assign empty_handler to SIGUSR2, and switch output file when receiving signal(SIGUSR2) on ppoll. (switchfile_handler): Send SIGUSR2 signal to reader threads for file switching. (init_relayfs): Assign switchfile_handler to SIGUSR2. * staprun.1.in: Add FILE SWITCHING BY SIGNAL section.
* | Add the badname.stp exampleJosh Stone2009-09-166-1/+82
| | | | | | | | | | This is a toy script I wrote a while back to demonstrate how SystemTap could be used to enforce filesystem naming rules.
* | Add syscall probe information to Language ReferenceRobb Romans2009-09-161-0/+36
| | | | | | | | | | Signed-off-by: Robb Romans <robb@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* | Add tracepoint information to Language ReferenceRobb Romans2009-09-161-0/+33
| | | | | | | | | | Signed-off-by: Robb Romans <robb@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* | Add PROCFS information to Language ReferenceRobb Romans2009-09-161-0/+42
| | | | | | | | | | Signed-off-by: Robb Romans <robb@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* | Spelling fixes in the tapsetsJosh Stone2009-09-1610-35/+34
| |
* | Spelling fixes in the init scriptJosh Stone2009-09-161-6/+6
| |
* | Spelling fixes in the meta of many examplesJosh Stone2009-09-1616-80/+80
| |
* | Fix the old networking buildok testJosh Stone2009-09-161-1/+1
| |
* | A basic test to assure that networking tapset is building okBreno Leitao2009-09-161-0/+47
| | | | | | | | | | | | | | | | | | | | This is a basic script to assure that the network devices tapset is building (-p4) properly. This script is basically a copy of another netdev example that is located on testsuite/systemtap.examples/network/netdev.stp Signed-off-by: Josh Stone <jistone@redhat.com>
* | Add meta for the netdev example & regenerate indexesJosh Stone2009-09-165-1/+59
| |
* | A network device exampleBreno Leitao2009-09-161-0/+58
| | | | | | | | | | | | | | | | Add a example that cover the network device tapset. This example just add simple probes and display what is going one with all the network devices. Signed-off-by: Josh Stone <jistone@redhat.com>
* | Adding a some new probes to the networking.stp tapsetBreno Leitao2009-09-161-0/+177
|/ | | | | | | | A tapset that helps those who are working with network devices. These new fnctions try to cover almost all functions related to these network devices. Signed-off-by: Josh Stone <jistone@redhat.com>
* Initialize CairoWidget origin of graphTim Moore2009-09-163-4/+8
| | | | | | | * grapher/Graph.hxx (Graph constructor): add origin arguments * grapher/Graph.cxx: ditto * grapher/GraphWidget.cxx (on_expose_event): Use CairoWidget origin to position graphs.
* Fix graph attribute parsing bugletTim Moore2009-09-161-2/+2
| | | | | * grapher/StapParser.cxx (findTaggedValue): Extract value substring after tag.
* Draw graphs inside a scrolled windowTim Moore2009-09-161-2/+5
| | | | | * grapher/grapher.cxx (GrapherWindow, GrapherWindow constructor): Add ScrolledWindow object and display it. Make GraphWidget its child.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-09-16116-5396/+5045
|\
| * Make labels -l .label test independent of list output order.Mark Wielaard2009-09-161-2/+9
| | | | | | | | | | * testsuite/systemtap.base/labels.exp (-l .label): List all output lines individually in expect regex.
| * Clean up dwflpp::translate_location workaround for DW_AT_data_member_location.Mark Wielaard2009-09-163-53/+11
| | | | | | | | | | | | | | | | | | | | | | Do the same workaround as loc2c-test.c does. Just treat a constant member location offset as a DW_OP_plus_uconst and call c_translate_location for it. Also Remove c_translate_add_offset. * dwflpp.cxx (dwflpp::translate_location): Check elfutils version and only do workaround for elfutils < 0.142. * loc2c.h (c_translate_add_offset): Removed. * loc2c.c (c_translate_add_offset): Likewise.
| * Clean up loc2c-test workaround for constant DW_AT_data_member_location.Roland McGrath2009-09-161-27/+17
| | | | | | | | | | | | * loc2c-test.c (handle_variable): Skip the workaround for elfutils 0.142. When doing it, use a synthetic location expression. Never use c_translate_add_offset, which is broken.
| * Remove function comparison from label iterationJosh Stone2009-09-153-33/+37
| | | | | | | | | | | | | | | | | | | | | | We already have filtered functions and inlines, so just iterate in each of those to look for labels. * dwflpp.cxx (dwflpp::iterate_over_labels): Assume that the die we're looking at is already a matching function, and don't descend into inlined functions in this body. * tapsets.cxx (query_srcfile_label): Iterate through inlines too. (query_cu): Iterate over functions and inlines instead of the CU.
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapFrank Ch. Eigler2009-09-1587-5025/+4420
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: (34 commits) Update the langref copyright notice Fix some probe examples in the language reference Remove automatic authorization of servers started by root as trusted signers. docs: add abnormal termination section to PROCESSING Remove unneeded header file Get the module to sign from -p4's stdout Move --unprivileged support news to the top. Firther updates to NEWS regarding signing and unprivileged users. Authorize new certificates created for servers started by root as authorized signers. 2009-09-14 Dave Brolley <brolley@redhat.com> Allow remaining process.* probes for unprivileged users. Use the sched_switch tracepoint if available. PR10608: mark test cases untested once compilation failed Make check.exp not sleep so much in test_installcheck. Make tracepoints.exp test more efficient by running as one giant script. Only test highest optimization for exelib.exp test. Replace small exelib.exp testcases with one jumbo testcase. Remove duplicate uprobe_derived_probe code Add semaphores for use with the forthcoming sdt marker checks. Add actual pc address to semantic error about inaccessible variables. ... Conflicts: tapsets.cxx
| | * Update the langref copyright noticeJosh Stone2009-09-151-1/+1
| | |
| | * Fix some probe examples in the language referenceJosh Stone2009-09-151-7/+6
| | | | | | | | | | | | | | | | | | | | | * doc/langref.tex (section{Components of a SystemTap script}): Use .call/.return for the example of tracing function entry/exit. Also mention "-l" for listing probeable functions. (subsection{Embedded C functions}): Close the examples with '%}'.
| | * Remove automatic authorization of servers started by root as trusted signers.Dave Brolley2009-09-151-5/+0
| | |
| | * docs: add abnormal termination section to PROCESSINGFrank Ch. Eigler2009-09-151-2/+11
| | |
| | * Remove unneeded header fileWenji Huang2009-09-151-1/+0
| | | | | | | | | | | | * modsign.cxx: Remove including session.h.
| | * Get the module to sign from -p4's stdoutJosh Stone2009-09-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The saved stdout should have the exact name of the generated module, which is better than using a recursive find to locate it. Tracepoints and @cast may generate additional .ko's which we don't want to confuse with the real deal. * stap-server (create_response): grep stdout for the module name.
| | * Move --unprivileged support news to the top.Dave Brolley2009-09-141-27/+27
| | |
| | * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-09-14100-693/+1363
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: aclocal.m4 configure doc/SystemTap_Tapset_Reference/Makefile.in testsuite/aclocal.m4 testsuite/configure
| | | * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-09-1486-4818/+3445
| | | |\
| | | | * Use the sched_switch tracepoint if available.William Cohen2009-09-141-3/+3
| | | | |
| | | | * PR10608: mark test cases untested once compilation failedWenji Huang2009-09-143-30/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.syscall/syscall.exp: Simplify logic things. * testsuite/systemtap.syscall/test.tcl: Check compilation result. * testsuite/systemtap.base/utrace_syscall_args.exp: Change fail to untested.
| | | | * Make check.exp not sleep so much in test_installcheck.Mark Wielaard2009-09-1348-48/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of time during the installcheck was spend just sleeping. Reduce the sleep time by at least one fifth. * testsuite/systemtap.examples/*/*meta: Reduct -c "sleep" time.
| | | | * Make tracepoints.exp test more efficient by running as one giant script.Mark Wielaard2009-09-131-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there are lots of tracepoints in the kernel running a script for each one individually can take several minutes. So run them all in one giant script at the same time. Also increase timeout for the stap -l collection step since with an empty cache that might take more than the default 10 seconds. * testsuite/systemtap.base/tracepoints.exp: Increase default timeout. Collect all script fragments and run them as one.
| | | | * Only test highest optimization for exelib.exp test.Mark Wielaard2009-09-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is not much to gain from testing low and high optimized programs. So only test highest optimization level. Half test time from 200 to 100 sec. * testsuite/systemtap.exelib/exelib.exp: Set opt to list containing just -O3.
| | | | * Replace small exelib.exp testcases with one jumbo testcase.Mark Wielaard2009-09-133-1/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge lib, mark, uname and ustack stp and tcl scripts into one large libmarkunamestack stp and tcl script. But keep the individual tests in case the large test fails and one wants to debug the individual steps. Takes test time for exelib.exp down from 700 seconds to 200 seconds. * testsuite/systemtap.exelib/libmarkunamestack.stp: New large stp script. * testsuite/systemtap.exelib/libmarkunamestack.tcl: New large tcl script. * testsuite/systemtap.exelib/exelib.exp: Use libmarkunamestack.
| | | | * Remove duplicate uprobe_derived_probe codeJosh Stone2009-09-111-219/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Much of uprobe_derived_probe is a straight copy of dwarf_derived_probe, and some of the comments even acknowledge this. I'm instead making this an inheritance, so the duplication can be chopped away. * tapsets.cxx (struct dwarf_derived_probe): Reorganize for inheritance. (dwarf_derived_probe::dwarf_derived_probe): Adapt to handle process. (struct uprobe_derived_probe): Inherit from dwarf_derived_probe and remove duplicate members and methods. (uprobe_derived_probe::emit_module_decls): Member name changes.
| | | | * 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.