summaryrefslogtreecommitdiffstats
path: root/runtime/transport
Commit message (Collapse)AuthorAgeFilesLines
* Add selective use of _stp_time_init/kill (PR9822)Josh Stone2009-02-231-6/+0
| | | | | | | | Our gettimeofday runtime has frequent wakeups to stay in sync with kernel time, but this is wasted effort if gettimeofday is not used in the script. This patch moves the calls to _stp_time_init and _stp_time_kill into begin and end/error probes, which only get pulled in if one of the gettimeofday variants is called.
* Better <linux/debugfs.h> header file inclusion.David Smith2009-02-202-1/+2
| | | | | | | 2009-02-20 David Smith <dsmith@redhat.com> * debugfs.c: Added inclusion of linux/debugfs.h. * relayfs.h: Removed inclusion of linux/debugfs.h.
* Kill all ChangeLogsJosh Stone2009-02-191-862/+0
| | | | | | Mark Wielaard, a dear friend of the departed, will be performing a song and dance at the funeral services to commemorate the joyous times that they had together.
* Removed unused functions and variables.David Smith2009-02-185-111/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-02-18 David Smith <dsmith@redhat.com> * io.c (_stp_log): Removed unused function. * map.c (_stp_cmp): Replace _stp_log() with dbug(). * mempool.c (_stp_mempool_resize): Removed unused function. * print.c (next_fmt): Removed unused function. * procfs.c: Removed unused variable '_stp_num_procfs_files'. * regs.c (_stp_ret_addr): Removed unused function. * string.c (_stp_text_str): Removed unused variable 'len'. * string.h: Removed unused variable '_stdout_' and function declaration for deleted function '_stp_vsprintf'. * sym.c: Removed unused variables. * unwind.c (_stp_create_unwind_hdr): Removed unused function. 2009-02-18 David Smith <dsmith@redhat.com> * control.c: Removed unused variable '_stp_current_buffers'. * procfs.c (_stp_set_buffers): Removed unused function. (_stp_register_ctl_channel_fs): Removed unused variables and label. * symbols.c (u32_swap): Removed unused function. (generic_swap): Ditto. (_stp_sort): Ditto. (_stp_section_is_interesting): Ditto. * transport.c (_stp_transport_init): Removed unused variable 'ret'.
* Reduced control channel code duplication.David Smith2009-02-176-270/+132
| | | | | | | | | | | | 2009-02-17 David Smith <dsmith@redhat.com> * control.c: Contains generic control channel functions. * procfs.c: Specific procfs control channel functions. All generic control channel functions moved to control.c. * debugfs.c: New file containing debugfs specific control channel functions. * control.h: New file. * transport.c: Updated file inclusion.
* Fixed transport/procfs.c for systems that use the old transport (RHEL4).David Smith2009-02-132-3/+10
| | | | | | | | | | | 2009-02-13 David Smith <dsmith@redhat.com> * procfs.c: Added macros to guard against multiple inclusion. 2009-02-13 David Smith <dsmith@redhat.com> * procfs.c: Added inclusion of ../procfs.c for _stp_mkdir_proc_module().
* Moved inclusion of runtime/procfs.c to a better place.David Smith2009-02-122-1/+3
| | | | | | | | | | | | 2009-02-12 David Smith <dsmith@redhat.com> * tapsets.cxx (procfs_derived_probe_group::emit_module_decls): Moved inclusion of procfs.c here from runtime/transport.c 2009-02-12 David Smith <dsmith@redhat.com> * transport.c: Moved inclusion of procfs.c to procfs_derived_probe_group::emit_module_decls() in tapsets.cxx.
* Cleanup. Renamed _stp_{un}lock_debugfs() to _stp_{un}lock_transport_dir().David Smith2009-02-125-11/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | 2009-02-12 David Smith <dsmith@redhat.com> * transport.c (_stp_lock_transport_dir): Renamed from _stp_lock_debugfs(), since on older kernels this actually uses procfs. (_stp_unlock_transport_dir): Renamed from _stp_unlock_debugfs(), since on older kernels this actually uses procfs. (_stp_lock_transport_dir): Changed _stp_lock_debugfs()/_stp_unlock_debugfs() to _stp_lock_transport_dir()/_stp_unlock_transport_dir(). * transport.h: Ditto. Also added _stp_transport_init() prototype. * utt.c (utt_remove_root): Changed _stp_lock_debugfs()/_stp_unlock_debugfs() to _stp_lock_transport_dir()/_stp_unlock_transport_dir(). * relayfs.c (_stp_remove_relay_root): Ditto. 2009-02-12 David Smith <dsmith@redhat.com> * procfs.c (_stp_rmdir_proc_module): Changed _stp_lock_debugfs()/_stp_unlock_debugfs() to _stp_lock_transport_dir()/_stp_unlock_transport_dir(). (_stp_mkdir_proc_module): Ditto.
* PR9740/9816? - workaround for kernel valloc bugFrank Ch. Eigler2009-02-052-0/+16
|
* Use 'static' as much as possibleJosh Stone2009-01-288-37/+37
| | | | | | | | | | 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.
* Adapt _stp_sort to 2.6.29.Wenji Huang2009-01-121-12/+12
| | | | | Acked-by: Masami Hiramatsu <mhiramat@redhat.com> Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
* PR9699: build fixes for kernel 2.6.28Frank Ch. Eigler2009-01-062-1/+11
|
* PR5947: make runtime code -Wpointer-arith-cleanFrank Ch. Eigler2008-11-284-7/+18
|
* Fix the conflicted for_each_cpu macro with 2.6.28.Wenji Huang2008-11-171-3/+3
|
* Use KERN_WARNING and show buffer size.Masami Hiramatsu2008-11-132-4/+10
|
* PR7016: Check free memory before allocating buffers.Masami Hiramatsu2008-11-132-0/+26
|
* reduce transport debug verbosityFrank Ch. Eigler2008-11-122-2/+6
|
* PR4886: weaken build-id failure semanticsFrank Ch. Eigler2008-10-072-10/+15
|
* PR4886: check build-id if able.Wenji Huang2008-10-061-1/+10
| | | | This provides sanity check of debuginfo file based on build-id. Many cases are considered, whether build-id exists in debuginfo file or not, whether module is loaded or not, whether build-id exists in runtime kernel/module. It will do work when LD >= 2.18 and kernel >=2.6.23, otherwise no check.
* PR 6487, 6504: robustify __stp_print_flushFrank Ch. Eigler2008-09-173-0/+136
|
* support multiple-relocatable-section modules such as hypothetical ↵Frank Ch. Eigler2008-07-172-24/+5
| | | | -ffunction-sections .ko's
* PR6738: restore support for rhel4-era (2.6.9) kernelsFrank Ch. Eigler2008-07-124-190/+28
|
* PR6736: changelogs for post-merge compiled unwind/symbols data reorganizationFrank Ch. Eigler2008-07-103-3/+9
|
* Merge commit 'origin/master' into pr6429-comp-unwindsymsFrank Ch. Eigler2008-07-092-2/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'origin/master': fix shutdown race condition for scripts that might exit during begin probes Fix PR 6732: Add runtime/autoconf-real-parent.c check for task_struct field. clarify dejagnu test case name for empty-struct changes add changelog entries for last two changes Add test suite for declaration resolution Fix semantic error: empty struct Add hack to support git 1.6 in git_version.sh Sync latest fix for git_version.sh from RadeonHD's tree Slightly cleanup code of translate.cxx PR2111: add general blurbage to stapprobes.5 on syscalls tapset Use `uname -rvm` for checking system compatibility. Generate Add section to stapex manual page on how installed examples are documented. Install examples, demos and samples. Install tutorial and langref manuals.
| * fix shutdown race condition for scripts that might exit during begin probesFrank Ch. Eigler2008-07-092-2/+6
| |
* | emit all symbol tables at compile time; don't do any module munging; new ↵Frank Ch. Eigler2008-07-042-567/+22
| | | | | | | | unwinder still disabled
* | transport/symbol rework: kernel-only probes workingFrank Ch. Eigler2008-06-295-12/+15
| |
* | STP_RELOCATE message for kernel relocatability (re)adaption, starting ↵Frank Ch. Eigler2008-06-294-23/+61
| | | | | | | | implementation
* | Merge commit 'origin/master' into pr6429-comp-unwindsymsFrank Ch. Eigler2008-06-272-1/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'origin/master': Always include libdw using link groups. Fix bug in handling process(PID) probes. Added tests for 'process(PID)' variants. This commit makes changes to the VFS tapset. The changes include deprecation of syscalls2.stp: Add sys_renameat. Only probe lines once for the :* wildcard line pattern. Revert checking address in runtime bz451707: fix conversions.exp test $name Cleanup in tapsets.cxx Added powerpc support to runtime/syscall.h. Remove validating _stext due to many aliased symbols PR6646: Add checking address in runtime Fixed offset argument to vm_callback.
| * Revert checking address in runtimeWenji Huang2008-06-252-23/+5
| |
| * Remove validating _stext due to many aliased symbolsWenji Huang2008-06-241-7/+0
| |
| * PR6646: Add checking address in runtimeWenji Huang2008-06-242-1/+38
| |
* | PR6429: remove stapio STP_UNWIND support and associated elfutils dependencyFrank Ch. Eigler2008-06-231-1/+2
|/
* Remove STP_UNWIND support in _stp_ctl_write_dbugWenji Huang2008-06-132-4/+3
|
* PR6429: remove stapio STP_UNWIND support and associated elfutils dependencyFrank Ch. Eigler2008-06-034-6/+8
|
* Srinivasa DS <srinivasa@in.ibm.com>,PR6429 Inerim fix to avoid compilation ↵Srikar Dronamraju2008-05-251-0/+20
| | | | error of systemtap module
* PR5645: Fix sub-buffer size calculation and debug messages.Masami Hiramatsu2008-04-302-1/+11
|
* Change staprun to exec stapio. Add "-d" option to staprun.Martin Hunt2008-04-213-9/+14
|
* PR6410: unwinder-less architecture toleranceFrank Ch. Eigler2008-04-152-0/+7
|
* PR6405: unwinder build compatibility with RHEL5Frank Ch. Eigler2008-04-152-4/+21
|
* Change stap to get kernel symbols from debuginfo andMartin Hunt2008-04-092-4/+25
| | | | compile them into the module.
* Add new define STP_USE_DWARF_UNWINDER which is set based on which archsMartin Hunt2008-03-312-5/+8
| | | | work with the unwinder.
* Remove misleading error message.Martin Hunt2008-03-312-1/+4
|
* Support for kernels built with CONFIG_FRAME_POINTERMartin Hunt2008-03-303-2/+10
|
* kretprobe trampoline fixesMartin Hunt2008-03-281-0/+2
| | | | | Recognize when a kretprobe trampoline was hit and continue with inexact stack dump. Also some testsuite changes.
* control.c (_stp_ctl_write_dbug): Insert missing break.Martin Hunt2008-03-252-0/+4
|
* 32-bit fixesMartin Hunt2008-03-253-6/+11
|
* rebased unwind_branch on top of current masterFrank Ch. Eigler2008-03-256-627/+437
|
* 2008-02-27 Martin Hunt <hunt@redhat.com>hunt2008-02-276-393/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | * sym.h (_stp_module): Add text_size, lock, and unwind data pointer. * sym.c (_stp_find_module_by_addr): New function. (_stp_kallsyms_lookup): Call _stp_find_module_by_addr(). (_stp_get_unwind_info): New. * runtime.h: Move debug macros to debug.h. Include it. * debug.h: New file. * map.c: Update debug calls. * map-gen.c: Update debug calls. * pmap-gen.c: Update debug calls. * mempool.c: New file. * symbols.c: Use rwlocks. Use new dbug macros. Handle unwind info if present. * transport.c: Include mempool.c. Update dbug and kbug calls to new macros. * transport_msgs.h (_stp_command_name): Add struct containing message names for debugging. * control.c, procfs.c: Use new dbug macros. Use new mempool functions.
* 2008-01-28 Martin Hunt <hunt@redhat.com>hunt2008-01-284-8/+12
| | | | * control.c, procfs.c, symbols.c: Use DEFINE_SPINLOCK