* Makefile.am (install-data-local): Rewrite. Set
ownership and permissions for all files and directories
under runtime and tapset. Restrict files to source code.
* Makefile.in: Rebuilt.
2006-04-12 Martin Hunt <hunt@redhat.com>
PR 2497
* translate.cxx (translate_pass): Don't
reset STP_STRING_SIZE if it was already defined.
Set it to 1024 by default.
PR2525
* timestamp.stp (__check_xtime_lock): check if xtime is available
(gettimeofday_s, gettimeofday_ms, gettimeofday_us): error out if
called when xtime is not available, to avoid deadlock
* 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.
hunt [Thu, 30 Mar 2006 17:24:40 +0000 (17:24 +0000)]
2006-03-30 Martin Hunt <hunt@redhat.com>
* tapsets.cxx (dwarf_derived_probe::emit_registrations):
Change maxactive so single-processor kernels using
kretprobes don't get lots of dropped probes.
jistone [Thu, 30 Mar 2006 00:00:29 +0000 (00:00 +0000)]
2006-03-29 Josh Stone <joshua.i.stone@intel.com>
* tapsets.cxx (hrtimer_derived_probe::*): creates a probe point
based on the hrtimer APIs.
* tapsets.cxx (hrtimer_builder::*): parses the user's time-spec
into a 64-bit nanosecond value, and calls the appropriate
derived_probe.
* tapsets.cxx (register_standard_tapsets): add hrtimer bindings
* translate.cxx (translate_pass): add linux/random.h include,
used for generating 64-bit random numbers for hrtimers.
hunt [Sun, 26 Mar 2006 22:47:10 +0000 (22:47 +0000)]
2006-03-26 Martin Hunt <hunt@redhat.com>
* 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.
jistone [Tue, 14 Mar 2006 01:00:34 +0000 (01:00 +0000)]
2006-03-13 Josh Stone <joshua.i.stone@intel.com>
* safety/safety.py: Support IA64 disassembly matching.
* safety/data/opcodes-ia64: new opcode rules for IA64.
* safety/data/references: Add references used by example scripts
when compiled for IA64.
fche [Mon, 6 Mar 2006 23:07:56 +0000 (23:07 +0000)]
2006-03-06 Frank Ch. Eigler <fche@elastic.org>
PR 2425
* staptree.cxx (varuse_collecting_visitor::visit_embeddedcode):
Realize that $var-setter functions have side-effects.
* testsuite/transok/tval-opt.stp: New test.
hunt [Mon, 6 Mar 2006 20:42:22 +0000 (20:42 +0000)]
2006-03-06 Martin Hunt <hunt@redhat.com>
* 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.
jistone [Fri, 3 Mar 2006 18:37:33 +0000 (18:37 +0000)]
2006-03-03 Josh Stone <joshua.i.stone@intel.com>
* main.cxx (main): search forward for dashes in the kernel release,
to work properly with release names with more than one dash.
* parse.cxx (eval_pp_conditional): ditto
* tapsets.cxx (profile_derived_probe::profile_derived_probe): ditto
* safety/safety.py (StaticSafety::__build_search_suffixes): ditto,
and add copyright & GPL tag
fche [Sat, 25 Feb 2006 21:05:46 +0000 (21:05 +0000)]
2006-02-25 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (var::init): Don't crush string module_params.
(emit_global_param): New function, forked out of emit_global,
to put module_param calls at the bottom of C file.
* translate.h: Corresponding changes.
hunt [Sat, 25 Feb 2006 10:18:39 +0000 (10:18 +0000)]
2006-02-25 Martin Hunt <hunt@redhat.com>
* 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.
fche [Thu, 23 Feb 2006 22:35:40 +0000 (22:35 +0000)]
2006-02-23 Frank Ch. Eigler <fche@elastic.org>
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.