summaryrefslogtreecommitdiffstats
path: root/runtime/stack.c
Commit message (Collapse)AuthorAgeFilesLines
* stap autoconf test for kernel stack trace supportTim Moore2009-03-041-4/+3
| | | | | | | | | | * buildrun.cxx (compile_pass): Add autoconf line for stack trace test, which defines STAPCONF_KERNEL_STACKTRACE. * runtime/autoconf-save-stack-trace.c: New file. * runtime/stack.c : Use STAPCONF_KERNEL_STACKTRACE instead of tests for kernel configuration and versions. * runtime/stack-i386.c : ditto * runtime/stack-x86_64.c : ditto
* PR9866 band-aid: deactivate new CONFIG_STACKTRACE code for older kernelsFrank Ch. Eigler2009-02-181-3/+4
|
* Fixed stack.c compile problems on systems with older kernels (like RHEL4).David Smith2009-02-131-0/+2
| | | | | | | 2009-02-13 David Smith <dsmith@redhat.com> * stack.c: Fixed compile problems on systems with older kernels (like RHEL4).
* Use kernel stack backtrace support when availableTim Moore2009-02-111-0/+87
| | | | | Define new functions that use the kernel support to do a backtrace of other tasks than current.
* Use 'static' as much as possibleJosh Stone2009-01-281-3/+3
| | | | | | | | | | This change just inserts 'static' on runtime, tapset, and generated C functions and globals, so the compiler can do a better job of optimizing. My tests with small scripts show ~10% reduction in compile time and ~20% reduction in module size. Larger scripts may show less benefit, but I expect purely positive results.
* 2.6.25 fixes and stack level limits.Martin Hunt2008-04-151-4/+4
|
* dded _stp_read_address() and changed code to use it.Martin Hunt2008-03-281-1/+1
|
* kretprobe trampoline fixesMartin Hunt2008-03-281-10/+12
| | | | | Recognize when a kretprobe trampoline was hit and continue with inexact stack dump. Also some testsuite changes.
* rebased unwind_branch on top of current masterFrank Ch. Eigler2008-03-251-1/+2
|
* 2007-08-20 Martin Hunt <hunt@redhat.com>hunt2007-08-201-25/+0
| | | | * stack.c (_stp_kta): Removed.
* 2007-05-30 Martin Hunt <hunt@redhat.com>hunt2007-05-301-0/+2
| | | | | | | | | | | | Patch from Quentin Barnes. * arith.c: Add arm support for 64-bit division. * copy.c: Enable arm support. * loc2c-runtime.h: Ditto. * regs.[ch]: Ditto. * stack.c: Include stack-arm.c. * stack-arm.c: New file. * time.c (_stp_gettimeofday_ns): hack for arm. See PR 4569.
* 2007-05-15 Martin Hunt <hunt@redhat.com>hunt2007-05-161-3/+3
| | | | | * vsprintf.c: Add comment about %p. * regs.c, stack*.c, sym.c: Fix %p calls.
* 2007-03-18 Martin Hunt <hunt@redhat.com>hunt2007-03-181-1/+1
| | | | | * stack.c, string.c, sym.c, transport/symbols.c: Fix some signed vs unsigned comparison warnings.
* 2007-02-07 Martin Hunt <hunt@redhat.com>hunt2007-02-071-0/+2
| | | | | | | * stack-ppc64.c (__stp_stack_print): Remove an old reference to the string length and instead limit backtraces to MAXBACKTRACE. * stack.c: Define MAXBACKTRACE
* 2007-01-31 Martin Hunt <hunt@redhat.com>hunt2007-01-311-55/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * string.c (_stp_string_init): Deleted. (_stp_sprintf): Deleted. (_stp_vsprintf): Deleted. (_stp_string_cat_cstr): Deleted. (_stp_string_cat_string): Deleted. (_stp_string_cat_char): Deleted. (_stp_string_ptr): Deleted. (_stp_string_cat): Deleted. (_stp_snprintf): Moved from vsprintf.c. (_stp_vscnprintf): Moved from vsprintf.c. * string.h (STP_STRING_SIZE): Deleted. (STP_NUM_STRINGS): Deleted. Remove all references to type "String". * vsprintf.c (_stp_vscnprintf): Moved to string.c. (_stp_snprintf): Moved to string.c * sym.c (_stp_symbol_sprint): Replaced with _stp_symbol_print, which writes to the print buffer. (_stp_symbol_sprint_basic): Replaced with _stp_symbol_snprint. * runtime.h: Include io.c. * stat-common.c: Use new _stp_print* functions. * stat.c: Ditto. * regs.c: Renamed to regs-ia64.c. * current.c: Renamed regs.c. * regs-ia64.c: New file (renamed from regs.c). * stack.c (_stp_stack_sprint): Renamed _stp_stack_print and now just prints to the print buffer. Calls __stp_stack_print instead of __stp_stack_sprint. (_stp_stack_snprint): New function. Calls _stp_stack_print and then copies the print buffer into a string. (_stp_stack_printj): Deleted. (_stp_ustack_sprint): Deleted. * stack-*.c: Rewritten to print instead of writing to strings. Uses new _stp_print* functions. * print.c (_stp_printf): Create new function instead of macro. (_stp_print): Ditto. (_stp_print_char): New function. * map.c: Use _stp_print() and _stp_print_char() instead of _stp_print_cstr(). * io.c (_stp_vlog): Use _stp_print() instead of _stp_string_cat_cstr(). * copy.c (_stp_string_from_user): Deleted.
* Adding s390x supportdwilder2006-10-191-0/+2
|
* Fix comment.hunt2006-10-121-6/+0
|
* 2006-10-12 Martin Hunt <hunt@redhat.com>hunt2006-10-121-196/+40
| | | | | | | | | | | | | | | * stack.c: Reorganize and split arch-specific functions to separate files. (_stp_kta): Better checking. (_stp_stack_sprint): Better handling of return probes. * stack-i386.c: New file. Uses 2.6.18 DWARF unwinder if available. * stack-x86_64.c: New file. Uses 2.6.18 DWARF unwinder if available. * stack-ppc64.c: New file. * stack-ia64.c: New file. * sym.c (_stp_kallsyms_lookup_name): New function. Like kallsyms_lookup_name() except use our internal lookup table.
* 2006-09-27 Martin Hunt <hunt@redhat.com>hunt2006-09-271-0/+8
| | | | | | | | | | * stack.c (_stp_kta): Rewrite. Use the _stap_symbols struct instead of calling into the kernel. * sym.c (_stp_kallsyms_lookup): Move here from runtime.h * runtime.h: Get rid of all the symbol stuff that did not belong here.
* Remove validate_sp() dependency, therefore don't need CONFIG_KALLSYMS_ALL ↵hien2005-11-041-34/+18
| | | | anymore
* Added ppc64 _stp_stack_printhien2005-11-021-0/+70
|
* 2005-10-31 Martin Hunt <hunt@redhat.com>hunt2005-10-311-15/+15
| | | | * ALL: Cleanup copyrights.
* IA64 Runtime support patches. With this in placeaskeshav2005-10-281-0/+66
| | | | | | | Systemtap should now be able to build on Ia64. Includes supports for - function probes, return probes, function parameter access and dumping stack backtrace. Added by Anil S Keshavamurthy <Anil.s.keshavamurthy@intel.com>
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-011-32/+26
| | | | | * stack.c (_stp_stack_sprint): Add a verbose arg to pass along to underlying funcs.
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-311-2/+0
| | | | | | | | * sym.c (_stp_kallsyms_lookup): Moved to runtime.h. * stack.c (_stp_kta): Moved to runtime.h. * runtime.h (init_module): Initialize _stp_kallsyms_lookup and _stp_kta. * probes.c (_stp_lookup_name): Replaced by kallsyms_lookup_name().
* 2005-05-26 Martin Hunt <hunt@redhat.com>hunt2005-05-261-182/+102
| | | | | | | | * current.c (_stp_sprint_regs): Implement for i386. * sym.c (_stp_symbol_sprint): Check name before trying to print it. (_stp_symbol_print): Change to macro that calls _stp_symbol_sprint().
* Rewritten maps and other updated files.hunt2005-05-171-9/+92
|
* i386 fixes.hunt2005-04-111-4/+4
|
* *** empty log message ***hunt2005-04-071-2/+15
|
* Update to use relayfs.hunt2005-04-071-24/+30
|
* *** empty log message ***hunt2005-03-291-0/+161