| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* buildok/eighteen.stp: Fix for 2.6.18.
* buildok/two.stp: Ditto.
|
|
|
|
|
|
|
| |
PR 3278
* tapsets.cxx (hrtimer_derived_probe::emit_probe_entries): Only
restart timers when the session is still active and we updated the
expire time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* session.h (struct systemtap_session): Add kernel_base_release
to store the kernel version without the -NNN suffix.
* main.cxx (main): Generate and use kernel_base_release.
* parse.cxx (eval_pp_conditional): Use kernel_base_release.
* tapsets.cxx (profile_derived_probe::profile_derived_probe):
Use kernel_base_release.
* tapsets.cxx (timer_builder::build): Support a wide variety of
timer varients -- jiffies, s/sec, ms/msec, us/usec, ns/nsec, and
hz. Use hrtimers automatically on kernels that have it.
(timer_builder::register_patterns): Bind all of the new timer
varients in one easy place.
(register_standard_tapsets): Call timer_builder::register_patterns.
(struct hrtimer_builder): Removed since timer_builder is generic.
* stapprobes.5.in: Document new timer.* functionality.
* tapsets.cxx (hrtimer_derived_probe_group::emit_probes): Add a
shared global for the actual hrtimer resolution, _stp_hrtimer_res.
(hrtimer_derived_probe_group::emit_module): Init _stp_hrtimer_res.
(hrtimer_derived_probe::emit_interval): Limit intervals at a
minimum to the hrtimer's actual resolution.
(hrtimer_derived_probe::emit_probe_entries): Forward timers
based on previous expiration instead of restarting relative.
testsuite/
* buildok/fourteen.stp: Test new timer functionality.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* .cvsignore: Changed 'stpd' reference to 'staprun'.
* INTERNALS: Ditto.
* buildrun.cxx (run_pass): Ditto.
* lket.5.in: Ditto.
* stap.1.in: Ditto.
* stapruncs.5.in: Ditto.
* examples/small_demos/demo_script.txt: Ditto.
* examples/small_demos/sys.stp: Ditto.
* systemtap.spec.in: Created a new subpackage,
"systemtap-runtime", that contains staprun.
* Makefile.am: Renamed 'stpd' to 'staprun' and moved it to
$(bindir).
* Makefile.in: Regenerated from Makefile.am.
* configure.ac: Incremented version number.
* configure: Regenerated from configure.ac.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* test/run.sh: Changed 'stpd' references to 'staprun'.
|
|
|
|
| |
* tskdispatch.stp: Changed 'stpd' reference to 'staprun'.
|
|
|
|
|
| |
* systemtap.samples/args.exp: Looks for 'staprun' instead of
'stpd'.
|
|
|
|
| |
* test.tcl: Looks for 'staprun' instead of 'stpd'.
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
Change to per_cpu_ptr(Stp_pbuf, smp_processor_id()) to get the per-cpu printing buffer
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tapset/rpc.stp:
Some changes and more comments of RPC tapset
tapset/LKET/rpc.stp:
New trace hooks for RPC activities on client, server and scheduler sides
tapset/LKET/register_event.stp:
Add the register_sys_event() calls for new RPC trace hooks
tapset/LKET/hookid_defs.stp:
Add the definitions of RPC trace hooks
|
|
|
|
|
|
| |
PR 3220
From Eugeniy Meshcheryakov <eugen@debian.org>:
* lket/b2a/lket_b2a.c: Check that appNameTree exists before destroying.
|
|
|
|
|
|
| |
PR 3219
From Eugeniy Meshcheryakov <eugen@debian.org>:
* stapprobes.5.in: Correct misuse of '-' -> '\-' in manpage
|
| |
|
|
|
|
|
| |
* logging.stp (stp_print_binary): New function.
* string.stp: Fix docs.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* buildrun.cxx (run_pass): Remove "-m" option to stpd.
* translate.cxx (translate_pass): #define STP_RELAYFS_MERGE
if appropriate.
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
| |
Make all integers passed into _lket_trace() casted into int64_t explicitly.
Delete calling to filter_by_pid()
* nfs*.stp:
Change addevent.*.entries to addevent.*.entry
|
|
|
|
| |
* buildrun.cxx (run_pass): Remove "-r" option to stpd.
|
|
|
|
|
|
|
|
|
|
| |
* 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().
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* Added .cvsignore file.
|