summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* %0s support to print null-terminated stringguanglei2006-05-091-0/+5
|
* 2006-05-03 Josh Stone <joshua.i.stone@intel.com>jistone2006-05-032-2/+8
| | | | | | * loc2c-runtime.h (deref_string): resolved gcc "warning: assignment makes integer from pointer without a cast" when using a pointer as the source address.
* 2006-04-28 Martin Hunt <hunt@redhat.com>hunt2006-04-282-1/+5
| | | | * vsprintf.c (_stp_vsnprintf): Fix argument size for %p.
* Fixing BZ#2583hien2006-04-211-3/+3
|
* Print error and exit if "stap" fails.hunt2006-04-191-6/+8
|
* 2006-04-17 Martin Hunt <hunt@redhat.com>hunt2006-04-172-27/+56
| | | | | | * vsprintf.c (_stp_vsnprintf): Fix endian before writing binary. (_stp_endian): New variable to control endianess.
* fix TIMESTAMP_SIZE conflict with Suse kernelstrz2006-04-112-4/+9
|
* 2006-04-10 Martin Hunt <hunt@redhat.com>hunt2006-04-112-4/+13
| | | | | * procfs.c (_stp_write): More fixes because buffers are no longer null-terminated.
* 2006-04-10 Martin Hunt <hunt@redhat.com>hunt2006-04-112-1/+4
| | | | | * string.c (_stp_string_cat_cstr): No need to copy terminating 0.
* 2006-04-10 Martin Hunt <hunt@redhat.com>hunt2006-04-112-0/+13
| | | | * vsprintf.c (_stp_snprintf): New function.
* 2006-04-10 Martin Hunt <hunt@redhat.com>hunt2006-04-112-2/+8
| | | | | * stat-common.c (_stp_stat_print_histogram): Write a newline at the end of the histogram.
* 2006-04-09 Martin Hunt <hunt@redhat.com>hunt2006-04-104-7/+408
| | | | | | | | | | | * print.c (_stp_print_flush): Send 'len" bytes instead of 'len+1', which included terminating 0. * string.c (_stp_sprintf): Call _stp_vsnprintf() instead of vsnprintf(). (_stp_vsprintf): Ditto. * vsprintf.c: New file.
* 2006-04-08 Martin Hunt <hunt@redhat.com>hunt2006-04-082-8/+12
| | | | | * librelay.c (stp_main_loop): Write with fwrite() instead of fputs() so we can write binary data.
* 2006-04-05 Martin Hunt <hunt@redhat.com>hunt2006-04-052-1/+6
| | | | | * librelay.c (merge_output): Remove ANSI codes and write warning to stderr.
* 2006-04-05 Martin Hunt <hunt@redhat.com>hunt2006-04-053-6/+12
| | | | | | * librelay.c (merge_output): Set the output filename if necessary. * stpd.c (main): Don't reset output_filename just because relayfs is possible. Move that code to librelay.c.
* Correct the initialization to work with gcc 4.1.wcohen2006-04-052-1/+5
|
* .roland2006-04-051-16/+20
|
* 2006-04-04 Roland McGrath <roland@redhat.com>roland2006-04-051-6/+7
| | | | * stpd.c (main): Cast f_type when comparing; type differs by machine.
* fix for bug #2511trz2006-04-042-4/+9
|
* 2006-03-30 Martin Hunt <hunt@redhat.com>hunt2006-03-302-0/+35
| | | | * emul.h (kmalloc_node): New.
* 2006-03-30 Martin Hunt <hunt@redhat.com>hunt2006-03-303-4/+8
| | | | * string.c (_stp_string_cat_cstr): Use memcpy() instead of strncpy().
* *** empty log message ***hunt2006-03-271-0/+15
|
* 2006-03-26 Martin Hunt <hunt@redhat.com>hunt2006-03-262-28/+34
| | | | | | | | | | | | | | | * bench2/bench.rb (Bench::run): Instead of loading the module once and running against different numbers of threads, load and unload the module each time. Then keep track of failures per thread. Also use the new itest to keep the tests the same size regardless of the number of threads. (Bench::initialize): Make itest if needed. (Bench::load, Stapbench::load): Increase buffer size to 8MB. * bench2/itest.c: Change arg to be the number of threads instead of the number of millions of calls to make. This makes it easy to divide the work among multiple threads without making the test run many times longer.
* 2006-03-24 Martin Hunt <hunt@redhat.com>hunt2006-03-241-10/+20
| | | | | Patch from Gui,Jian <guij@cn.ibm.com> * bench2/bench.rb: PPC64 fixes.
* Fix 2076.hien2006-03-201-42/+48
|
* 2006-03-20 Martin Hunt <hunt@redhat.com>hunt2006-03-202-4/+6
| | | | * procfs.c (_stp_write): Combine buffers only for REALTIME_DATA.
* *** empty log message ***hunt2006-03-201-2/+4
|
* change relayfs version checking ifdefstrz2006-03-166-14/+19
|
* Fix for bug #2406 (autodetect supported relayfs versions)trz2006-03-158-17/+212
|
* Added multiple threads and better cpuspeed handling.hunt2006-03-155-67/+143
|
* 2006-03-15 Martin Hunt <hunt@redhat.com>hunt2006-03-152-1/+5
| | | | * procfs.c (STP_DEFAULT_BUFFERS): Bump up to 256.
* 2006-03-09 Martin Hunt <hunt@redhat.com>hunt2006-03-0910-0/+438
| | | | * bench2: New directory containing a benchmark framework.
* 2006-03-06 Martin Hunt <hunt@redhat.com>hunt2006-03-063-28/+100
| | | | | | | | | | * librelay.c (start_cmd): Set proper uid/gid before execing command. (system_cmd): New function. (cleanup_and_exit): Wait for any child processes to complete. (stp_main_loop): Recognize STP_SYSTEM message. * stpd.c (main): Add support for "-u username".
* 2006-03-06 Martin Hunt <hunt@redhat.com>hunt2006-03-062-0/+10
| | | | * transport_msgs.h (struct cmd_info): New message.
* 2006-02-25 Martin Hunt <hunt@redhat.com>hunt2006-02-255-27/+137
| | | | | | | | | | | | | | | | | | * procfs.c (_stp_proc_write_cmd): Check return code for _stp_transport_open(). * transport.c (_stp_transport_write): This function can now sleep because it is (_stp_handle_start): Don't use a mutex when a simple atomic will do. (_stp_work_queue): Check atomic to see if probe_start() has finished before attempting exit. (_stp_transport_close): PR2391. Cancel work queue. (_stp_transport_init): If _stp_register_procfs() fails, return an error code. * transport.txt: New file. Documents transport initialization and shutdown sequence.
* 2006-02-25 Martin Hunt <hunt@redhat.com>hunt2006-02-252-6/+15
| | | | * librelay.c (init_stp): Better error handling and cleanup.
* 2006-02-23 Frank Ch. Eigler <fche@elastic.org>fche2006-02-233-5/+31
| | | | | | | | | | | | | | | PR 1304 * parse.cxx (lexer): Take systemtap_session argument. (lexer::scan): Support $1..$NNNN and @1...@NNNN expansion. * stap.1.in: Document this. * testsuite/semok/args.stp: New test. * translate.cxx (var::init, emit_global): Emit code to allow named module parameters to initialize global string/number scalars. * stap.1.in: Don't document this yet. PR 2334 * main.cxx (main): Clarify "-v" option repeatibility. * stap.1.in: Ditto.
* 2006-02-17 Martin Hunt <hunt@redhat.com>hunt2006-02-173-11/+23
| | | | | | | * procfs.c (_stp_proc_read_cmd): Change spin_lock() to spin_lock_irqsave(). * transport.c (_stp_work_queue): Ditto.
* 2006-02-10 Martin Hunt <hunt@redhat.com>hunt2006-02-102-4/+6
| | | | * copy.c (_stp_copy_from_user): Revert previous incorrect change.
* 2006-02-09 Martin Hunt <hunt@redhat.com>hunt2006-02-102-1/+8
| | | | | * copy.c (_stp_copy_from_user): If access fails, return -1.
* Cleanuphunt2006-01-251-2/+6
|
* 2006-01-25 Martin Hunt <hunt@redhat.com>hunt2006-01-252-0/+7
| | | | * agg/stats.c (main): Delete Stats when done.
* 2006-01-25 Martin Hunt <hunt@redhat.com>hunt2006-01-252-0/+40
| | | | | * alloc.c (_stp_alloc_percpu): New function. (_stp_free_percpu): New function.
* 2006-01-25 Martin Hunt <hunt@redhat.com>hunt2006-01-253-3/+85
| | | | | | | | * stat.c (_stp_stat_init): Use _stp_alloc_percpu(). (_stp_stat_del): New function. * alloc.c (_stp_alloc_percpu): New function. (_stp_free_percpu): New function.
* 2006-01-19 Martin Hunt <hunt@redhat.com>hunt2006-01-193-11/+15
| | | | | * pmap-gen.c (_stp_pmap_get): Fix bug where old data from agg map could be returned after element was deleted.
* 2006-01-16 Josh Stone <joshua.i.stone@intel.com>jistone2006-01-162-0/+22
| | | | | | | | | | | | | | | | | | PR 2140 * translate.cxx (mapvar::del): Add ability to delete an indexed stat from (p)maps. (delete_statement_operand_visitor::visit_symbol): Add ability to delete entire pmaps and scalars. (delete_statement_operand_tmp_visitor): Add a special tmpvar visitor to parallel delete_statement_operand_visitor. (c_tmpcounter::visit_delete_statement): Invoke the new visitor. * testsuite/buildok/delete.stp: Also test scalar deletes. * vim/syntax/stap.vim: Recognize 'delete' operator. 2006-01-16 Josh Stone <joshua.i.stone@intel.com> * stat.c (_stp_stat_clear): add a function that just clears a Stat, so we can use delete in the translator.
* 2006-01-16 Martin Hunt <hunt@redhat.com>hunt2006-01-162-3/+12
| | | | | * map.c (_stp_pmap_agg): Return NULL when aggregation fails.
* 2006-01-15 Frank Ch. Eigler <fche@elastic.org>fche2006-01-152-3/+4
| | | | | | | | PR 2148 * translate.cxx (MAXERRORS): Actually the max should be 0, so first error aborts session. * Revert last stp_exit change.
* 2006-01-10 Martin Hunt <hunt@redhat.com>hunt2006-01-102-0/+7
| | | | * io.c (_stp_exit): set STAP_SESSION_STOPPING.
* 2006-01-03 Frank Ch. Eigler <fche@redhat.com>fche2006-01-032-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR 1144, 1379 * tapsets.cxx (emit_probe_prologue, _epilogue): New routines. Call from existing derived_probe spots. Implement soft errors in epilogue code. Implement reentrancy detection in prologue code. (dwarf_derived_probe::emit_deregistration): Add kprobes layer "nmissed" to skipped_count. * translate.cxx (varlock): Use nsleep(TRYLOCKDELAY) in lock contention loop. (emit_module_exit): Report number of soft errors and skipped probes. (emit_function, _probe): Add __restrict__ marker to context pointer. (translate_pass): Define new MAXTRYLOCK, TRYLOCKDELAY, MAXERRORS, MAXSKIPPED parameters. * tapset/logging.stp (error): Don't stp_error, just set context state. * stap.1.in, stapfuncs.5.in: Document soft errors. * elaborate.h: Corresponding changes. 2006-01-03 Frank Ch. Eigler <fche@redhat.com> * io.c (_stp_softerror): New function. 2006-01-03 Frank Ch. Eigler <fche@redhat.com> * systemtap.base/timers.exp: Extend the test run duration. Accept skipped probe warnings at shutdown.