| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* stack.c (_stp_stack_sprint): Add a verbose arg
to pass along to underlying funcs.
|
|
|
|
|
| |
* runtime.h (init_module): Include full prototype
info in function cast to satisfy stap.
|
|
|
|
|
|
|
|
| |
* 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().
|
|
|
|
|
| |
* list.c (_stp_copy_argv_from_user): ifdef this function
NEED_STRING_VALS.
|
|
|
|
|
| |
* Makefile.template: Remove KTA, KALLSYMS_LOOKUP,
and KALLSYMS_LOOKUP_NAME
|
|
|
|
|
|
| |
* emul.h (_stp_kallsyms_lookup): Renamed from kallsyms_lookup.
* runtime.h: Add prototype for exit();
* copy.c: New file. Just some empty functions.
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* list.c (_stp_copy_argv_from_user): Move to here.
* copy.c (_stp_copy_argv_from_user): Delete.
* runtime.h: Always include copy.h.
|
|
|
|
|
| |
* stpd.c main): Add enable_relayfs flag.
Turn it off with "-r".
|
| |
|
| |
|
|
|
|
| |
* loc2c-runtime.h (deref_string): Rewritten using deref.
|
| |
|
| |
|
| |
|
|
|
|
| |
* loc2c-runtime.h (deref_string): New macro.
|
|
|
|
|
| |
* librelay.c (sigproc): Removed the "Exiting..."
message for now.
|
|
|
|
| |
* io.c (_stp_vlog): Send warnings and errors to STP_OOB_DATA.
|
|
|
|
| |
* transport_msgs.h (enum): New type, STP_OOB_DATA.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* librelay.c (merge_output): Don't add an extra \n.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* runtime.h: Add a prototype for _stp_dbug().
|
|
|
|
|
|
|
| |
* librelay.c (read_last_buffers): New function. Directly grab the
last buffers.
(info_pending): Deleted.
(request_last_buffers): Deleted.
|
| |
|
| |
|
|
|
|
| |
* runtime.h (kbug): New dbug macros that calls printk.
|
|
|
|
|
|
| |
* transport.h: Don't define _stp_transport_write.
* transport.c (_stp_transport_write): Use
_stp_transport_send() when in probe_exit().
|
|
|
|
|
|
| |
* Makefile (debug): Add debug target.
* librelay.h (dbug): Define.
* librelay.c: Enable some dbug lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* librelay.c (reader_thread): Check the return value for write().
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* runtime.h: Include io.c.
|
|
|
|
|
| |
* shellsnoop/shellsnoop.c: Remove STP_NETLINK_ONLY.
* stp: Deleted. Use stpd directly.
|
|
|
|
|
| |
* stpd.c (main): Simplify buffer size code.
* librelay.c: Major changes to support procfs instead of netlink.
|
|
|
|
|
|
|
|
|
|
|
| |
* transport.h: Remove netlink references.
* transport.c: Remove netlink references. Ifdef relayfs code.
* procfs.c: New file.
* Makefile: Deleted.
* control.c: Deleted.
* control.h: Deleted.
* netlink.c: Deleted.
* netlink.h: Deleted.
|
|
|
|
|
|
|
|
|
|
| |
* print.c: Change ifdefs to STP_RELAYFS.
* runtime.h: Ditto.
* io.c (_stp_vlog): Call _stp_write instead of
_stp_ctrl_send.
* Makefile: Don't build stp-control.
* README.doc: Update.
* TODO: Update.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2005-08-12 Graydon Hoare <graydon@redhat.com>
* translate.cxx (c_tmpcounter::visit_array_in): Implement.
(c_unparser::visit_array_in): Likewise.
(mapvar::exists): New method.
[runtime/ChangeLog]
2005-08-12 Graydon Hoare <graydon@redhat.com>
* map-values.c (_stp_map_entry_exists): New function.
* map.h (_stp_map_entry_exists): Declare it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR systemtap/1122 et alii
* parse.cxx (parse_literal): Parse and range-limit 64-bit numbers.
(parse_unary): Correct precedence glitch.
* staptree.h (literal_number): Store an int64_t.
* staptree.cxx: Corresponding changes.
* translate.cxx (check_dbz): Remove - insufficient.
(emit_function): Define CONTEXT macro sibling for THIS.
(c_typename): pe_long -> int64_t.
(visit_literal_number): Format literal rigorously and uglily.
(c_assignop, visit_binary_expression): Handle div/mod via new
helper functions in runtime.
* tapset/builtin_logging.stp: Add error, exit builtins.
* testsuite/buildok/ten,eleven.stp: New tests.
* testsuite/parse{ko,ok}/six.stp: Modify for larger numbers.
* testsuite/transok/one.stp: Add more ";"s, maybe unnecessarily.
2005-08-12 Frank Ch. Eigler <fche@elastic.org>
* arith.c: New file to contain arithmetic helper functions.
* builtin_functions.h: Remove, unused.
* runtime.h: Include it.
|
| |
|
|
|
|
|
| |
* loc2c-runtime.h (store_bitfield): Fix argument use.
(store_deref): New macro (three flavors).
|
|
|
|
|
| |
* io.c (_stp_vlog): Revert previous change for now.
* print.c (_stp_print_flush): Ditto.
|
|
|
|
| |
* transport.c: Comment out a couple printks.
|
| |
|
| |
|