summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* 2005-09-09 Martin Hunt <hunt@redhat.com>hunt2005-09-092-1/+14
| | | | * math/div64.c (main): Fixes for running on 64-bit hardware.
* Fix for jiffies.hunt2005-09-093-4/+4
|
* 2005-09-09 Martin Hunt <hunt@redhat.com>hunt2005-09-093-18/+22
| | | | | | | | * stat-common.c (_stp_stat_print_valtype): Use _stp_div64(). * arith.c (_stp_div64): Check error before writing to it. Remove check against 32-bit LONG_MIN and -1. That only applies to 64-bit. (_stp_mod64): Ditto.
* 2005-09-09 Martin Hunt <hunt@redhat.com>hunt2005-09-096-1/+208
| | | | | * README: Update. * math/div64.c: New file. 64-bit division tests.
* 2005-09-09 Martin Hunt <hunt@redhat.com>hunt2005-09-094-0/+11
| | | | | | * runtime.h: Add arith.c * recreate_links: Add arith.c * emul.h: Define jiffies so arith.c will compile.
* 2005-09-08 Martin Hunt <hunt@redhat.com>hunt2005-09-082-4/+9
| | | | | * arith.c (_stp_div64): Check for overflow. (_stp_mod64): Ditto.
* 2005-09-08 Martin Hunt <hunt@redhat.com>hunt2005-09-082-63/+281
| | | | | | | | * arith.c (_stp_div64): For 64-bit cpus, just use native division. Otherwise call _div64(). (_stp_mod64): Call _mod64() isf necessary. (_div64): 64-bit division for 32-bit cpus. (_mod64): 64-bit modulo for 32-bit cpus.
* 2005-09-08 Martin Hunt <hunt@redhat.com>hunt2005-09-082-3/+13
| | | | | | * procfs.c (_stp_register_procfs): Change ifdefs to eliminate unused variable warnings. (_stp_unregister_procfs): Ditto.
* 2005-09-08 Martin Hunt <hunt@redhat.com>hunt2005-09-082-1/+4
| | | | * map-values.c (_stp_map_entry_exists): Remove unused var.
* 2005-09-08 Martin Hunt <hunt@redhat.com>hunt2005-09-082-2/+6
| | | | | * scf/scf.c (inst_smp_call_function): Add new verbose arg to _stp_stack_sprint() call.
* 2005-09-06 Martin Hunt <hunt@redhat.com>hunt2005-09-063-21/+79
| | | | | | | | | | | | * librelay.c: Remove all USE_PROCFS ifdefs. (sig_usr): Signal handler for SIGUSR1. (start_cmd): New function to handle "-c" option, forks() off a new process then waits for SIGUSR1 to exec it. (init_stp): Call start_cmd(). (stp_main_loop): Set a signal handler for SIGCHLD. * stpd.c (main): Add "-t" and "-c" options. (usage): Update with new options.
* 2005-09-06 Martin Hunt <hunt@redhat.com>hunt2005-09-062-6/+8
| | | | | * transport.c (_stp_handle_start): Always reply to a start message with STP_START.
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-012-32/+31
| | | | | * stack.c (_stp_stack_sprint): Add a verbose arg to pass along to underlying funcs.
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-312-1/+5
| | | | | * runtime.h (init_module): Include full prototype info in function cast to satisfy stap.
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-315-23/+16
| | | | | | | | * sym.c (_stp_kallsyms_lookup): Moved to runtime.h. * stack.c (_stp_kta): Moved to runtime.h. * runtime.h (init_module): Initialize _stp_kallsyms_lookup and _stp_kta. * probes.c (_stp_lookup_name): Replaced by kallsyms_lookup_name().
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-312-0/+7
| | | | | * list.c (_stp_copy_argv_from_user): ifdef this function NEED_STRING_VALS.
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-312-5/+6
| | | | | * Makefile.template: Remove KTA, KALLSYMS_LOOKUP, and KALLSYMS_LOOKUP_NAME
* 2005-08-31 Martin Hunt <hunt@redhat.com>hunt2005-08-314-3/+17
| | | | | | * emul.h (_stp_kallsyms_lookup): Renamed from kallsyms_lookup. * runtime.h: Add prototype for exit(); * copy.c: New file. Just some empty functions.
* .roland2005-08-311-0/+7
|
* 2005-08-30 Roland McGrath <roland@redhat.com>roland2005-08-311-26/+36
| | | | | | | * loc2c-runtime.h (fetch_register, store_register): Rewritten to pass REGS to dwarf_register_<N> as a macro argument. [__i386__, __x86_64__]: Update dwarf_register_* macros. [__i386__] (dwarf_register_4): Define special case for stack pointer.
* 2005-08-29 Martin Hunt <hunt@redhat.com>hunt2005-08-304-33/+43
| | | | | | * list.c (_stp_copy_argv_from_user): Move to here. * copy.c (_stp_copy_argv_from_user): Delete. * runtime.h: Always include copy.h.
* 2005-08-29 Martin Hunt <hunt@redhat.com>hunt2005-08-292-17/+29
| | | | | * stpd.c main): Add enable_relayfs flag. Turn it off with "-r".
* (deref_string): terminateroland2005-08-251-0/+1
|
* .roland2005-08-251-0/+4
|
* 2005-08-25 Roland McGrath <roland@redhat.com>roland2005-08-251-2/+8
| | | | * loc2c-runtime.h (deref_string): Rewritten using deref.
* (deref_string): prettifyroland2005-08-251-5/+5
|
* silly macro typosfche2005-08-251-5/+5
|
* .roland2005-08-251-2/+6
|
* 2005-08-24 Roland McGrath <roland@redhat.com>roland2005-08-251-0/+7
| | | | * loc2c-runtime.h (deref_string): New macro.
* 2005-08-24 Martin Hunt <hunt@redhat.com>hunt2005-08-242-1/+6
| | | | | * librelay.c (sigproc): Removed the "Exiting..." message for now.
* 2005-08-24 Martin Hunt <hunt@redhat.com>hunt2005-08-242-2/+6
| | | | * io.c (_stp_vlog): Send warnings and errors to STP_OOB_DATA.
* 2005-08-24 Martin Hunt <hunt@redhat.com>hunt2005-08-242-0/+5
| | | | * transport_msgs.h (enum): New type, STP_OOB_DATA.
* 2005-08-24 Martin Hunt <hunt@redhat.com>hunt2005-08-244-3/+20
| | | | | | | | | | | * librelay.c (sigproc): Reestablish signal handler so impatient people don't hit ^C twice and terminate the program before it saves the data and removes the module. Also print a message to stderr that it is exiting. (stp_main_loop): Write OOB data (warnings, errors, etc) to stderr instead of stdout. * librelay.h: Write debug info to stderr. * Makefile: add librelay.h to dependencies.
* *** empty log message ***hunt2005-08-241-5/+19
|
* 2005-08-23 Martin Hunt <hunt@redhat.com>hunt2005-08-242-3/+5
| | | | * librelay.c (merge_output): Don't add an extra \n.
* 2005-08-23 Martin Hunt <hunt@redhat.com>hunt2005-08-243-6/+28
| | | | | | | | | * transport.c (_stp_cleanup_and_exit): Remove a 2 second sleep that should no longer be necessary. * procfs.c (_stp_write): If the ready queue is not empty then attempt to grab the last buffer in it and append our data to it.
* 2005-08-23 Martin Hunt <hunt@redhat.com>hunt2005-08-242-0/+5
| | | | * runtime.h: Add a prototype for _stp_dbug().
* 2005-08-23 Martin Hunt <hunt@redhat.com>hunt2005-08-242-38/+29
| | | | | | | * librelay.c (read_last_buffers): New function. Directly grab the last buffers. (info_pending): Deleted. (request_last_buffers): Deleted.
* typo fixfche2005-08-231-1/+1
|
* New benchmark: trans_bench.hunt2005-08-2210-56/+384
|
* 2005-08-22 Martin Hunt <hunt@redhat.com>hunt2005-08-222-0/+6
| | | | * runtime.h (kbug): New dbug macros that calls printk.
* 2005-08-22 Martin Hunt <hunt@redhat.com>hunt2005-08-223-10/+24
| | | | | | * transport.h: Don't define _stp_transport_write. * transport.c (_stp_transport_write): Use _stp_transport_send() when in probe_exit().
* 2005-08-22 Martin Hunt <hunt@redhat.com>hunt2005-08-224-7/+21
| | | | | | * Makefile (debug): Add debug target. * librelay.h (dbug): Define. * librelay.c: Enable some dbug lines.
* 2005-08-21 Frank Ch. Eigler <fche@redhat.com>fche2005-08-212-11/+15
| | | | | | | | | | | | | | | | | PR systemtap/1195, systemtap/1193 * elaborate.cxx (alias_expansion_builder): Set new block token. * parse.cxx (parse_symbol): Set new target_symbol token. * runtest.sh: Store more pertinent failure data. * tapsets.cxx (emit_probe_entries): Rewrite error-handling path. * translate.cxx (emit_common_header): Goodbye errorcount, hello last_error & last_stmt. (c_unparser::visit_statement): New "header" for all other stmts. (c_assignop, visit_binary_expression): Adapt to last_error. * tapset/builtin_logging.stp: Adapt to last_error. 2005-08-21 Frank Ch. Eigler <fche@redhat.com> * arith.c (*): Adapt to last_error context variable.
* 2005-08-19 Frank Ch. Eigler <fche@elastic.org>fche2005-08-192-1/+27
| | | | | | | | | | | | | | | | | PR systemtap/1209 * tapsets.cxx * elaborate.cxx (derived_probe_builder): Add get_param function. * elaborate.h: Declare them. * tapsets.cxx (dwarf_query::get_*_param): Call them. (timer_derived_probe, timer_builder): New classes. (register_standard_tapsets): Register timer.jiffies(N) and friend. * translate.cxx (translate_pass): #include <linux/timers.h>. * stap.1.in: Document timer.jiffies(N) probe points. * testsuite/buildok/fourteen.stp: New test. 2005-08-19 Frank Ch. Eigler <fche@elastic.org> * arith.c (_stp_random_pm): New function.
* 2005-08-19 Martin Hunt <hunt@redhat.com>hunt2005-08-193-46/+18
| | | | | | | | | | * transport.c (_stp_cmd_handler): Remove. This was used by stp-control. * procfs.c (_stp_proc_write_cmd): Call schedule_work() instead of running _stp_exit_handler immediately. Fixes a problem where the module couldn't exit if all the output buffers were full. Set .owner for the filesystem entries.
* 2005-08-19 Martin Hunt <hunt@redhat.com>hunt2005-08-192-1/+6
| | | | * librelay.c (reader_thread): Check the return value for write().
* 2005-08-19 Frank Ch. Eigler <fche@elastic.org>fche2005-08-193-3/+19
| | | | | | * librelay.c (modpath): New global. Use it for insmod only. * stpd.c (main): Set both modpath and modname, to support modules specified by full path name.
* Fix typo.hunt2005-08-191-3/+3
|
* 2005-08-19 Martin Hunt <hunt@redhat.com>hunt2005-08-192-0/+5
| | | | * runtime.h: Include io.c.