summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Factor out duplicated code to setup kernel/module Dwfl from dwflpp/translate.Mark Wielaard2009-09-286-162/+232
| | | | | | | | | | | * setupdwfl.h: New header file. * setupdwfl.cxx: New source file containing shared setup_dwfl_kernel() code. * dwflpp.cxx (dwfl_report_offline_predicate): Removed. (setup_kernel): Call setup_dwfl_kernel(). * translate.cxx (dwfl_report_offline_predicate2): Remove. (emit_symbol_data): Call setup_dwfl_kernel(). * Makefile.am (stap_SOURCES): Add setupdwfl.cxx. * Makefile.in: Regenerated.
* PR10700 Add newline after log() message.Mark Wielaard2009-09-281-1/+1
| | | | * tapset/logging.stp (log): Use _stp_printf "%s\n".
* Removing support for InMcastPkts, OutMcastPkts, InBcastPkts andDavid J. Wilder2009-09-251-82/+4
| | | | | OutBcastPkts. As they are not needed for tcpipstat and tend to break easily with kernel changes.
* No longer need buffer iterators.David Smith2009-09-251-2/+0
| | | | * runtime/tranport/ring_buffer.c: Removed 'USE_ITERS' definition.
* Purge warnings from buildok testsuite.Mark Wielaard2009-09-2522-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/buildok/fortysix.stp: Add -w. * testsuite/buildok/fortytwo.stp: Likewise. * testsuite/buildok/four.stp: Avoid empty begin. * testsuite/buildok/memory-all-probes.stp: Add -w. * testsuite/buildok/nfsd-all-probes.stp: Likewise. * testsuite/buildok/nine.stp: Likewise. * testsuite/buildok/one.stp: Use q. * testsuite/buildok/printf.stp: Remove unused foo(), printf x. * testsuite/buildok/process-all-probes.stp: Add -w. * testsuite/buildok/scheduler-all-probes.stp: Likewise. * testsuite/buildok/scsi-all-probes.stp: Likewise. * testsuite/buildok/signal-all-probes.stp: Likewise. * testsuite/buildok/sixteen.stp: log in foo(). * testsuite/buildok/socket-all-probes.stp: Add -w. * testsuite/buildok/stat_insert.stp: Declare x, y global. * testsuite/buildok/syscall.stp: Add -w. * testsuite/buildok/tcp-all-probes.stp: Likewise. * testsuite/buildok/thirtyone.stp: Likewise. * testsuite/buildok/twentyeight.stp: log absolute. * testsuite/buildok/twentyfour.stp: Add -w. * testsuite/buildok/udp-all-probes.stp: Likewise. * testsuite/buildok/vfs-all-probes.stp: Likewise.
* AUTHORS updateJosh Stone2009-09-242-2/+3
| | | | | * .mailmap: Normalize David (J.) Wilder. * AUTHORS: Rebuild, also adding Charley Wang & Roland Grunberg.
* Support DW_AT_const_value cases in loc2c and loc2c-test.Roland McGrath2009-09-243-16/+137
| | | | | | * loc2c.c (c_translate_constant): New function. * loc2c.h: Declare it. * loc2c-test.c (main): Use it for DW_AT_const_value cases.
* Added a basic ring_buffer transport test.David Smith2009-09-241-0/+32
| | | | * testsuite/systemtap.printf/ring_buffer.exp: New test.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-09-245-8/+59
|\
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapFrank Ch. Eigler2009-09-232-32/+105
| |\ | | | | | | | | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: Better grapher option handling. Fix configure on systems without 'gcc -fgnu89-inline' support (rhel4).
| * | PR10632: make randint() unprivilegedFrank Ch. Eigler2009-09-231-1/+1
| | |
| * | PR10632: simplify randint() implementationFrank Ch. Eigler2009-09-234-67/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tapset/random.stp (randint): Make it 1-arity (imply min=0). Document with kerneldoc. * doc/Systemtap_Tapset_Reference/tapsets.tmpl: Extract the docs. * runtime/arith.c (_stp_random_pm_u): Rename without _pm. (_stp_random_pm): Rewrite in terms of ..._u. * testsuite/random.stp: Adapt & simplify.
| * | PR10632: tapset: randint() function + testsRoland Grunberg2009-09-233-0/+62
| | |
| * | PR1062: runtime functionCharley Wang2009-09-231-0/+22
| | | | | | | | | | | | * arith.c (_stp_random_pm_u): New function.
* | | Fixed grapher build problem caused by configure update.David Smith2009-09-245-12/+12
| |/ |/| | | | | | | | | | | | | * grapher/Makefile.am: Updated gtkmm CFLAGS/LIBS variable name. * grapher/Makefile.in: Regenerated. * Makefile.in: Ditto. * doc/Makefile.in * doc/SystemTap_Tapset_Reference/Makefile.in
* | Better grapher option handling.David Smith2009-09-232-30/+46
| | | | | | | | | | | | * configure.ac: Don't check for gtkmm if '--disable-grapher' was used. Also, error if '--enable-grapher' was used but gtkmm isn't installed. * configure: Regenerated.
* | Fix configure on systems without 'gcc -fgnu89-inline' support (rhel4).David Smith2009-09-232-2/+59
|/ | | | | | * configure.ac: Only compile elfutils with '-fgnu89-inline' if the compiler actually supports it. * configure: Regenerated.
* Forward-ported staplog.c crash support (PR 10644).David Smith2009-09-233-62/+122
| | | | | | | | | | | | | | * staplog.c (get_rchan): Separated original relayfs code and current relayfs code. (get_rchan_buf): Ditto. (output_cpu_logs): Ditto. (get_rchan_addr): Handles original relayfs code detection. (setup_global_data): Looks for '_stp_relay_data' structure instead of '_stp_utt' structure. (open_output_file): Improved error message. * runtime/transport/relay_v2.c: Rearranged struct _stp_relay_data_type to make things a bit easier for staplog.c. * runtime/transport/relayfs.c: Ditto
* PR10390: ftrace() tapset functionFrank Ch. Eigler2009-09-237-34/+92
| | | | | | | | | | | * tapset/logging.stp (ftrace): New function. (*): Add kerneldoc to other functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Process logging.stp. * stapfuncs.3stap.in: Remove "LOGGING" section, now redundant. * runtime/autoconf-trace-printk.c: New autoconf test. * buildrun.cxx (compile_pass): Build it. * NEWS: Mention it. * testsuite/buildok/logging.stp: Test it.
* Version bumps for the 1.0 releaseJosh Stone2009-09-2213-3400/+4358
|
* Add NEWS for the sdt semaphoresJosh Stone2009-09-221-0/+3
|
* Add NEWS for C++ scopesJosh Stone2009-09-221-0/+6
|
* Move cross-compile NEWS before the mention of server supportJosh Stone2009-09-221-9/+9
|
* Minor NEWS formatting tweaksJosh Stone2009-09-221-32/+33
|
* optimization: reduce generated C code sizeFrank Ch. Eigler2009-09-221-4/+3
| | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Don't emit unnecessary 0 initializers for .tfi and .sdt_semaphore_addr.
* PR10574: remove comdat/duplicate functions with entrypc=0Frank Ch. Eigler2009-09-221-1/+12
| | | | * dwflpp.c (die_entrypc): Reject entrypc=0 functions.
* Allow errors from avahi-tools to go to stderr.Dave Brolley2009-09-212-2/+2
|
* Update NEWS with firewall requirements for systemtap client/server.Dave Brolley2009-09-211-0/+5
|
* Test all context related functions in one test.Mark Wielaard2009-09-1910-74/+10
| | | | | | | | | Saves a couple of seconds per individual test by doing them all in one. * testsuite/buildok/context_test.stp: Incorporate: modname.stp, probefunc.stp, probemod.stp, symdata.stp, symname.stp, uaddr.stp, ustack.stp, usymdata.stp, usymname.stp. Delete individual tests.
* Use less idle time in testsuite.Mark Wielaard2009-09-198-27/+30
| | | | | | | | | | | | | | | | A lot of tests wait, sleep or use a timer for multiple seconds when that is not necessary. Reduce the time waited so save test time. * testsuite/systemtap.base/backtrace.stp: Exit after 100ms. * testsuite/systemtap.base/badkprobe.exp: Likewise. * testsuite/systemtap.base/global_end.stp: Likewise. * testsuite/systemtap.base/itrace.exp: Wait 1 sec instead of 5 for each test. * testsuite/systemtap.base/maxactive.exp: Likewise. * testsuite/systemtap.base/onoffprobe.exp: Match and use modname, so build script can be cached. * testsuite/systemtap.base/onoffprobe.stp: Wait miliseconds instead of seconds in each alias. Output module_name. * testsuite/systemtap.base/poll_map.stp: Start after 100ms.
* Fix uninitialized line numbers in the function specJosh Stone2009-09-181-1/+4
| | | | | | | | | The rewrite of parse_function_spec left the line numbers uninitialized when not used, but elsewhere was depending on that. Fix the uninit, and also don't depend on it. * tapsets.cxx (dwarf_query::parse_function_spec): Init line stuff. (query_cu): Branch on the spec_type, not the line contents.
* PR10655 part 1: uprobes: track sdt semaphores properlyFrank Ch. Eigler2009-09-183-37/+52
| | | | | | | | | | | | | | | | | | | commit 6846cfc8 introduced an unintended side-effect where semaphore tracking was identified with stap_uprobe_specs[] elements, which are normally static/const. This kernel patch <http://article.gmane.org/gmane.linux.kernel/854187> catches and panics on this. The cure is to move the variable over to the stap_uprobes[] array. * tapsets.cxx (uprobe emit_module_decls): Add sdt_sem_address to stap_uprobe{} struct, to contain per-process relocated semaphore address. (emit_module_decls,_init): Remove tsk field, restore constness of appropriate locals. Activate uprobe semaphore right around uprobe activation time. Remove semaphore clearing upon process exit, since by then it's gone. (emit_module_exit): Use remembered relocated semaphore address to clean up. Fix "-uprobe" DEBUG_UPROBES message. * runtime.h: #include <linux/sched.h>. * dtrace.in (*_semaphore): Make it an unsigned short - intended 16 bits on all common architectures/multilibs.
* Update entries for unprivileged users and for cross compiling client/server.Dave Brolley2009-09-181-13/+24
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-09-187-18/+18
|\
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-09-182-2/+2
| |\
| | * buildok netdev.stp file shouldn't be using /usr/bin/env, but stap directly.Mark Wielaard2009-09-181-1/+1
| | |
| | * * vta-test.c: Include sdt.h under test, not system installed sys/sdt.h.Mark Wielaard2009-09-181-1/+1
| | |
| * | Fixed relay_old.c by providing ppoll().David Smith2009-09-182-9/+12
| |/ | | | | | | | | | | | | * runtime/staprun/staprun.h: Put ppoll() declaration here (so that relay_old.c can use it). * runtime/staprun/relay.c (ppoll): Made ppoll() non-static so that relay_old.c can use it.
| * Don't mark print_ustack() as pure, it has side effects (printing the stack).Mark Wielaard2009-09-181-1/+1
| | | | | | | | * tapset/ucontext-symbols.stp (print_ustack): Remove /* pure */
| * Uprobes not currently supported on ia64.William Cohen2009-09-181-1/+0
| |
| * Always mark .probes section as writable.Mark Wielaard2009-09-181-5/+3
| | | | | | | | | | | | | | | | | | Allocated section needs to be writable when creating pic shared objects because we store relocatable addresses in them. We used to make this read only for non-pic executables, but the new semaphore support relies on having a writable .probes section to put the enabled variables in. * includes/sys/sdt.h (ALLOCSEC): Define unconditionally as "aw".
* | stap-start-server(->stap-serverd) now accept -r -R -I -B and -a options for ↵Dave Brolley2009-09-186-82/+365
|/ | | | | | | cross compilation. Server correctly advertises itself wrt -r and -a. Fix bug in stap-server: fatal function was potentially recursive.
* Clarify and reformat some NEWS entries.Mark Wielaard2009-09-181-32/+34
|
* PR10417 Enable vta-test.exp testcase and add to NEWS.Mark Wielaard2009-09-183-3/+5
| | | | | | * NEW: Mention DW_OP_{implicit,stack}_value support. * testsuite/systemtap.base/vta-test.exp: Don't XFAIL. Use staprun2. * testsuite/systemtap.base/vta-test.stp: Enable all probes.
* PR10417 Fix declare_noncontig_union struct emitting.Mark Wielaard2009-09-181-2/+2
| | | | * loc2c.c (declare_noncontig_union): Only open struct when loc_noncontiguous.
* Fix build error with elfutils < 0.142.Roland McGrath2009-09-171-2/+4
| | | | | * loc2c.c [!_ELFUTILS_PREREQ (0,142)] (DW_OP_stack_value, DW_OP_implicit_value): Define as macros.
* Fix build error with elfutils < 0.142.Roland McGrath2009-09-171-4/+4
| | | | | * dwflpp.cxx (translate_location) [!_ELFUTILS_PREREQ (0,142)]: Pass new argument to c_translate_location.
* Whitespace cleanups in sdt.hJosh Stone2009-09-171-60/+60
|
* Ensure that STAP_PROBE behaves like a single statementJosh Stone2009-09-171-43/+22
| | | | | | | | | | It's important for macros like this to appear as a single statement, so they won't break the control flow of the caller. The new STAP_SEMAPHORE macro was breaking this masquerade, but now I've moved it inside of the do-while block. * includes/sys/sdt.h (STAP_SEMAPHORE): Define the disabled case empty. (STAP_PROBE[1-10]_): Move the semaphore inside the do-while block.
* Merge branch 'master' of sourceware.org:/git/systemtapJosh Stone2009-09-173-109/+174
|\