summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 2006-09-21 Martin Hunt <hunt@redhat.com>hunt2006-09-223-7/+31
| | | | | | | | | | | 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.
* Use semaphore if mutex not availabletrz2006-09-212-2/+27
|
* 2006-09-20 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-202-2/+5
| | | | | * lket/b2a/lket_b2a.c (main): Correct arguments to fseek. (dump_data): Work around a spurious compiler warning.
* 2006-09-20 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-208-38/+94
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Conversion from relay-on-procfs to relay-on-debugfstrz2006-09-199-165/+148
|
* lket_trace.stp,process.stp,register_event.stp:guanglei2006-09-197-103/+157
| | | | | | | | | 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.
* From Gui Jian <guijian@cn.ibm.com>:guanglei2006-09-196-179/+1426
| | | | | | | | | | | | | | 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
* 2006-09-18 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-182-1/+8
| | | | | | PR 3220 From Eugeniy Meshcheryakov <eugen@debian.org>: * lket/b2a/lket_b2a.c: Check that appNameTree exists before destroying.
* 2006-09-18 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-182-4/+10
| | | | | | PR 3219 From Eugeniy Meshcheryakov <eugen@debian.org>: * stapprobes.5.in: Correct misuse of '-' -> '\-' in manpage
* *** empty log message ***hunt2006-09-181-0/+7
|
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-183-1/+11
| | | | | * logging.stp (stp_print_binary): New function. * string.stp: Fix docs.
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-182-5/+48
| | | | | | | * 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.
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-183-2/+12
| | | | | | * buildrun.cxx (run_pass): Remove "-m" option to stpd. * translate.cxx (translate_pass): #define STP_RELAYFS_MERGE if appropriate.
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-183-1/+14
| | | | | * transport_msgs.h (struct transport_info): Add merge field. * transport.c (_stp_transport_open): Set merge field.
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-183-35/+57
| | | | | | | | | * 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.
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-184-88/+155
| | | | | | | | | | | | | | | | * 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.
* Close when done.hunt2006-09-181-0/+1
|
* *.stp:guanglei2006-09-159-235/+223
| | | | | | | | 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
* 2006-09-13 Martin Hunt <hunt@redhat.com>hunt2006-09-132-1/+4
| | | | * buildrun.cxx (run_pass): Remove "-r" option to stpd.
* 2006-09-13 Martin Hunt <hunt@redhat.com>hunt2006-09-134-59/+59
| | | | | | | | | | * 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().
* Do not throw sematic error unless probes actually used.wcohen2006-09-132-2/+5
|
* Correct typo in ChangeLog.wcohen2006-09-121-2/+2
|
* Changelog entry for SystemTap perfmon support.wcohen2006-09-121-0/+39
|
* Systemtap perfmon support to access the processors perfmon hardware.wcohen2006-09-1216-3/+865
|
* 2006-09-12 David Smith <dsmith@redhat.com>dsmith2006-09-122-0/+5
| | | | * Added .cvsignore file.
* src/lket.5.in:guanglei2006-09-1214-166/+3688
| | | | | | | | | | | | | | | | | | | | | document nfs trace hooks tapset/nfsd.stp, tapset/nfs_proc.stp, tapset/nfs.stp: Change NFS file identifier. Change NFS version data type from String to INT. Add version variable to nfs_open and nfs_release. LKET/iosyscall.stp: change log_iosyscall_sync() be sync with different timing methods. LKET/utils.stp: add reset_maxaction() since there are too many functions called inside "probe begin". LKET/nfsd.stp, LKET/nfs_proc.stp, LKET/nfs.stp: New trace hooks for NFS, including both NFS client and server side activities. LKET/register_event.stp: Add the register event calls for NFS trace hooks.
* Added RPC tapsetsguanglei2006-09-112-0/+707
|
* * tolerate long-running jobs better in stap_run_batch ()fche2006-09-101-1/+5
|
* 2006-09-09 Frank Ch. Eigler <fche@elastic.org>fche2006-09-0910-17/+30
| | | | | * lib/systemtap.exp (stap_run_batch): New helper routine. * systemtap.pass1-4/*.exp: Use it instead of catch/exec/>>& hack.
* 2006-09-08 David Smith <dsmith@redhat.com>dsmith2006-09-085-162/+726
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elaborate.h (struct derived_probe): Replace emit_registrations() function with emit_registrations_start() and emit_registrations_end(). (struct derived_probe_group): Added emit_module_init(). (struct derived_probe_group_container): Added emit_module_init(), emit_module_init_call(), and emit_module_exit(). * elaborate.cxx (struct alias_derived_probe): Updated emit_regitrations calls. * translate.cxx (emit_module_init): Instead of actually emitting per-probe-point registrations/unregistrations, let the session's derived_probe_group_container do it. * tapsets.cxx (emit_probe_timing): New function that handles probe timing code. (be_derived_probe::emit_registrations_start): Renamed from emit_registrations. (be_derived_probe_group::emit_module_init): New function that outputs probes create and destroy functions. (dwarf_derived_probe::emit_registrations): Removed, but most code moved to emit_registrations_start(). (dwarf_derived_probe::emit_registrations_start): Handles details of multiple dwarf probe registrations. (dwarf_derived_probe::emit_registrations_end): Handles cleanup details of multiple dwarf probe registrations. (dwarf_derived_probe_group::emit_module_init): New function that outputs probes create and destroy functions. (timer_derived_probe::emit_registrations_start): Renamed from emit_registrations. Added mutiple probe handling. (timer_derived_probe::emit_registrations_end): Handles cleanup details of multiple probe registrations. (timer_derived_probe_group::emit_module_init): New function that outputs probes create and destroy functions. (profile_derived_probe::emit_registrations_start): Renamed from emit_registrations. Added mutiple probe handling. (profile_derived_probe::emit_registrations_end): Handles cleanup details of multiple probe registrations. (profile_derived_probe_group::emit_module_init): New function that outputs probes create and destroy functions. (mark_derived_probe::emit_registrations_start): Renamed from emit_registrations. Added mutiple probe handling. (mark_derived_probe::emit_registrations_end): Handles cleanup details of multiple probe registrations. (mark_derived_probe_group::emit_module_init): New function that outputs probes create and destroy functions. (hrtimer_derived_probe::emit_registrations_start): Renamed from emit_registrations. Added mutiple probe handling. (hrtimer_derived_probe::emit_registrations_end): Dummy function. (hrtimer_derived_probe_group::emit_module_init): New function that outputs probes create and destroy functions. (derived_probe_group_container::emit_module_init): Added function to call all probe group's emit_module_int functions. (derived_probe_group_container::emit_module_init_call): Added function to handle probe group initialization cleanup. (derived_probe_group_container::emit_module_exit): Added function to handle probe group cleanup.
* 2006-09-06 Frank Ch. Eigler <fche@elastic.org>fche2006-09-067-7/+82
| | | | | | | | | | | | | Add basic support for initialized globals. * parse.cxx (parse_global): Parse initialization clause, implement by rewriting to "probe begin { var = value }". * parse.h: Corresponding changes. * stap.1.in: Document optional initialization. 2006-09-06 Frank Ch. Eigler <fche@elastic.org> * parseok/eighteen.stp, semok/twentythree.stp: New files for testing initialized globals.
* * copyright bumpfche2006-09-051-1/+1
|
* 2006-09-04 Frank Ch. Eigler <fche@elastic.org>fche2006-09-054-2/+17
| | | | | | | | Improve unresolved target-symbol error messages. * staptree.h (target_symbol): Add new field saved_conversion_error. * elaborate.cxx (typeresolution_info::visit_target_symbol): Throw that if found instead of generic error. * tapsets.cxx (t_v_f_c_v::visit_target_symbol): Set it.
* document signal tapsets into stapprobes.5.inguanglei2006-08-305-41/+482
| | | | some changes to arguments and comments of signal tapset
* add another two kinds of timing mechanisms for LKET, i.e. get_cycles() andguanglei2006-08-298-20/+272
| | | | sched_clock()
* 2006-08-28 David Smith <dsmith@redhat.com>dsmith2006-08-2810-10/+534
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * translate.cxx: Added inclusion of session.h. (translate_pass): Instead of asking each probe to emit itself, we ask the session's probes member variable to emit all the probes. * tapsets.cxx: Added inclusion of session.h. Added a register_probe member function to all derived_probe based classes. Added a derived_probe_group derived class for all probe types: (be_derived_probe_group): New class. (never_derived_probe_group): New class. (dwarf_derived_probe_group): New class. (timer_derived_probe_group): New class. (profile_derived_probe_group): New class. (mark_derived_probe_group): New class. (hrtimer_derived_probe_group): New class (derived_probe_group_container): New class. * elaborate.h: Removed inclusion of session.h since session.h now includes elaborate.h. (derived_probe): Added register_probe member function. (derived_probe_group): Added class definition. This is the base class of all of the derived probe groups - dwarf, timer, etc. (derived_probe_group_container): Added class definition. An instance of this class will be stored in the session and contain all the other probe groups. * elaborate.cxx (derived_probe_group::register_probe): Added derived_probe_group::register_probe stubs. (alias_derived_probe::register_probe): Added register_probe member function. (semantic_pass_symbols): After deriving a probe, the probes now register themselves with the session. * session.h: Includes elaborate.h to get derived_probe_group_container definition. systemtap_session class 'probes' member variable switched from a vector of derived probes to a derived_probe_group_container. * buildrun.cxx: Added inclusion of session.h since it was removed from elaborate.h. * main.cxx: Added inclusion of session.h since it was removed from elaborate.h. * parse.h: Added forward struct declarations. * staptree.h: Removed inclusion of session.h.
* bug fix and more error checking for nfs tapsetsguanglei2006-08-254-23/+140
|
* syscall.stp: add "probe never" to generate reference to hookid_defs.stpguanglei2006-08-252-0/+10
| | | | to avoid compiling error
* 2006-08-23 Josh Stone <joshua.i.stone@intel.com>jistone2006-08-233-6/+16
| | | | | | | | | | PR 3093 From Eugeniy Meshcheryakov <eugen@debian.org>: * main.cxx (main): Use setenv instead of putenv, since gcc 4.2 doesn't like assigning string constants to char*. Also use const char* for result from getenv. * tapsets.cxx (dwflpp::setup): Copy string constant into a local array, to fix gcc 4.2 warning.
* vfs.stp:guanglei2006-08-235-0/+4105
| | | | | | | | | | | | | | | | New tapset from Thomas Zanussi(trz@us.ibm.com) to probe vfs layer activities. nfs.stp: New tapset from Li Xuepeng(xuepengl@cn.ibm.com) to probe nfs file operations and nfs address space operations on client side. nfs_proc.stp: New tapset from Li Xuepeng to probe some nfs RPC procedure stub functions on client side. nfsd.stp: New tapset from Li Xuepeng to probe nfs server side activities, including some RPC procedure stub functions, nfsd dispatch routine, and nfsd_* functions
* 2006-08-22 Josh Stone <joshua.i.stone@intel.com>jistone2006-08-226-39/+47
| | | | | | | | PR 3094 From Eugeniy Meshcheryakov <eugen@debian.org>: * stap.1.in: In groff, '-' produces a Unicode hyphen. Use '\-' where a plain-old minus sign is desired, e.g., code examples. * lket.5.in, stapex.5.in, stapfuncs.5.in, stapprobes.5.in: ditto
* add signal trace hooks.guanglei2006-08-227-6/+463
| | | | eliminates the global stap variable to syscall tapset for faster speed
* More variables for signal.do_action and signal.procmask and a new functionguanglei2006-08-222-4/+31
| | | | get_sigset()
* 2006-08-21 Martin Hunt <hunt@redhat.com>hunt2006-08-212-16/+16
| | | | | * string.stp (substr): Rewrite. Make the 3rd parameter be the length.
* New tests for string functions.hunt2006-08-218-0/+123
|
* 2006-08-21 Martin Hunt <hunt@redhat.com>hunt2006-08-214-5/+12
| | | | | | | | * lib/stap_run.exp: Check for existence of installtest_p before running it. This reenables running individual tests with runtest. * lib/stap_run2.exp: Ditto. * lib/stap_run_binary.exp: Ditto.
* Add the description of signal.stp changesguanglei2006-08-181-1/+6
|
* 2006-08-17 Josh Stone <joshua.i.stone@intel.com>jistone2006-08-172-17/+19
| | | | | | | | * signal.stp: Changes on behalf of Manoj S Pattabhiraman: 1. As per the suggestions, i have removed the argstr from the probe points. 2. Added some checks to find whether the signals generated are USER or Kernel Mode in signal_handle probe.
* update signal.stp based on the discussion on mailinglistguanglei2006-08-172-25/+129
|
* 2006-08-15 Thang Nguyen <thang.p.nguyen@intel.com>tpnguyen2006-08-162-15/+60
| | | | | * ioblock.stp: Added safety checks for __bio_ino() and __bio_start_sect().