| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
PR 5947
* autoconf-tsc-khz.c: Remove "&& defined(__i386__)" to make the test
more pessimistic.
|
|
|
|
|
|
|
|
|
|
|
| |
PR 3542
* buildrun.cxx (compile_pass): Add an autoconf to check the kernel
supports batch unregistration.
* tapsets.cxx (dwarf_derived_probe_group::emit_module_decls): Add an
array of probe pointers for batch unregistration.
* tapsets.cxx (dwarf_derived_probe_group::emit_module_exit): Use
unregister_k(ret)probes if it is supported.
* runtime/autoconf-unregister-kprobes.c : New file.
|
|
|
|
|
|
|
|
| |
PR5189
* vsprintf.c (_stp_vsnprintf): Arguments for dynamic width and precision
are of type 'int' again.
* loc2c-runtime.h (deref_string): Copy the data only if dst is not NULL.
(deref_buffer): New macro.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
PR5189
* vsprintf.c (_stp_vsnprintf): Extract arguments of type int64_t for
dynamic width and precision. Implement width and precision correctly for
the %b format specifier. Implement the %m specifier.
|
|
|
|
| |
* staprun_funcs.c (check_path): Small security fix.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* runtime/uprobes/uprobes.c: Intercept handler-destined
signals received while we're single-stepping, and re-queue
them afterward.
* runtime/uprobes/uprobes.h: Ditto
|
|
|
|
|
|
|
|
|
|
|
|
| |
* stack-ia64.c (__stp_show_stack_sym): Skip printing symbol if (ip ==
REG_IP(regs)).
2008-02-06 Masami Hiramatsu <mhiramat@redhat.com>
* systemtap.context/backtrace.tcl: Fixed regular expressions and Added
new expression for return probe on ia64.
* systemtap.context/backtrace.stp(print_all_trace_info): Added
trace point output before calling print_stack().
|
|
|
|
| |
Thanks to Jim for fixing typos and grammar.
|
|
|
|
|
|
| |
* io.c (_stp_vlog): Use get_cpu() instead
of smp_processor_id() because this function can get
called with interrupts enabled.
|
|
|
|
|
| |
* alloc.c (struct _stp_malloc_type): Remove
redundant field.
|
|
|
|
|
|
|
|
| |
* alloc.c: Use DEFINE_SPINLOCK.
* counter.c: Ditto.
* pmap-gen.c: Ditto.
* print_new.c: Ditto.
* stat.c: Ditto.
|
|
|
|
| |
* control.c, procfs.c, symbols.c: Use DEFINE_SPINLOCK
|
|
|
|
| |
* stack-i386.c (__stp_stack_print): Correct #elif->#else typo.
|
|
|
|
|
|
|
| |
calls to access_process_vm() when populating instructions
slots. Fixes an SMP bug on multithreaded apps with many
active probepoints.
* runtime/uprobes/uprobes.h: Ditto
|
| |
|
| |
|
|
|
|
| |
rcu_dereferences of engine->data to resync with kernel.org builds.
|
| |
|
|
|
|
|
| |
* symbols.c (send_module): Simplify and use new send_data() function to keep
longword alignment.
|
|
|
|
| |
access_process_vm(), for kernels that don't export it.
|
|
|
|
| |
patch for x86/x86_64
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
2008-01-12 Frank Ch. Eigler <fche@elastic.org>
PR 5603 horrible hack.
* symbols.c (do_kernel_symbols): Make buf[256] instead of [128].
|
|
|
|
|
| |
jmps and calls that use rip-relative addressing. Allow probing
of opcode 0x63.
|
|
|
|
|
|
|
| |
PR5368
* relay_old.c (init_oldrelayfs): Don't start threads
if load_only.
* relay.c (init_relayfs): Ditto.
|
|
|
|
|
|
| |
From Cai Fei <caifei@cn.fujitsu.com>
* regs-ia64.c (ia64_fetch_register): Fix the bug of fetching
register 12 on IA64.
|
|
|
|
|
|
| |
From Cai Fei <caifei@cn.fujitsu.com>
* regs-ia64.c (ia64_fetch_register): Fix the bug of fetching
register 12 on IA64.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* main.cxx: Restored pre-10-08 version: moved uprobes build to
buildrun.cxx.
* buildrun.cxx: Reworked uprobes build so that the resulting
Module.symvers can be used in building the stap-generated
module. If user isn't root, call verify_uprobes_uptodate()
rather than trying (and failing) to rebuild uprobes.ko.
* buildrun.h: uprobes_enabled() and make_uprobes() are no
longer extern.
* runtime/uprobes/Makefile: Added uprobes.ko target for use
by verify_uprobes_uptodate().
|
|
|
|
|
| |
* print.c (_stp_print): Rewrite to eliminate the strlen()
call and save a bit of time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR3858
* print.c: Add -DRELAY_HOST=<hostname> and -DRELAY_GUEST=<hostname>
options support.
(_stp_print_flush): Disable irqs if -DRELAY_* option is specified.
* print_old.c: Export stp_print_flush to other modules if the
-DRELAY_HOST option is specified.
* print_new.c: Ditto.
* transport.c (_stp_transport_init): Reduce relay buffer size to
64KB*2 if -DRELAY_GUEST is specified.
* systemtap.printf/sharedbuf.exp: New test for buffer sharing option.
* systemtap.printf/sharedbuf.stp: Ditto.
* systemtap.printf/hello.stp: Ditto.
* systemtap.printf/hello2.stp: Ditto.
|
|
|
|
|
|
|
|
|
| |
PR 5281
* transport.c (_stp_detach, _stp_attach): Call utt_set_overwrite()
instead of setting a flag directly.
* utt.c (utt_set_overwrite): New. Set overwrite mode.
* relayfs.c (utt_set_overwrite): New. Set overwrite mode.
* utt.h: Remove global utt_overwrite_flag.
|
|
|
|
|
| |
* mainloop.c (stp_main_loop): Bump recvbuf to 8196 for
compatibility with old transport.
|
|
|
|
|
|
| |
* procfs.c, control.c, transport.c: Recognize when stapio
is detached and disable delayed work. Enable when attached.
Cleanup code to destroy workqueue on exit.
|
|
|
|
|
|
| |
PR5218
* stapio.c (main): Set initialized properly when
attached.
|
|
|
|
|
| |
with -DHIST_ELISION=<negative #>. Also cleaned up looping code to
prevent unnecessary interation over non-existent buckets.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* autoconf-tsc-khz.c: Not to be compiled if the kernel version is
younger than 2.6.23 on i386.
|
|
|
|
|
| |
PR5000
* vsprintf.c: Remove _stp_endian.
|
|
|
|
|
|
|
|
|
| |
uprobes_ppc64.h, uprobes_s390.h: Adjusted SLOT_IP and
arch_validate_probed_insn to accept task pointer (needed by
x86_64); added uprobe_probept_arch_info and uprobe_task_arch_info
(ditto).
* runtime/uprobes/uprobes_i386.c: Fixed a couple of glitches
discovered when porting to x86_64
|
|
|
|
| |
* autoconf-tsc-khz.c: Fix a bug to be configured correctly.
|
|
|
|
|
|
|
|
|
|
| |
* transport.c (_stp_ask_for_symbols): Don't ask for
transport_info yet. Need to wait until symbols are
received.
(_stp_work_queue): Rename _stp_ready_q to _stp_ctl_ready_q.
* procfs.c: Create a ".symbols" channel and use it for
STP_MODULE and STP_SYMBOLS. Rename "cmd" channel to ".cmd".
* control.c: Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes to separate the symbols from the command channel.
* cap.c (init_cap): Add CAP_DAC_OVERRIDE.
* staprun.h: Change init_ctl_channel prototype.
* ctl.c (init_ctl_channel): Modify to open either
a command or symbol channel. Use ".cmd" and ".symbols"
as the new names.
* mainloop.c (init_stapio): Call init_ctl_channel(0);
* staprun.c (cleanup): Call stop_symbol_thread().
(main): Call start_symbol_thread().
* staprun_funcs.c (handle_symbols): Make a thread.
(start_symbol_thread): New.
(stop_symbol_thread): New.
|
|
|
|
|
| |
* staprun.c (main): Move checks for init_cap and getuid
from just before command line argument parsing to just after.
|