summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | Don't use stack fallback for user space unwinding when using dwarf unwinder.Mark Wielaard2009-04-212-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It never seems to be anywhere near correct. * runtime/stack-i386.c (__stp_stack_print): Stop unwinding when dwarf unwinder fails and we are unwinding user space task. * runtime/stack-x86_64.c (__stp_stack_print): Likewise.
| | * | | | Remove old _stp_ustack bits.Mark Wielaard2009-04-211-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code was never used, nor did it actually work. * runtime/stack.c (_stp_ustack_print): Removed.
| | * | | | Pass task from tapset, through stack and unwind functions for lookup.Mark Wielaard2009-04-209-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/stack-arm.c (__stp_stack_print): Take struct task_struct *. * runtime/stack-ia64.c (__stp_stack_print): Likewise. * runtime/stack-ppc64.c (__stp_stack_print): Likewise. * runtime/stack-s390.c (__stp_stack_print): Likewise. * runtime/stack-i386.c (__stp_stack_print): Likewise. And add check and pass to unwind() and _stp_func_print(). * runtime/stack-x86_64.c: Likewise. * runtime/stack.c *_stp_stack_print): Take and pass on task_struct. (_stp_stack_snprint): Likewise. * runtime/unwind.c (unwind): Take and use task_struct for _stp_mod_sec_lookup(). * tapset/context-unwind.stp (print_backtrace): Pass NULL to _stp_stack_print(). (backtrace): Pass NULL to _stp_stack_snprint().
| | * | | | Add comment to try -d kernel -d systemtap_test_module1 on backtrace.tcl test.Mark Wielaard2009-04-201-0/+1
| | | | | |
| | * | | | Pass task to _stp_func_print and _stp_kallsyms_lookup.Mark Wielaard2009-04-194-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/sym.c (_stp_func_print): Take task, pass to _stp_kallsyms_lookup. * runtime/stack.c (print_stack_address): Pass NULL. * runtime/stack-i386.c (_stp_stack_print_fallback): Pass NULL. (__stp_stack_print): Pass NULL or current. * runtime/stack-x86_64.c (_stp_stack_print_fallback): Pass NULL. (__stp_stack_print): Pass current.
| | * | | | Handle .absolute and .dynamic (user space) addresses in adjustStartLoc.Mark Wielaard2009-04-191-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * runtime/unwind.c (adjustStartLoc): .absolute sections don't need adjustment, .dynamic sections need the section addr to be added.
| * | | | | Updated utrace tests.David Smith2009-04-2111-32/+8
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-21 David Smith <dsmith@redhat.com> * testsuite/semok/utrace01.stp: New test. * testsuite/parseko/utrace01.stp: Updated test. * testsuite/semko/utrace03.stp: Ditto. * testsuite/semko/utrace04.stp: Ditto. * testsuite/semko/utrace01.stp: Deleted unneeded test. * testsuite/semko/utrace08.stp: Ditto. * testsuite/semko/utrace09.stp: Ditto. * testsuite/semko/utrace10.stp: Ditto. * testsuite/semko/utrace11.stp: Ditto. * testsuite/semko/utrace12.stp: Ditto. * testsuite/semko/utrace13.stp: Ditto.
* | | | | 2009-04-22 Dave Brolley <brolley@redhat.com>Dave Brolley2009-04-223-49/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elaborate.h (unprivileged_whitelist): Removed. (unprivileged_ok): New member of match_node. (allow_unprivileged,unprivileged_allowed): New methods of match_node. * elaborate.cxx (match_node): Initialize unprivileged_ok. Remove initialization of unprivileged_whitelist. (allow_unprivileged,unprivileged_allowed): New methods of match_node. (matchnode::find_and_build): Remove check of unprivileged_whitelist. Call unprivileged_allowed. * tapsets.cxx (dwarf_derived_probe::register_function_and_statement_variants): New parameter: unprivileged_ok. (dwarf_derived_probe::register_function_variants): Likewise. (dwarf_derived_probe::register_statement_variants): Likeiwse. (register_standard_tapsets): Call allow_unprivileged for nodes which are safe for unprivileged users.
* | | | | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-04-2130-59/+1263
|\| | | |
| * | | | Correctly handle $syscall in process(PID_OR_PATH).syscall.return probes.David Smith2009-04-212-5/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-21 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe::utrace_derived_probe): If during target-variable-expanding the probe, we added a new block or probe, add them. (utrace_var_expanding_visitor::visit_target_symbol_cached): New function to cache target variables in a generated syscall probe to use in syscall.return probes. (utrace_var_expanding_visitor::visit_target_symbol_context): In a syscall.return probe, you can't access $syscall. So use visit_target_symbol_cached() to cache the value for use here. * testsuite/systemtap.base/utrace_syscall_args.stp: Test use of $syscall in syscall.return probes.
| * | | | Add testcases for kprobe.function familyAnanth N Mavinakayanahalli2009-04-212-0/+23
| | | | |
| * | | | Documentation updates for kprobe.function familyAnanth N Mavinakayanahalli2009-04-212-0/+41
| | | | |
| * | | | From Prerna Saxena: Add the kprobe.function probe familyAnanth N Mavinakayanahalli2009-04-213-2/+463
| | | | |
| * | | | Make latencytap.stp compile on i386.Mark Wielaard2009-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Still needs a .meta file to catch any breakage in the future. * testsuite/systemtap.examples/profiling/latencytap.stp (task_backtrace): Cast task to unsigned long first.
| * | | | Suppress more module-loading errors in @castsJosh Stone2009-04-201-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Commit 462c90c3 did this for user modules, but it's needed for kernel modules too.
| * | | | Merge branch 'cast_header'Josh Stone2009-04-209-5/+192
| |\ \ \ \
| | * | | | Add tests for @cast-generated modulesJosh Stone2009-04-203-2/+29
| | | | | |
| | * | | | Cleanup typequery user modules from the cache tooJosh Stone2009-04-201-2/+16
| | | | | |
| | * | | | PR10055: generate dummy modules w/ types for @castJosh Stone2009-04-201-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The module field in @cast can now also be "kmod<path/to/header.h>" or "umod<path/to/header.h>" to generate a kernel or user module which includes the specified header. The appropriate compiler flags are used to save all possible type debuginfo from the header.
| | * | | | Suppress module-loading errors in @castsJosh Stone2009-04-201-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a @cast encounters a module that it can't load, it should just go on to the next module instead of throwing an exception. If there is no next module, we'll get a better "type not found" exception anyway.
| | * | | | Add a function to hash typequery modulesJosh Stone2009-04-202-0/+22
| | | | | |
| | * | | | Add functions to build umod & kmod typequeryJosh Stone2009-04-172-0/+59
| | | | | |
| * | | | | PR10078: uretprobes on functions returning structs/unionsJim Keniston2009-04-206-3/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arch_predict_sp_at_ret() for x86_32 now accommodates ret $4. Added bz10078 regression test.
| * | | | | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-04-2032-54/+2102
| |\ \ \ \ \
| | * | | | | Have appropriate types and cast to allow compilation on RHEL-5.William Cohen2009-04-201-4/+4
| | | | | | |
| | * | | | | fix a bug with %% in format stringsTim Moore2009-04-204-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * translate.cxx (c_unparser::visit_print_format): Always use _stp_printf if a format string contains "%%". Previously a format string with no arguments would always be printed with _stp_print. * testsuite/systemtap.printf/basic6.stp: New test for %% in format strings. * testsuite/systemtap.printf/basic6.exp: test driver * testsuite/systemtap.examples/grapher.stp: Remove workaround for "%%" literal problem.
| * | | | | | Uses upstream ia64 syscall functions.David Smith2009-04-202-30/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-20 David Smith <dsmith@redhat.com> * runtime/syscall.h (syscall_get_nr): Uses upstream version of syscall_get_nr() for ia64. (syscall_get_arguments): Ditto. (in_syscall): New ia64-only function from upstream. (syscall_get_set_args_cb): Ditto. (ia64_syscall_get_set_arguments): Ditto. * runtime/task_finder.c (stap_register_task_finder_target): Removed ia64 register cache.
* | | | | | | Merge branch 'master' of git://sources.redhat.com/git/systemtapDave Brolley2009-04-2139-115/+2699
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: aclocal.m4 configure
| * | | | | | results of autoreconf after merge of grapherTim Moore2009-04-201-2/+2
| | | | | | |
| * | | | | | Merge branch 'timoore/grapher'Tim Moore2009-04-2016-4/+1569
| |\ \ \ \ \ \
| | * | | | | | Finish moving grapher into a subdirectoryTim Moore2009-04-2012-8772/+451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (GRAPHER): Configuration prefix for variables defined by PKG_CHECK_MODULES macro. (BUILD_GRAPHER): New conditional variable (enable-grapher): New option (AC_CONFIG_FILES): Add grapher/Makefile * Makefile.am (SUBDIRS): Add grapher * grapher/Makefile.am: New file
| | * | | | | | Move grapher to subdirectoryTim Moore2009-04-2018-473/+9223
| | | | | | | |
| | * | | | | | graphing widget and test harnessTim Moore2009-04-1514-4/+1140
| | | | | | | |
| * | | | | | | Add run-staprun to .gitignore.Mark Wielaard2009-04-191-0/+1
| | |_|_|/ / / | |/| | | | |
| * | | | | | Micro-optimization: no-modules translate pass 3 case.Mark Wielaard2009-04-191-8/+22
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Saves 250ms in the unlikely case there are no modules needed. * translate.cxx (emit_symbol_data_done): New function. (emit_symbol_data): Call emit_symbol_data_done immediately when no module data is needed.
| * | | | | Remove module boilerplate from tracequeryJosh Stone2009-04-171-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel modules will actually build just fine with none of the module boilerplate code. We don't care about ever actually loading the tracequery module that we make, so don't bother emitting code we don't need.
| * | | | | Merge branch 'master' of git+ssh://sources.redhat.com/git/systemtapKent Sebastian2009-04-176-1/+109
| |\ \ \ \ \
| | * | | | | Make dropwatch.stp executable and have correct interpreter.William Cohen2009-04-171-1/+1
| | | | | | |
| | * | | | | Add dropwatch.stp example.William Cohen2009-04-176-1/+109
| | | | | | |
| * | | | | | PR10082: add environment variable to pass -r RELEASE/PATH optionKent Sebastian2009-04-173-2/+41
| |/ / / / /
| * | / / / PR7072: use _stp_reserve_bytes for printf bufferKent Sebastian2009-04-172-33/+350
| | |/ / / | |/| | |
| * | | | Added new utrace syscall argument test.David Smith2009-04-173-0/+515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-17 David Smith <dsmith@redhat.com> * systemtap.base/utrace_syscall_args.c: New test file. * systemtap.base/utrace_syscall_args.exp: New test file. * systemtap.base/utrace_syscall_args.stp: New test file.
| * | | | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-04-175-45/+44
| |\ \ \ \
| | * | | | Output probe calling sequence commentStan Cox2009-04-172-14/+3
| | | | | | | | | | | | | | | | | | | | | | | | * dtrace: Output probe calling sequence comment
| | * | | | Keep up with tracepoint changes in kernel-tipJosh Stone2009-04-161-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Define TRACE_HEADER_MULTI_READ to allow re-pulling headers that were already included indirectly elsewhere. - Some tracepoint headers were moved down to include/trace/events/, so add that to our glob paths. - Add ftrace.h as a header that we should never include.
| | * | | | Privatize MAX_STACK_DEPTHJosh Stone2009-04-162-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kernel-tip tree also has a MAX_STACK_DEPTH defined in perf_counter.h, so we need to separate our definition. I've changed the definition in our unwinder to STP_MAX_STACK_DEPTH.
| | * | | | Handle dtrace no argument macro case specially.Stan Cox2009-04-161-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | * dtrace: No argument case is DTRACE_PROBE/STAP_PROBE.
| | * | | | Simplify dtrace.Stan Cox2009-04-161-25/+16
| | | | | | | | | | | | | | | | | | | | | | | | * dtrace: Simplify the macro generator.
| * | | | | Avoid sign extension in syscall return values.David Smith2009-04-171-9/+15
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-17 David Smith <dsmith@redhat.com> * tapset/utrace.stp: Cast the return value of syscall_get_return_value() to an unsigned long to avoid sign extension.
| * | | | Improved ppc and ia64 runtime/syscall.h.David Smith2009-04-161-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-04-16 David Smith <dsmith@redhat.com> * syscall.h (syscall_get_arguments): Fixed sign extension for 32-bit processes on ppc64. (__ia64_syscall_get_arguments): Calls ia64_fetch_register() to handle NULL values. Corrected register numbers.