]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoPR4166: Allow array-like indexing on pointers
Josh Stone [Wed, 15 Jul 2009 00:57:16 +0000 (17:57 -0700)]
PR4166: Allow array-like indexing on pointers

* dwflpp.cxx (dwflpp::translate_components): let pointers get treated
  the same as arrays, and add a final DIE dereference for array access.
* loc2c.c (c_translate_array): tolerate pointer types
* testsuite/systemtap.base/pointer_array.*: new test

15 years agotapsets.cxx doesn't need loc2c.h. All done through dwflpp.cxx now.
Mark Wielaard [Tue, 14 Jul 2009 20:17:56 +0000 (22:17 +0200)]
tapsets.cxx doesn't need loc2c.h. All done through dwflpp.cxx now.

* tapsets.cxx: Remove loc2c.h include.

15 years agoRemove -O[0123s] gcc optimization flags for gcc pass 4 speedups again.
Mark Wielaard [Tue, 14 Jul 2009 09:47:46 +0000 (11:47 +0200)]
Remove -O[0123s] gcc optimization flags for gcc pass 4 speedups again.

We cannot guarantee that (un)optimized code compiles and/or generates
fully functional code, so don't tempt the user to try it out.

* session.h (struct systemtap_session): Remove gcc_flags string field.
* hash.cxx (find_script_hash): Don't add gcc_flags.
* main.cxx (usage): Remove -O[0123s] documentation.
(main): Don't use gcc_flags.
* buildrun.cxx (compile_pass): Don't add gcc_flags to EXTRA_CFLAGS.
* stap1.in: Remove -O[0123s] documentation.
* testsuite/systemtap.base/cache.exp: Remove tests for -O[0123s].

15 years agoMake kernel opt-level the default again.
Mark Wielaard [Mon, 13 Jul 2009 22:30:55 +0000 (00:30 +0200)]
Make kernel opt-level the default again.

* main.cxx (main): Default gcc_flags to kernel opt-level (empty).
* buildrun.cxx (compile_pass): Add -freorder-blocks back, document choices.
* stap.1.in: Document new default opt-level.
* testsuite/systemtap.base/cache.exp: Adjust for new caching results.

15 years agoPR10075: emit address in probe registration logic
wenji [Sat, 27 Jun 2009 13:10:18 +0000 (09:10 -0400)]
PR10075: emit address in probe registration logic

* tapsets.cxx(dwarf_derived_probe_group::emit_module_init,
  kprobe_derived_probe_group::emit_module_init): print address.

15 years agoAdd -O[0123s] gcc optimization flags for gcc pass 4 speedup.
Mark Wielaard [Sat, 11 Jul 2009 17:59:42 +0000 (19:59 +0200)]
Add -O[0123s] gcc optimization flags for gcc pass 4 speedup.

* session.h (struct systemtap_session): Add gcc_flags string field.
* main.cxx (usage): Document -O[0123s].
  (main): Default gcc_flags to -O0. Add O:: to getopt_long. Handle case
  'O' to set gcc_flags.
* buildrun.cxx (compile_pass): Add gcc_flags to EXTRA_CFLAGS.
* stap1.in: Add -O[0123s] documentation.
* testsuite/systemtap.base/cache.exp: Add tests for -O[0123s].

15 years agoPR3523 was fixed, enable -t cache test case.
Mark Wielaard [Sat, 11 Jul 2009 17:28:00 +0000 (19:28 +0200)]
PR3523 was fixed, enable -t cache test case.

* testsuite/systemtap.base/cache.exp: Enable -t tests.

15 years agoDon't accidentially use user space ntohs function.
Mark Wielaard [Sat, 11 Jul 2009 09:58:52 +0000 (11:58 +0200)]
Don't accidentially use user space ntohs function.

The definition of ntohs comes from user space include headers
netinet/in.h which could define it as function instead of macro.
So use builtin kernel be16_to_cpu instead.

* tapset/aux_syscalls.stp (_struct_sockaddr_u): Define and use _stp_ntohs
  as be16_to_cpu.

15 years agoFix source_loc ostream operator << representation.
Mark Wielaard [Fri, 10 Jul 2009 15:58:01 +0000 (17:58 +0200)]
Fix source_loc ostream operator << representation.

