| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
| |
clean up the unused database tables and destory GTree on exit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding the support of automatically database creation and
dumping lket trace into mysql database
* configure.ac:
add the checking of mysql client library
* Makefile.in, configure:
regenerated
* runtime/lket/b2a/Makefile.am:
add the checking and optional compiling for mysql client library
* runtime/lket/b2a/Makefile.in:
regenerated
|
|
|
|
|
|
|
| |
From David Wilder <dwilder@us.ibm.com>
* time.c (__stp_estimate_cpufreq): Short-circuit on s390.
(_stp_gettimeofday_ns): Use a fixed formula on s390 to
convert TOD clocks to nanoseconds.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
| |
* README: Changed 'stpd' references to 'staprun'.
* README.doc: Ditto.
* TODO: Ditto.
* io.c: Ditto.
* print.c: Ditto.
* runtime.h: Ditto.
* bench2/bench.rb: Ditto.
|
|
|
|
|
|
| |
* bench/run_bench: Changed 'stpd' references to 'staprun'.
* bench/trans_bench: Ditto.
* where_func/README: Ditto.
|
|
|
|
|
|
| |
* Makefile: Changed 'stpd' references to 'staprun'.
* librelay.c: Ditto.
* stpd.c: Ditto.
|
|
|
|
|
| |
* transport.c: Changed 'stpd' references to 'staprun'.
* transport.txt: Ditto.
|
|
|
|
|
| |
* io.c: Changed 'stpd' references to 'staprun'.
* print.c: Ditto.
|
|
|
|
|
|
|
| |
* transport.c (_stp_handle_start): Don't initialize timers here.
(_stp_transport_init): Initialize timers here.
(_stp_cleanup_and_exit): Don't kill timers or free print buffers here.
(_stp_transport_close): kill timers and free print buffers here.
|
|
|
|
|
|
|
| |
* time.c (_stp_init_time): Use dynamic percpu allocations
instead of evil static allocations.
(_stp_kill_time): Free percpu allocations and set
_stp_time to NULL so the timers are only deleted once.
|
|
|
|
|
| |
* io.c (_stp_vlog): Remove ifdef for STP_RELAYFS. Relayfs now
behaves the same as procfs.
|
| |
|
|
|
|
|
| |
* print.c: Replace STP_PRINT_BUF_LEN with STP_BUFFER_SIZE.
* string.c: Ditto.
|
| |
|
|
|
|
|
| |
* transport.c (_stp_work_queue): Reenable some cleanup
code.
|
|
|
|
|
| |
* transport.c (_stp_transport_init): Call _stp_print_init().
(_stp_cleanup_and_exit): Call _stp_print_cleanup().
|
|
|
|
|
|
|
|
|
|
|
| |
PR 3232
* print.c (_stp_print_init): New. Alloc per-cpu buffers.
(_stp_print_cleanup): New. Free per-cpu buffers.
(_stp_print_flush): Use per_cpu_ptr().
* string.c (_stp_sprintf): Ditto.
(_stp_vsprintf): Ditto.
(_stp_string_cat_cstr): Ditto.
(_stp_string_cat_char): Ditto.
|
| |
|
|
|
|
|
| |
* lket/b2a/lket_b2a.c (main): Correct arguments to fseek.
(dump_data): Work around a spurious compiler warning.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 3233
./
* stapfuncs.5.in: Document new gettimeofday_ns.
runtime/
* time.c (stp_time_t): Use ns for the base time, and freq is now kHz.
(__stp_estimate_cpufreq): Compute kHz instead of MHz.
(__stp_time_timer_callback, __stp_init_time): Compute base in ns.
(__stp_time_cpufreq_callback): Record kHz instead of MHz.
(_stp_init_time): Record kHz, and disable preemption to avoid a race
in the cpufreq notifier.
(_stp_gettimeofday_ns): Converted from _stp_gettimeofday_us.
tapset/
* timestamp.stp (gettimeofday_ns): New function
(gettimeofday_us, gettimeofday_ms, gettimeofday_s):
Use gettimeofday_ns as the base unit.
testsuite/
* buildok/timestamp.stp: add gettimeofday_ns test.
|
| |
|
|
|
|
|
|
|
|
|
| |
Be sync with the runtime printing changes made by Martin
lket/b2a/lket_b2a.c, lket/b2a/lket_b2a.h:
Be sync with the recent runtime printing changes made by Martin.
Some clean up work before adding the support of dumping data into MySQL
Bug fix of segment fault when an event is not registered.
|
|
|
|
|
|
| |
PR 3220
From Eugeniy Meshcheryakov <eugen@debian.org>:
* lket/b2a/lket_b2a.c: Check that appNameTree exists before destroying.
|
| |
|
|
|
|
|
|
|
| |
* bench2/bench.rb: Remove the deprecated "-m" option
to stpd. Also, don't use merge mode for relayfs.
* bench2/run_binary_print: New test. Compare various ways of
printing binary data.
|
|
|
|
|
| |
* transport_msgs.h (struct transport_info): Add merge field.
* transport.c (_stp_transport_open): Set merge field.
|
|
|
|
|
|
|
|
|
| |
* stpd.c (usage): Remove "-m" option.
(main): Print warning if "-m" is used.
* librelay.c (merge_output): Rewrite to handle
new format that support binary.
(stp_main_loop): Read merge option from the
transport info message.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* print.c (_stp_print_flush): Rewrite so one version works for
relayfs or procfs. Use proper per-cpu functions.
(_stp_reserve_bytes): New function. Reserve bytes in the output buffer.
(_stp_print_binary): New function. Write a variable number of
64-bit values directly into the output buffer.
* string.c (_stp_sprintf): Rewrite using new per-cpu buffers.
(_stp_vsprintf): Ditto.
(_stp_string_cat_cstr): Ditto.
(_stp_string_cat_char): Ditto.
* runtime.h: Set defaults for MAXTRYLOCK and TRYLOCKDELAY to make
runtime tests in bench2 happy.
|
|
|
|
|
|
|
|
|
|
| |
* librelay.c (init_relayfs): Exec stp_check and find
relay_filebase.
* librelay.h (stp_main_loop): Fix declaration of init_stp().
* stpd.c (usage): Remove "-r" option.
(main): Don't find stpd_filebase and don't send it to init_stp().
|
| |
|
|
|
|
| |
sched_clock()
|
|
|
|
|
| |
* string.c:
* print.c: Remove includes for <linux/config.h>.
|
|
|
|
|
| |
* lket/b2a/.cvsignore: Added file to let cvs ignore generated
files.
|
| |
|
| |
|
|
|
|
| |
* runtime.h: Include compat.h.
|
|
|
|
| |
* vsprintf.c (_stp_vsnprintf): %p format fixes.
|
|
|
|
|
| |
* librelay.c (stp_main_loop): If module doesn't start, kill any
target command.
|
|
|
|
|
|
| |
change the timestamp printing format of lket-b2a: usec --> sec.usec
fix an error in "CUSTOMIZED TRACE DATA" : addevent.netdev --> addevent.netdev.transmit
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 2922
* time.c (_stp_init_time): call cpufreq_get for each cpu from
a non-atomic context (module init time).
* time.c (__stp_init_time): remove call to cpufreq_get from IPI.
* time.c (__stp_time_timer_callback): disable IRQ's to avoid
perturbations in measurements.
* time.c (_stp_gettimeofday_us): disable preemption to avoid CPU
swaps while we're computing the time.
|
|
|
|
|
| |
* runtime.h (for_each_cpu): Define for new kernels
which no longer define it.
|
| |
|
|
|
|
| |
* string.c (_stp_text_str): Use __get_user().
|
|
|
|
|
|
| |
* string.c (_stp_text_str): Add a parameter to support
userspace strings too.
* string.h: (_stp_text_str): Fix proto.
|
|
|
|
|
|
|
|
| |
use current->parent->tgid as the parent process id for ascii tracing
modified lket-b2a to be sync with the new addevent.process event hooks
updated lket man pages to be sync with newly changes to addevent.process event hooks
|