* parse.cxx (operator << (ostream&,const source_loc&)): Add loc.file->name.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 10 Jul 2009 15:10:51 +0000 (11:10 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoRename systemtap_exit to cleanup.
Dave Brolley [Fri, 10 Jul 2009 15:09:36 +0000 (11:09 -0400)]
Rename systemtap_exit to cleanup.
Allow shutdown_server to test $server_pid in order to determine whether we started a server.

15 years agoAdd numa_faults.stp example.
William Cohen [Fri, 10 Jul 2009 14:34:13 +0000 (10:34 -0400)]
Add numa_faults.stp example.

15 years agoPR10381 sdt.h macros create relocatable addresses in non-writable section.
Mark Wielaard [Fri, 10 Jul 2009 11:53:00 +0000 (13:53 +0200)]
PR10381 sdt.h macros create relocatable addresses in non-writable section.

Allocated section needs to be writable when creating pic shared objects
because we store relocatable addresses in them.

* includes/sys/sdt.h (ALLOCSEC): New macro, depends on __PIC__.
  (STAP_PROBE_DATA_): Use new ALLOCSEC macro.

15 years agoRemove the filename copy from token->location
Josh Stone [Thu, 9 Jul 2009 19:46:57 +0000 (12:46 -0700)]
Remove the filename copy from token->location

The location already has a pointer to a stapfile with the filename, so
there's no need to keep an extra copy.

15 years agoOptimize string usage in the lexer
Josh Stone [Thu, 9 Jul 2009 19:43:00 +0000 (12:43 -0700)]
Optimize string usage in the lexer

This speeds up the parsing stage >2x, mostly by minimizing string
construction and comparison where char comparison will do.

15 years agoAdded timer data flushing and overwrite handling to the ring_buffer transport.
David Smith [Thu, 9 Jul 2009 20:16:57 +0000 (15:16 -0500)]
Added timer data flushing and overwrite handling to the ring_buffer transport.
* buildrun.cxx (compile_pass): Checks for ring_buffer api change.
* runtime/autoconf-ring_buffer-flags.c: New file.
* runtime/transport/ring_buffer.c (tracing_wait_pipe): No longer
  schedules, just returns.  The timer function will handle it later.
  (_stp_data_write_reserve): Handles ring_buffer api change.  Added
  overwrite processing.  If we're full, delete an event to make room.
  (_stp_data_write_commit): Handles ring_buffer api change.
  (__stp_relay_wakeup_timer): New function.
  (__stp_relay_timer_start): Ditto.
  (__stp_relay_timer_stop): Ditto.
  (_stp_transport_data_fs_start): Calls __stp_relay_timer_start().
  (_stp_transport_data_fs_stop): Calls __stp_relay_timer_stop().
  (_stp_transport_data_fs_overwrite): Sets overwrite flag.

15 years agoPR3498, cont'd
Frank Ch. Eigler [Thu, 9 Jul 2009 17:39:03 +0000 (13:39 -0400)]
PR3498, cont'd

* dwflpp.cxx (dwfl_report_offline_predicate): Reject NULL filenames.

15 years agoFix signal.send matching for 2.6.30+.
Roland McGrath [Thu, 9 Jul 2009 07:02:52 +0000 (00:02 -0700)]
Fix signal.send matching for 2.6.30+.

15 years agoClarify sdt.h license for public domain.
Stan Cox [Wed, 8 Jul 2009 21:05:27 +0000 (17:05 -0400)]
Clarify sdt.h license for public domain.

15 years agoDo not use GPL for sdt.h.
Stan Cox [Wed, 8 Jul 2009 20:30:15 +0000 (16:30 -0400)]
Do not use GPL for sdt.h.

15 years agoPR3498 cont'd, fix wildcard module("*") probes
Frank Ch. Eigler [Wed, 8 Jul 2009 17:04:10 +0000 (13:04 -0400)]
PR3498 cont'd, fix wildcard module("*") probes

* dwflpp.cxx (name_has_wildcard): Make static.
  (dwfl_report_offline_predicate): Check & adjust behavior.
* dwflpp.h: Corresponding changes.
* tapsets.cxx: Note that kern_dw[] keys may be wildcard strings.
* testsuite/buildok/fortysix.stp: New test.

15 years agoAdd support for constant struct member field offsets.
Mark Wielaard [Tue, 7 Jul 2009 12:35:10 +0000 (14:35 +0200)]
Add support for constant struct member field offsets.

* loc2c.h (c_translate_add_offset): New function prototype.
* loc2c.c (c_translate_add_offset): New function implementation.
* loc2c-test.c (handle_variable): Use c_translate_add_offset if appropriate.
* dwflpp.cxx (translate_location): Likewise.

15 years agoMore gcc 4.5 'jump skips variable initialization' fixlets.
Mark Wielaard [Wed, 8 Jul 2009 07:38:33 +0000 (09:38 +0200)]
More gcc 4.5 'jump skips variable initialization' fixlets.

* tapset/ioblock.stp (__bio_start_sect): Declare, then initialize variables
  that could (through kread) take an early jump.
* tapset/nfs_proc.stp (get_prot_from_client): Likewise.
* tapset/scsi.stp (scsi_timer_pending): Likewise.
* tapset/task.stp (task_cpu): Likewise.
  (task_open_file_handles): Likewise.

15 years agocanonicalize exelib.exp test case names by [file tail /full/path]
Frank Ch. Eigler [Wed, 8 Jul 2009 00:17:48 +0000 (20:17 -0400)]
canonicalize exelib.exp test case names by [file tail /full/path]

15 years agoPR3498: speed up pass-2 and pass-3 for kernel offline dwfl module searching
Frank Ch. Eigler [Tue, 7 Jul 2009 18:36:53 +0000 (14:36 -0400)]
PR3498: speed up pass-2 and pass-3 for kernel offline dwfl module searching

* dwflpp.cxx (dwflpp ctor): Parametrize for user/kernel modes.
  Update callers.
  (dwfl_report_offline_predicate): New function.  Filter and
  abort searches early if possible.
  (setup_kernel): Use new predicate.
* dwflpp.h: Corresponding changes.
* tapsets.cxx (dwfl_report_offline_predicate): Remove this shared
  implementation.
  (dwarf_builder): Turn kern_dw into module_name->dwflpp* map, just
  like user_dw.
  (get_kern_dw): Adapt.
  (dwarf_build_no_more): Adapt.
* tapsets.h: Remove old shared predicate.
* translate.cxx (dwfl_report_offline_predicate2): New function.
  Filter and abort searches early if possible.
  (emit_symbol_data): Use it.

15 years agoPR10348 Compilation failure with gcc 4.5 snapshot: switch jumps over vars.
Mark Wielaard [Tue, 7 Jul 2009 18:19:40 +0000 (20:19 +0200)]
PR10348 Compilation failure with gcc 4.5 snapshot: switch jumps over vars.

* loc2c-test.c (print_vars): Define attr_mem, typedie_mem and typedie before
  switch.
* loc2c.c (translate): Wrap case DW_OP_drop in block brackets.
  (location_relative): Initialize stack.

15 years agoBZ 490234 fix.
David Smith [Mon, 6 Jul 2009 14:16:28 +0000 (09:16 -0500)]
BZ 490234 fix.
* runtime/procfs.c (_stp_rmdir_proc_module): Now before removing either
  '/proc/systemtap/${MODULE}' or '/proc/systemtap', lock the transport
  directory.  Also make sure '/proc/systemtap' is empty before removal.

15 years agoFixed PR 10258.
David Smith [Thu, 2 Jul 2009 20:39:57 +0000 (15:39 -0500)]
Fixed PR 10258.
* tapset-procfs.cxx (procfs_derived_probe::join_group): Outputs structure
  definition.
  (procfs_derived_probe_group::emit_module_decls): The generated
  '_stp_procfs_read' and '_stp_procfs_write' functions no longer put a
  string_t on the stack.
  (procfs_var_expanding_visitor::visit_target_symbol): The generated
  '_procfs_value_set' and '_procfs_value_get' functions copy directly
  into or out of the os buffer.

15 years agoPR10327: resolve symbol aliases to dwarf functions
Josh Stone [Thu, 2 Jul 2009 01:59:41 +0000 (18:59 -0700)]
PR10327: resolve symbol aliases to dwarf functions

This will first read in the symbol table for modules, and update the
dwarf cu_function_cache with aliased names too.  Then when iterating
in dwarf, all of the possible names are matched, instead of only the
canonical dwarf name.

* dwflpp.cxx (dwflpp::iterate_over_functions): call update_symtab,
  and track wildcard addresses in a set to avoid alias dupes
* dwflpp.h (symbol_table::Compare): removed
* tapsets.cxx (symbol_table::map_by_addr): replaces list_by_addr
  (symbol_table::sort): removed -- multimap doesn't need sorting
  (symbol_table::mark_dwarf_redundancies): removed, see update_symtab
  (symbol_table::purge_syscall_stubs): remove map elements inline
  (dwarf_query::handle_query_module): preload the symtable.
  (query_dwarf_func): don't compare the function a second time,
  especially since it may have been an alias that matched at first.
  (module_info::get_symtab): allow being called multiple times
  (module_info::update_symtab): copy dies from the cache to the symtab,
  and also add aliased names to the cache

15 years agoAUTHORS update
Josh Stone [Wed, 1 Jul 2009 23:46:43 +0000 (16:46 -0700)]
AUTHORS update

15 years agoRemoved extra period in statement.(ADDRESS)
Josh Stone [Wed, 1 Jul 2009 23:46:05 +0000 (16:46 -0700)]
Removed extra period in statement.(ADDRESS)

15 years agoSystemTap Language Reference: DWARF-less probing patch
Robb Romans [Fri, 26 Jun 2009 19:25:56 +0000 (14:25 -0500)]
SystemTap Language Reference: DWARF-less probing patch

Here is a patch to the Language Reference Guide that adds information
about DWARF-less probing.

Signed-off-by: Robb Romans <robb@linux.vnet.ibm.com>
Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoSpecial case _stp_kretprobe_trampoline emission for -1
Roland McGrath [Wed, 1 Jul 2009 02:03:30 +0000 (19:03 -0700)]
Special case _stp_kretprobe_trampoline emission for -1

* translate.cxx (emit_symbol_data_done): Special case
_stp_kretprobe_trampoline emission for -1, which is invalid
in hex if host width > target width.

15 years agoAdd shebang
Eugeniy Meshcheryakov [Tue, 30 Jun 2009 11:16:41 +0000 (13:16 +0200)]
Add shebang

15 years agoMake the file executable
Eugeniy Meshcheryakov [Tue, 30 Jun 2009 11:13:32 +0000 (13:13 +0200)]
Make the file executable

15 years agoUpdate memory and ioscheduler tapset for 2.6.31
Wenji Huang [Tue, 30 Jun 2009 01:42:19 +0000 (21:42 -0400)]
Update memory and ioscheduler tapset for 2.6.31

* tapset/ioscheduler.stp (elv_next_request): Change to blk_peek_request.
* tapset/memory.stp (vm.pagefault): Replace $write_access.

15 years agoAn i386 kprobe needs regparm(0) to access args.
Stan Cox [Fri, 26 Jun 2009 20:34:00 +0000 (16:34 -0400)]
An i386 kprobe needs regparm(0) to access args.

* tapsets.cxx (probe_table::convert_probe): Add regparm for kprobe.

15 years agoUse_utrace_syscall_arg with sdt utrace probes to avoid i386 arg fetching problems.
Stan Cox [Fri, 26 Jun 2009 18:28:46 +0000 (14:28 -0400)]
Use_utrace_syscall_arg with sdt utrace probes to avoid i386 arg fetching problems.

* tapsets.cxx (probe_table):  Add is_uprobe and is_utrace.
(probe_table::convert_probe): Use _utrace_syscall_arg.
(sdt_var_expanding_visitor): Add utrace_probe.
(sdt_var_expanding_visitor::visit_target_symbol): Use _utrace_syscall_arg.

15 years agoPR10335 systemtap.base/strftime.exp hangs.
Mark Wielaard [Fri, 26 Jun 2009 14:36:58 +0000 (16:36 +0200)]
PR10335 systemtap.base/strftime.exp hangs.

This only happened if there was a lot of cruft in the testsuite dir since
expect wasn't "draining" the output of the spawned ls command for some
reason. Work around it by just using tcl file globs to match.

* testsuite/systemtap.base/strftime.exp: Test with glob and file exists.

15 years agoPR10323 Some ustack exelib.exp tests fail with prelinked shared libs.
Mark Wielaard [Thu, 25 Jun 2009 21:07:17 +0000 (23:07 +0200)]
PR10323 Some ustack exelib.exp tests fail with prelinked shared libs.

For shared libraries (.dynamic sections) we need the eh frame section
address offset. This is the sh_addr if the shared library isn't prelinked
(since the base load address is zero in that case), otherwise it is
the module start address minus the bias (which also works for the
non-prelinked case).

* translate.cxx (get_unwind_data): Adjust eh_addr for module start and
  bias if module isn't absolute (has no relocations).
* testsuite/systemtap.exelib/ustack.tcl: Accept all prelink tests.

15 years agostap-* scripts should be executable.
Dave Brolley [Thu, 25 Jun 2009 17:06:26 +0000 (13:06 -0400)]
stap-* scripts should be executable.

15 years agoOnly compile with plain gcc for exelib.exp testcases.
Mark Wielaard [Thu, 25 Jun 2009 14:44:02 +0000 (16:44 +0200)]
Only compile with plain gcc for exelib.exp testcases.

g++ is also supported but disabled because it didn't add much interesting
differences in binaries and exploded the test search case a bit.
* testsuite/systemtap.exelib/exelib.exp: Disable g++ by default, but
  keep support for enabling it.

15 years agoAdd seperate debuginfo after prelinking to exelib.exp tests.
Mark Wielaard [Thu, 25 Jun 2009 14:35:53 +0000 (16:35 +0200)]
Add seperate debuginfo after prelinking to exelib.exp tests.

We split debuginfo before prelinking, that means that the base load address
of the .so is non-zero, while for the .debug files they are zero.  In the
other case we supported sep-debug without prelinking both .so and .debug
load bases were zero. In this new test case both base load addresses are
non-zero.

* testsuite/systemtap.exelib/exelib.exp: Add libdebug == "sep-after" to
  indicate separate debuginfo after prelinking library. Skip sep-after
  if not prelinking.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Wed, 24 Jun 2009 13:37:51 +0000 (09:37 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoHave appropriate argument for bkl.stp built and run tests.
William Cohen [Wed, 24 Jun 2009 13:33:57 +0000 (09:33 -0400)]
Have appropriate argument for bkl.stp built and run tests.

15 years agoEnable exelib.exp prelink tests except for ustack.tcl.
Mark Wielaard [Wed, 24 Jun 2009 12:26:08 +0000 (14:26 +0200)]
Enable exelib.exp prelink tests except for ustack.tcl.

* testsuite/systemtap.exelib/exelib.exp: Enable prelink "yes".
* testsuite/systemtap.exelib/ustack.tcl: Ignore any prelink test (PR10323).

15 years agoPR10305 Mark probes fail on prelinked shared library.
Mark Wielaard [Wed, 24 Jun 2009 12:20:08 +0000 (14:20 +0200)]
PR10305 Mark probes fail on prelinked shared library.

Mark probes rely on literal statement addresses, these are based on the
on-disk module address space. Introduce helper function to turn such
addresses into symbol addresses as expected by libdwfl. Also properly
adjust for dw bias when such addresses are used in dw queries.

* dwflpp.h (dwflpp::literal_addr_to_sym_addr): New method.
* dwflpp.cxx (query_cu_containing_address): Don't "globalize" address.
  (literal_addr_to_sym_addr): New method.
* tapsets.cxx (query_module_dwarf): Turn literal addresses into symbol
  addresses.
  (query_dwarf_func): Likewise and adjust for dw module bias.

15 years agoloc2c-test resolve through const and volatile types.
Mark Wielaard [Wed, 24 Jun 2009 09:38:40 +0000 (11:38 +0200)]
loc2c-test resolve through const and volatile types.

* loc2c-test.c (handle_variable): Resolve through DW_TAG_const_type and
  DW_TAG_volatile_type typetags.

15 years agoRemove needless string copying
Josh Stone [Wed, 24 Jun 2009 01:31:38 +0000 (18:31 -0700)]
Remove needless string copying

More fat-trimming optimization for ~7% off listing syscall.*.

* dwflpp.cxx (dwflpp::iterate_over_functions): remove a parameter copy
  (dwflpp::module_name_matches): Use const string& parameters
  (dwflpp::name_has_wildcard): Ditto.
  (dwflpp::module_name_final_match): Ditto.
  (dwflpp::function_name_matches_pattern): Ditto.
  (dwflpp::function_name_matches): Ditto.
  (dwflpp::function_name_final_match): Ditto.

15 years agomention that process.* probes are limited to -c/-x hierarchy if given
Frank Ch. Eigler [Tue, 23 Jun 2009 20:00:44 +0000 (16:00 -0400)]
mention that process.* probes are limited to -c/-x hierarchy if given

15 years agoMake blk.stp and blk_stats.stp executable.
William Cohen [Tue, 23 Jun 2009 19:52:51 +0000 (15:52 -0400)]
Make blk.stp and blk_stats.stp executable.

15 years agoAdd the bkl.stp and bkl_stats.stp examples.
William Cohen [Tue, 23 Jun 2009 19:51:48 +0000 (15:51 -0400)]
Add the bkl.stp and bkl_stats.stp examples.

15 years agoPR 10313 Build error due to deprecation of elf_getshstrndx in elfutils (old)
Mark Wielaard [Tue, 23 Jun 2009 08:32:10 +0000 (10:32 +0200)]
PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils (old)

Really old versions of elfutils didn't have version.h, but we still want
to support them. So add workaround also for that case.

* dwflpp.h: Define elf_getshdrstrndx as elf_getshstrndx also for really
  old elfutils versions.

15 years agoPR 10313 Build error due to deprecation of elf_getshstrndx in elfutils.
Mark Wielaard [Tue, 23 Jun 2009 08:20:07 +0000 (10:20 +0200)]
PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils.

* dwflpp.h: Check elfutils version, define elf_getshdrstrndx as
  elf_getshstrndx if elfutils 0.142 detected.
* dwflpp.cxx (get_blacklist_section): Use elf_getshdrstrndx.
* tapsets.cxx (probe_table): Likewise.
  (prepare_section_rejection): Likewise.

15 years agoRemove unused strlens from str_replace
Josh Stone [Mon, 22 Jun 2009 21:24:42 +0000 (14:24 -0700)]
Remove unused strlens from str_replace

15 years agoTestcase For str_replace()
Varun Chandramohan [Sat, 20 Jun 2009 04:10:36 +0000 (09:40 +0530)]
Testcase For str_replace()

This patch adds the test case needed for this function. I have added
few tests. If required more can be added in future.

As discussed in previous version, the testcase patch has been reverted
to the original as the str_replace() functionality has changed wrt to
error handle.

Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com>
Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoAdd str_replace() To Tapsets
Varun Chandramohan [Sat, 20 Jun 2009 04:07:54 +0000 (09:37 +0530)]
Add str_replace() To Tapsets

This patch adds a search and replace string functionality to existing
tapsets.

The functionality is as follows:

The function takes in a parent string and searches for a substring as
specified by the user. If substring not found, the parent string is
returned. If substring is found, it is replaced by another string and
returned.

NOTE: The function will search and replace all the occurrence of
substrings in a parent string when matched.

Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com>
Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoMerge commit 'origin'
Josh Stone [Mon, 22 Jun 2009 21:04:06 +0000 (14:04 -0700)]
Merge commit 'origin'

15 years agoBump up the default timeout for target_set test
Josh Stone [Mon, 22 Jun 2009 20:59:58 +0000 (13:59 -0700)]
Bump up the default timeout for target_set test

Starting the test with a cold cache can take easily longer than
dejagnu's default 10 second timeout.  I'm bumping it to 180 seconds,
the same as in the stap_run library functions.

15 years agoCorrect typo in forktracker.meta.
William Cohen [Mon, 22 Jun 2009 20:58:51 +0000 (16:58 -0400)]
Correct typo in forktracker.meta.

15 years agoStrip -o option suffix
Stan Cox [Mon, 22 Jun 2009 20:25:37 +0000 (16:25 -0400)]
Strip -o option suffix

dtrace: Strip the -o option suffix.

15 years agoAdd test for target_set tapset.
Przemyslaw Pawelczyk [Sat, 20 Jun 2009 13:08:18 +0000 (15:08 +0200)]
Add test for target_set tapset.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoPR10308 Beginning of statement check should provide alternatives.
Mark Wielaard [Mon, 22 Jun 2009 14:59:31 +0000 (16:59 +0200)]
PR10308 Beginning of statement check should provide alternatives.

tapsets.cxx (query_cu): Add suggested address if found to error message.

15 years agoPR10307 beginning of statement check should be overridden in guru mode.
Mark Wielaard [Mon, 22 Jun 2009 14:48:30 +0000 (16:48 +0200)]
PR10307 beginning of statement check should be overridden in guru mode.

* tapsets.cxx (query_cu): When in guru mode just issue an warning (if not
  suppressed) instead of an error when address isn't at the beginning of
  a statement.

15 years agoFix various issues in initscript (bz506956)
Masami Hiramatsu [Fri, 19 Jun 2009 22:19:52 +0000 (18:19 -0400)]
Fix various issues in initscript (bz506956)

* initscript/systemtap.in: Fix messages.
  (clog): Don't strip spaces out.
  (parse_args): Parse -y option.
  (status): Show message if no scripts are running.
  (restart): Don't try to stop scripts if no scripts are running.

15 years agoFix on-file flight recorder mode bugs on old kernel.
Masami Hiramatsu [Fri, 19 Jun 2009 22:19:51 +0000 (18:19 -0400)]
Fix on-file flight recorder mode bugs on old kernel.

* runtime/staprun/common.c (make_outfile_name): Moved from relay.c, fix not to
  open /dev/null.XXX output files, and add 'bulk' argument for bulkmode.
* runtime/staprun/relay.c (make_outfile_name): Moved to common.c.
* runtime/staprun/relay_old.c (open_oldoutfile): Fix to use fopen() and store
  FILE * to percpu_tmpfile[cpu].

15 years agoCorrectly find probes for -m32 executables.
Stan Cox [Fri, 19 Jun 2009 20:13:21 +0000 (16:13 -0400)]
Correctly find probes for -m32 executables.

* sdt.h (STAP_PROBE_DATA_): Pad with 0 so final probe entry doesn't
pickup a stray word.
* sdt_misc.exp (static_user_markers.{c,d}): Add bstruct to test struct
  type handling

15 years agoMerge branches 'master' and 'master' of ssh://sourceware.org/git/systemtap
Stan Cox [Fri, 19 Jun 2009 18:09:13 +0000 (14:09 -0400)]
Merge branches 'master' and 'master' of ssh://sourceware.org/git/systemtap

15 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Stan Cox [Fri, 19 Jun 2009 18:06:52 +0000 (14:06 -0400)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

15 years agoRename static_uprobes.exp to sdt_misc.exp
Stan Cox [Fri, 19 Jun 2009 18:04:55 +0000 (14:04 -0400)]
Rename static_uprobes.exp to sdt_misc.exp

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Fri, 19 Jun 2009 16:13:50 +0000 (11:13 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoDisabled transport version 3 (for now).
David Smith [Fri, 19 Jun 2009 16:13:15 +0000 (11:13 -0500)]
Disabled transport version 3 (for now).

15 years agoRevert "Make examples-index-gen.pl executable."
William Cohen [Fri, 19 Jun 2009 16:07:19 +0000 (12:07 -0400)]
Revert "Make examples-index-gen.pl executable."

This reverts commit 0c98234c86877cfea3df762dc8627b3f05c38e75.

15 years agoMerge commit 'origin/master' into pr7043
David Smith [Fri, 19 Jun 2009 15:58:03 +0000 (10:58 -0500)]
Merge commit 'origin/master' into pr7043

15 years agoMake forktracker.stp example executable.
William Cohen [Fri, 19 Jun 2009 15:47:53 +0000 (11:47 -0400)]
Make forktracker.stp example executable.

15 years agoMake examples-index-gen.pl executable.
William Cohen [Fri, 19 Jun 2009 15:38:28 +0000 (11:38 -0400)]
Make examples-index-gen.pl executable.

15 years agoAdd froktracker.stp example.
William Cohen [Fri, 19 Jun 2009 15:33:29 +0000 (11:33 -0400)]
Add froktracker.stp example.

15 years agoFix target_set tapset.
Przemyslaw Pawelczyk [Thu, 18 Jun 2009 22:27:45 +0000 (00:27 +0200)]
Fix target_set tapset.

Revise acquiring of pid and ppid in fork.return probe -- use returnval()
and pid() instead of pid() and ppid() respectively. Add pid removal on
exit syscall. Use dwarfless syscall probe aliases. Correct formatting.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoCleanup.
David Smith [Thu, 18 Jun 2009 21:49:59 +0000 (16:49 -0500)]
Cleanup.
* runtime/print_old.c: Removed unneeded file.
* runtime/print_flush.c: Renamed from print_new.c
* runtime/print.c: Includes print_flush.c (instead of print_new.c).

15 years agoTransports now export their state.
David Smith [Thu, 18 Jun 2009 21:42:35 +0000 (16:42 -0500)]
Transports now export their state.
* runtime/transport/transport.h: Added prototype for
  _stp_transport_get_state().
* runtime/transport/relay_v2.c (_stp_transport_get_state): New function.
* runtime/transport/relayfs.c (_stp_transport_get_state): Ditto.
* runtime/transport/ring_buffer.c (_stp_transport_data_fs_init): Sets
  state.
  (_stp_transport_data_fs_start): Ditto.
  (_stp_transport_data_fs_stop): Ditto.
  (_stp_transport_get_state): Returns state.
* runtime/print_new.c (stp_print_flush): Checks transport state before
  trying to flush.

15 years agoPR10298: tweak global param initialization for NULL etc.
Frank Ch. Eigler [Thu, 18 Jun 2009 21:19:29 +0000 (17:19 -0400)]
PR10298: tweak global param initialization for NULL etc.

* translate.cxx (translate_pass): Emit module_parm stuff at the very end.
* testsuite/buildok/null.stp: New test.

15 years agoMoved global data into a single structure.
David Smith [Thu, 18 Jun 2009 21:11:17 +0000 (16:11 -0500)]
Moved global data into a single structure.

15 years agoRemoved unused code (and all references to 'utt').
David Smith [Thu, 18 Jun 2009 20:56:45 +0000 (15:56 -0500)]
Removed unused code (and all references to 'utt').

15 years agoCheck in sk_stream_wait_memory.stp example.
William Cohen [Thu, 18 Jun 2009 20:14:42 +0000 (16:14 -0400)]
Check in sk_stream_wait_memory.stp example.

15 years agoMerge commit 'origin/master' into pr7043
David Smith [Thu, 18 Jun 2009 18:10:21 +0000 (13:10 -0500)]
Merge commit 'origin/master' into pr7043

15 years agoEnabled overwrite processing on original transports.
David Smith [Thu, 18 Jun 2009 18:09:31 +0000 (13:09 -0500)]
Enabled overwrite processing on original transports.
* runtime/transport/relay_v2.c (_stp_transport_data_fs_overwrite): Renamed
  from stp_relay_set_overwrite().
* runtime/transport/relayfs.c (stp_relay_set_overwrite): Ditto.
* runtime/transport/ring_buffer.c (_stp_transport_data_fs_overwrite): New
  place holder function.
* runtime/transport/transport.c (_stp_detach): Calls
 _stp_transport_data_fs_overwrite().
  (_stp_attach): Calls _stp_transport_data_fs_overwrite().
* runtime/transport/transport.h: Added prototype for
  _stp_transport_data_fs_overwrite().

15 years agoPR10273 Correctly adjust libdw address for dwfl dwarf bias.
Mark Wielaard [Thu, 18 Jun 2009 15:54:15 +0000 (17:54 +0200)]
PR10273 Correctly adjust libdw address for dwfl dwarf bias.

* dwflpp.cxx (relocate_address): Adjust reloc_addr at start, not afterwards.

15 years agoCast STAP_PROBE1 parameter.
Stan Cox [Thu, 18 Jun 2009 15:37:30 +0000 (11:37 -0400)]
Cast STAP_PROBE1 parameter.

* sdt.h (STAP_PROBE1): Add cast of parm1 for narrower signed types.

15 years agoMerge commit 'origin/master' into pr7043
David Smith [Thu, 18 Jun 2009 15:12:35 +0000 (10:12 -0500)]
Merge commit 'origin/master' into pr7043

15 years agoMade testcase handle slower systems.
David Smith [Thu, 18 Jun 2009 15:10:51 +0000 (10:10 -0500)]
Made testcase handle slower systems.
* testsuite/systemtap.base/flightrec3.exp: Fixed for slower systems.

15 years agoRefactor common code in the tokenize test
Josh Stone [Thu, 18 Jun 2009 01:23:39 +0000 (18:23 -0700)]
Refactor common code in the tokenize test

15 years agoFix tokenize function and test.
Przemyslaw Pawelczyk [Wed, 17 Jun 2009 23:50:31 +0000 (01:50 +0200)]
Fix tokenize function and test.

Previous implementation was error-prone, because allowed returning empty
tokens (mimiced strsep()), which is fine if there is a NULL semantic.
Unfortunately SystemTap doesn't provide it in scripts and has only blank
string (""), therefore testing against it was misleading.
The solution is to return only non-empty tokens (mimic strtok()).

* tapset/string.stp: Fix tokenize.
* testsuite/systemtap.string/tokenize.stp: Improve and add case with
  more than one delimiter in the delim string.
* testsuite/systemtap.string/tokenize.exp: Ditto.
* stapfuncs.3stap.in: Update tokenize description.
* doc/langref.tex: Ditto.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoMerge commit 'origin/master' into pr7043
David Smith [Wed, 17 Jun 2009 20:42:12 +0000 (15:42 -0500)]
Merge commit 'origin/master' into pr7043

15 years agoImproved error handling.
David Smith [Wed, 17 Jun 2009 20:22:01 +0000 (15:22 -0500)]
Improved error handling.
* testsuite/systemtap.base/flightrec3.exp: Improved error handling.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Wed, 17 Jun 2009 15:46:19 +0000 (11:46 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoSpecify how to generate Publican document with separate build directory.
William Cohen [Wed, 17 Jun 2009 15:44:13 +0000 (11:44 -0400)]
Specify how to generate Publican document with separate build directory.

15 years agoPR10273. uprobes fail to insert on prelinked library.
Mark Wielaard [Wed, 17 Jun 2009 14:42:59 +0000 (16:42 +0200)]
PR10273. uprobes fail to insert on prelinked library.

* dwflpp.cxx (relocate_address): For .dynamic section addresses adjust for
  module bias.

15 years agoUse the expanded value for sdt $$name
Josh Stone [Tue, 16 Jun 2009 18:31:22 +0000 (11:31 -0700)]
Use the expanded value for sdt $$name

* tapsets.cxx (dwarf_builder::build): pass probe_table.probe_name into
  the sdt_var_expander instead of .mark_name, so wildcards are resolved.

15 years agoMerge commit 'origin/master' into pr7043
David Smith [Tue, 16 Jun 2009 17:22:32 +0000 (12:22 -0500)]
Merge commit 'origin/master' into pr7043

Conflicts:
runtime/transport/transport.c

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Tue, 16 Jun 2009 17:18:21 +0000 (12:18 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

This page took 0.059981 seconds and 5 git commands to generate.