]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoLet runtime/staprun find sdt-config.h.
Stan Cox [Thu, 16 Sep 2010 21:15:48 +0000 (17:15 -0400)]
Let runtime/staprun find sdt-config.h.

* runtime/staprun/Makefile.am (AM_CPPFLAGS): Add $(builddir)/../../includes/sys

13 years agoHandle finding includes with -isystem.
Stan Cox [Tue, 7 Sep 2010 20:26:07 +0000 (16:26 -0400)]
Handle finding includes with -isystem.

* lib/systemtap.exp (sd_includes):  Use -isystem instead of -I.
* sdt_misc.exp (v_flags): Tag the V2 run.

13 years agoAdd translator support for version 3 sdt.h
Stan Cox [Fri, 3 Sep 2010 20:17:38 +0000 (16:17 -0400)]
Add translator support for version 3 sdt.h

* dwflpp.c (iterate_over_notes): New.
(get_section): New.

* sdt.h (_SDT_SEMAPHORE): New.
(_SDT_ASM_BODY): Use it.

* sdt-compat.h (stap_sdt_probe_type): Add uprobe3_type.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Support <precision>@
(struct sdt_query): Add base, have_debuginfo_uprobe, have_debuginfoless_uprobe.
(handle_probe_entry): Pieces moved from ...
(handle_query_module): Handle STAP_SDT_Ǚ.
(setup_note_probe_entry_callback): New.
(setup_note_probe_entry): New.
(iterate_over_probe_entries): New.

* systemtap.exp: Tweak it.

* sdt_misc.exp (vflags): Add -DSTAP_SDT_V3

13 years agoClean up test compilations using sys/sdt.h, test new and old variants
Roland McGrath [Wed, 18 Aug 2010 08:39:45 +0000 (01:39 -0700)]
Clean up test compilations using sys/sdt.h, test new and old variants

* testsuite/sys/sdt.h: New file.
* testsuite/lib/systemtap.exp (sdt_includes): New function.
* testsuite/systemtap.base/const_value.exp: Use [sdt_includes].
* testsuite/systemtap.base/cxxclass.exp: Likewise.
* testsuite/systemtap.base/vta-test.exp: Likewise.
* testsuite/systemtap.exelib/exelib.exp: Likewise.
* testsuite/systemtap.base/sdt.exp: Likewise.
Test new version plus sdt-compat.h v1 and v2 variants.
* testsuite/systemtap.base/sdt_misc.exp: Likewise.

13 years agoMake sdt-compat.h play nice with new sys/sdt.h
Roland McGrath [Wed, 18 Aug 2010 08:35:40 +0000 (01:35 -0700)]
Make sdt-compat.h play nice with new sys/sdt.h

* sdt-compat.h: Change multiple inclusion protection to _SDT_COMPAT_H.
Omit probe macros if _SYS_SDT_H is defined.
* tapsets.cxx: Include "sys/sdt.h" before "sdt-compat.h".

13 years agoReplace <sys/sdt.h> macros with new ones generating notes, usable in asm
Roland McGrath [Wed, 18 Aug 2010 06:57:49 +0000 (23:57 -0700)]
Replace <sys/sdt.h> macros with new ones generating notes, usable in asm

* includes/sys/sdt.h: Rewritten.
* Makefile.am (oldinclude_HEADERS): Add includes/sys/sdt-config.h here.
(AM_CPPFLAGS): Add -I to find the built file.
* systemtap.spec (%files sdt-devel): Likewise.
* Makefile.in: Regenerated.
* util.h: Include <cerrno> here.

13 years agoMove old sys/sdt.h to sdt-compat.h for translator use
Roland McGrath [Wed, 18 Aug 2010 06:49:01 +0000 (23:49 -0700)]
Move old sys/sdt.h to sdt-compat.h for translator use

* includes/sys/sdt.h: File renamed to ...
* sdt-compat.h: ... here.
* Makefile.am (noinst_HEADERS): New variable, add it.
* tapset.cxx: Include "sdt-compat.h" instead of "sys/sdt.h".

13 years agoAdd configury for using .section "?" in sdt.h
Roland McGrath [Tue, 17 Aug 2010 20:25:45 +0000 (13:25 -0700)]
Add configury for using .section "?" in sdt.h

* includes/sys/sdt-config.h.in: New file.
* configure.ac: Check for assembler support of .section name,"?".
* configure: Regenerated.
* Makefile.in: Regenerated.

13 years agoCorrect recent change for finding the server cert database in stap-sign-module.
Dave Brolley [Thu, 16 Sep 2010 19:14:52 +0000 (15:14 -0400)]
Correct recent change for finding the server cert database in stap-sign-module.

13 years agoHandle missing and empty client side certificate databases.
Dave Brolley [Thu, 16 Sep 2010 18:28:31 +0000 (14:28 -0400)]
Handle missing and empty client side certificate databases.

13 years agoreleng: make build-compatible with old elfutils
Frank Ch. Eigler [Thu, 16 Sep 2010 16:06:21 +0000 (12:06 -0400)]
releng: make build-compatible with old elfutils

* loc2c.c (DW_AT_data_bit_offset): #define for old elfutils.

13 years agoAllow STAP_USER to be set in the calling environment.
Dave Brolley [Wed, 15 Sep 2010 16:40:14 +0000 (12:40 -0400)]
Allow STAP_USER to be set in the calling environment.

13 years agoSuppress stdout output of stap-authorize-cert.
Dave Brolley [Wed, 15 Sep 2010 16:17:41 +0000 (12:17 -0400)]
Suppress stdout output of stap-authorize-cert.

13 years agoCorrect location of stap-gen-cert.
Dave Brolley [Tue, 14 Sep 2010 18:50:17 +0000 (14:50 -0400)]
Correct location of stap-gen-cert.

13 years agoPR11442 - Running tests installed by systemtap-testsuite rpm as root.
Dave Brolley [Tue, 14 Sep 2010 18:02:03 +0000 (14:02 -0400)]
PR11442 - Running tests installed by systemtap-testsuite rpm as root.

SSL server certificates are now generated into $SYSTEMTAP_DIR or $HOME/.systemtap
for all users, even root.

13 years agoGuard location_from_attr declaration and function with elfutils 0.149 check.
Mark Wielaard [Thu, 16 Sep 2010 15:12:48 +0000 (17:12 +0200)]
Guard location_from_attr declaration and function with elfutils 0.149 check.

location_from_attr is only used when an implicit pointer is found
and systemtap is compiled against elfutils 0.149 .

* loc2c.c (location_from_attr): Guard with elfutils version check.

13 years agoTest case for DW_OP_GNU_implicit_pointer support
Roland McGrath [Wed, 18 Aug 2010 22:37:22 +0000 (15:37 -0700)]
Test case for DW_OP_GNU_implicit_pointer support

* testsuite/systemtap.base/implicitptr.c: New file.
* testsuite/systemtap.base/implicitptr.stp: New file.
* testsuite/systemtap.base/implicitptr.exp: New file.

13 years agoloc2c internal reorganization and DW_OP_GNU_implicit_pointer handling
Roland McGrath [Tue, 27 Jul 2010 11:55:48 +0000 (04:55 -0700)]
loc2c internal reorganization and DW_OP_GNU_implicit_pointer handling

* loc2c.c (struct location_context): New type.
(struct location): New member context points to that.
Add pointer variant with .type = loc_implicit_pointer.
(alloc_location): Take just context pointer as argument.
(FAIL): Use context pointer.
(new_context): New function.
(translate_constant): New function, broken out of ...
(c_translate_constant): ... here.  Call it.
(new_synthetic_loc): Don't take pool argument, origin->context has it.
(lose): Take new argument LEN, overall length of LEXPR.
Don't mention the offset into LEXPR if LEXPR is NULL or I is past LEN.
(translate): Take context argument instead of pool, addrbias.
Handle DW_OP_GNU_implicit_pointer.
(location_from_address): Take context argument instead of pool, fail,
fail_arg, emit_address, dwbias, attr, address, fb_attr, cfa_ops.
(location_from_attr): New function.
(translate_offset): New function, broken out of ...
(location_relative): ... here.  Call it.
Take context argument instead of pool, dwbias, attr, address.
(c_translate_location): Use new_context.
(c_translate_argument): Likewise.
(emit_base_fetch): Diagnose for loc_implicit_pointer.
(emit_base_store): Likewise.
(c_translate_addressof, c_translate_array): Likewise.
(discontiguify): Likewise.  Take context argument instead of pool.
(c_translate_pointer): Handle loc_implicit_pointer.
(c_translate_array_pointer): Likewise.
(c_emit_location): Likewise.

13 years agoImproved latencytap.stp
William Cohen [Wed, 15 Sep 2010 19:57:53 +0000 (15:57 -0400)]
Improved latencytap.stp

This version of latencytap.stp has the following improvements:

-Print out the data sorted on the total time waiting for each cause
-Have a debug flag to print out stack backtraces when there is no cause listed.
 This is enabled by compiling latencytap to a module and then using:
    staprun latentap.ko debug=1

13 years agoUse decimal output for automatic printing of global aggregates
William Cohen [Tue, 14 Sep 2010 21:39:55 +0000 (17:39 -0400)]
Use decimal output for automatic printing of global aggregates

Previously, the automatic printing of global aggregates was hexidecimal.
Most people find it more convenient to look at this information in decimal
form. Thus, the output is now decimal based. If one really needs or wants
the old behavior a --compatible=1.3 option can be added to the command line.

13 years agoAdd translator support for the forthcoming v3 sdt.h.
Stan Cox [Tue, 14 Sep 2010 16:22:54 +0000 (12:22 -0400)]
Add translator support for the forthcoming v3 sdt.h.

* sdt.h (stap_sdt_probe_type): Add uprobe3_type.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Support <precision>@
(struct sdt_query): Add base, have_debuginfo_uprobe, have_debuginfoless_uprobe.
(handle_query_module): Handle v3 sdt.h which has probes in note sections.
(setup_note_probe_entry_callback): New.
(setup_note_probe_entry): New.

13 years agoUse common handler for sdt.h v2/v3 and change sdt.h v2 to use it.
Stan Cox [Mon, 13 Sep 2010 18:49:45 +0000 (14:49 -0400)]
Use common handler for sdt.h v2/v3 and change sdt.h v2 to use it.

* tapsets.cxx (sdt_query::iterate_over_probe_entries): Replaces get_next_probe.
(sdt_query::handle_query_module): Use it.
(sdt_query::handle_probe_entry): New.  Used by sdt.h v2/v3

13 years agoAdd dwarf support for use by sdt.h v3.
Stan Cox [Mon, 13 Sep 2010 14:37:19 +0000 (10:37 -0400)]
Add dwarf support for use by sdt.h v3.

* dwflpp.cxx (dwflpp::iterate_over_notes): New.
(dwflpp::get_section): New.
* dwflpp.h: Likewise.
*tapsets.cxx (sdt_query::handle_query_module):  Use get_section.

13 years agoPR 11905: Take more care with stap-server config files.
Dave Brolley [Fri, 10 Sep 2010 18:18:07 +0000 (14:18 -0400)]
PR 11905: Take more care with stap-server config files.

- Config files now have a fixed suffix which avoids collisions with other
  stap-server files.
- Config files are now interpreted in order to avoid execution of random
  code.

13 years agoUpdated latencytap.stp
William Cohen [Thu, 9 Sep 2010 16:49:22 +0000 (12:49 -0400)]
Updated latencytap.stp

The updated latencytap.stp uses more portable probe points for the collecting
the data. The script also maps the functions in the traceback to reasons the
sleep. The reasons for the sleeps were mechanically generated from
latencytop-0.5 latencytop.trans file.

13 years agoValidate backtrace addresses.
Mark Wielaard [Thu, 9 Sep 2010 14:38:53 +0000 (16:38 +0200)]
Validate backtrace addresses.

* runtime/stack-i386.c (_stp_valid_pc_addr): New function.
  (_stp_stack_print_fallback): Use it.
  (__stp_stack_print): Use it.
* runtime/stack-x86_64.c (_stp_valid_pc_addr): New function.
  (_stp_stack_print_fallback): Use it.
  (__stp_stack_print): Use it.
* runtime/unwind/i386.h (arch_unw_user_mode): Removed.
* runtime/unwind/x86_64.h (arch_unw_user_mode): Likewise.

13 years agoPR 10922: Firewall hint improvement.
Dave Brolley [Tue, 7 Sep 2010 16:17:06 +0000 (12:17 -0400)]
PR 10922: Firewall hint improvement.

Specifically mention mDNS when suggesting a check of the firewall after
avahi fails to find a server in the test suite.

13 years agoElaborate on the use of the --use-server option of stap.
Dave Brolley [Tue, 7 Sep 2010 15:30:33 +0000 (11:30 -0400)]
Elaborate on the use of the --use-server option of stap.

13 years agoPR11982: debian build compatibility for their elfutils hacks
Frank Ch. Eigler [Sat, 4 Sep 2010 21:13:23 +0000 (17:13 -0400)]
PR11982: debian build compatibility for their elfutils hacks

* configure.ac: Check for presence of -lebl.

13 years agoreleng: staprun is build with -DSINGLE_THREADED to avoid -lpthread dependence
Frank Ch. Eigler [Sat, 4 Sep 2010 19:57:37 +0000 (15:57 -0400)]
releng: staprun is build with -DSINGLE_THREADED to avoid -lpthread dependence

13 years agoDeprecate old compile-server client and tools.
Dave Brolley [Fri, 3 Sep 2010 15:05:09 +0000 (11:05 -0400)]
Deprecate old compile-server client and tools.

    stap-client
    stap-find-servers
    stap-find-or-start-server
    stap-authorize-server-cert
    stap-authorize-signing-cert.

13 years agoreleng: staprun Makefile should use -Dfoo CPPFLAGS instead of AC_SUBST*
Frank Ch. Eigler [Thu, 2 Sep 2010 20:05:09 +0000 (16:05 -0400)]
releng: staprun Makefile should use -Dfoo CPPFLAGS instead of AC_SUBST*

13 years agoInclude top-level includes dir in AM_CFLAGS for staprun sys/sdt.h usage.
Mark Wielaard [Thu, 2 Sep 2010 12:11:44 +0000 (14:11 +0200)]
Include top-level includes dir in AM_CFLAGS for staprun sys/sdt.h usage.

* runtime/staprun/Makefile.am (AM_CFLAGS): Add -I$(srcdir)/../../includes.
* runtime/staprun/Makefile.in: Regenerated.

13 years agoEnable AM_SILENT_RULES for runtime/staprun/
Josh Stone [Wed, 1 Sep 2010 20:58:48 +0000 (13:58 -0700)]
Enable AM_SILENT_RULES for runtime/staprun/

13 years agoInclude runtime/staprun in top-level builds
Josh Stone [Wed, 1 Sep 2010 20:55:59 +0000 (13:55 -0700)]
Include runtime/staprun in top-level builds

13 years agoMove run-staprun into runtime/staprun/
Josh Stone [Wed, 1 Sep 2010 20:51:23 +0000 (13:51 -0700)]
Move run-staprun into runtime/staprun/

It now lives with staprun itself.  Also adjust run-stap accordingly.

13 years agostaprun: Clean up kallsyms _stext parsing.
Roland McGrath [Wed, 1 Sep 2010 00:33:12 +0000 (17:33 -0700)]
staprun: Clean up kallsyms _stext parsing.

* runtime/staprun/staprun.c (send_relocation_kernel): Rewrote parsing loop.

13 years agoPR4037: kernel-matching -m32 or -m64 not needed for staprun
Frank Ch. Eigler [Wed, 1 Sep 2010 14:52:02 +0000 (10:52 -0400)]
PR4037: kernel-matching -m32 or -m64 not needed for staprun

13 years agoreleng: use staprun's new configury only
Frank Ch. Eigler [Wed, 1 Sep 2010 14:49:30 +0000 (10:49 -0400)]
releng: use staprun's new configury only

Removed staprun/stapio/stap-merge stuff from top-level configury.

13 years agoPR11963: avoid using scanf %as
Grant Edwards [Wed, 1 Sep 2010 11:39:08 +0000 (07:39 -0400)]
PR11963: avoid using scanf %as

13 years agoUse <linux/blk_types.h> and REQ_WRITE for 2.6.36 and newer kernels
William Cohen [Tue, 31 Aug 2010 21:34:04 +0000 (17:34 -0400)]
Use <linux/blk_types.h> and REQ_WRITE for 2.6.36 and newer kernels

13 years agoLocal definitions of NIPQUAD and NIPQUAD_FMT when required (PR11951)
William Cohen [Tue, 31 Aug 2010 16:06:00 +0000 (12:06 -0400)]
Local definitions of NIPQUAD and NIPQUAD_FMT when required (PR11951)

Newer 2.6.36 kernels eliminate NIPQUAD and NIPQUAD_FMT defines.
Definitions are made available when needed.

13 years agoGive staprun/stapio/stap-merge a standalone configure and makefile
Roland McGrath [Mon, 30 Aug 2010 22:43:43 +0000 (15:43 -0700)]
Give staprun/stapio/stap-merge a standalone configure and makefile

* Makefile.am: New file.
* configure.ac: New file.
* Makefile.in: New generated file.
* aclocal.m4: New generated file.
* config.in: New generated file.
* configure: New generated file.

13 years agostaprun: Avoid need for -I$(top_srcdir)
Roland McGrath [Mon, 30 Aug 2010 22:27:44 +0000 (15:27 -0700)]
staprun: Avoid need for -I$(top_srcdir)

* modverify.c: Use proper relative pathname for nsscommon.h #include.

13 years agostaprun: Avoid type-punning casts.
Roland McGrath [Mon, 30 Aug 2010 22:01:35 +0000 (15:01 -0700)]
staprun: Avoid type-punning casts.

* mainloop.c (stp_main_loop): Use clean union instead of casts.

13 years agoReplaced obsolete index/rindex functions with strchr/strrchr.
David Smith [Mon, 30 Aug 2010 21:53:46 +0000 (16:53 -0500)]
Replaced obsolete index/rindex functions with strchr/strrchr.

* runtime/staprun/common.c: Replaced index/rindex with strchr/strrchr.
* runtime/staprun/staprun.c: Ditto.

13 years agoClarify description of --all-modules optoin in stap manpage
William Cohen [Mon, 30 Aug 2010 20:26:12 +0000 (16:26 -0400)]
Clarify description of --all-modules optoin in stap manpage

13 years agoUpdate the dropwatch.stp beginner's manual text to match the current script.
William Cohen [Mon, 30 Aug 2010 19:20:33 +0000 (15:20 -0400)]
Update the dropwatch.stp beginner's manual text to match the current script.

13 years agoAllow dropwatch to output function name directly and clean formatting
William Cohen [Mon, 30 Aug 2010 16:00:45 +0000 (12:00 -0400)]
Allow dropwatch to output function name directly and clean formatting

13 years agoClean up the timeout.stp and topsys.stp example text
William Cohen [Fri, 27 Aug 2010 21:14:08 +0000 (17:14 -0400)]
Clean up the timeout.stp and topsys.stp example text

13 years agoRevise futexes.stp example text.
William Cohen [Fri, 27 Aug 2010 20:10:53 +0000 (16:10 -0400)]
Revise futexes.stp example text.

13 years agoAdd pointer to SystemTap Tapset Reference Manual to References Chapter
William Cohen [Fri, 27 Aug 2010 19:19:02 +0000 (15:19 -0400)]
Add pointer to SystemTap Tapset Reference Manual to References Chapter

13 years agoCorrect the example man pages for "man stapprobes"
William Cohen [Fri, 27 Aug 2010 18:56:18 +0000 (14:56 -0400)]
Correct the example man pages for "man stapprobes"

13 years agoPR11949: duplicate-eliminate tapset files
Frank Ch. Eigler [Thu, 26 Aug 2010 22:30:28 +0000 (18:30 -0400)]
PR11949: duplicate-eliminate tapset files

* main.cxx (passes_0_4): Bypass tapset script files already parsed,
  based upon device/inode matching.

13 years agoPrint a warning for labels outside their scope
Josh Stone [Thu, 26 Aug 2010 20:32:26 +0000 (13:32 -0700)]
Print a warning for labels outside their scope

Sometimes the compiler may output debuginfo a label PC that's not
actually contained by its lexical scope.  When this happens, it's likely
that we won't be able to access any variables.  Print a WARNING so the
user knows something is amiss.

* dwflpp.cxx (dwflpp::iterate_over_labels): Print a warning when the
  scope doesn't contain the label address.
  (dwflpp::inner_die_containing_pc): Return bool indicating if the
  address is even contained by the result scope.
* testsuite/systemtap.base/ptridx.stp: Use the right exe path.
* testsuite/systemtap.base/ptridx.exp: Use manual spawn/expect for more
  precise matching.

13 years agoUpdate inodewatch2.stp to work with newer kernel
William Cohen [Thu, 26 Aug 2010 19:09:08 +0000 (15:09 -0400)]
Update inodewatch2.stp to work with newer kernel

13 years agoRelax inner_die_containing_pc's initial check
Josh Stone [Thu, 26 Aug 2010 17:07:03 +0000 (10:07 -0700)]
Relax inner_die_containing_pc's initial check

I had a semantic error thrown if the given address wasn't even within
the starting scope, but now I've just made that return right away.
Roland found a case where the compiler had a label in DWARF that was
outside the PC range of the inline that supposedly contained it.

* dwflpp.cxx (dwflpp::inner_die_containing_pc): Return if !die_has_pc.
* testsuite/systemtap.base/ptridx.*: Roland's testcase.  It still fails
  when the variables lack locations, but at least -L should work now.

13 years agoAssociate localhost.localdomain with generated compile-server certificates.
Dave Brolley [Thu, 26 Aug 2010 14:40:08 +0000 (10:40 -0400)]
Associate localhost.localdomain with generated compile-server certificates.

13 years agoloc2c: Diagnose index into noncontiguous array whose pieces are too small
Roland McGrath [Thu, 26 Aug 2010 08:36:06 +0000 (01:36 -0700)]
loc2c: Diagnose index into noncontiguous array whose pieces are too small

* loc2c.c (translate_array): Diagnose chosen piece being too small.

13 years agoloc2c: Handle arrays of computed values
Roland McGrath [Thu, 26 Aug 2010 05:57:05 +0000 (22:57 -0700)]
loc2c: Handle arrays of computed values

* loc2c.c (translate_array): New function, broken out of ...
(c_translate_array): ... here.  Call it.
(c_translate_array_pointer): Call it.
(translate_array): Accept computed or unavailable value with
constant zero index.

13 years agoExtend vta-test case to cover arrays.
Roland McGrath [Thu, 26 Aug 2010 05:42:54 +0000 (22:42 -0700)]
Extend vta-test case to cover arrays.

* testsuite/systemtap.base/vta-test.c (t1, t2, t3): Add a computed array local.
* testsuite/systemtap.base/vta-test.stp: Probe them to show that.
* testsuite/systemtap.base/vta-test.exp: Expect that.

13 years agoExtend const_value test case to cover arrays.
Roland McGrath [Thu, 26 Aug 2010 05:32:38 +0000 (22:32 -0700)]
Extend const_value test case to cover arrays.

* testsuite/systemtap.base/const_value.c (func): Add a const array local.
* testsuite/systemtap.base/const_value.stp: Print it.
* testsuite/systemtap.base/const_value.exp: Expect that.

13 years agoCorrect the description of -c option
William Cohen [Mon, 23 Aug 2010 20:18:54 +0000 (16:18 -0400)]
Correct the description of -c option

13 years agoSimplify the installation of the needed rpm packages
William Cohen [Mon, 23 Aug 2010 19:59:50 +0000 (15:59 -0400)]
Simplify the installation of the needed rpm packages

There was some detail on writing repo files. However, that text is not needed
for rhel-5/6 or fedora. There are already repo files that point on the
location of the debuginfo files.

13 years agoFixed PR11940 by getting scripts w/global variables to compile on 2.6.36.
David Smith [Mon, 23 Aug 2010 18:05:33 +0000 (13:05 -0500)]
Fixed PR11940 by getting scripts w/global variables to compile on 2.6.36.

* runtime/runtime.h: Updated module parameter get/set functions with new
  interface for 2.6.36.

13 years agoIntroduction for SystemTap Beginner's Guide edits
William Cohen [Fri, 20 Aug 2010 19:27:20 +0000 (15:27 -0400)]
Introduction for SystemTap Beginner's Guide edits

Correct the limitations section of the introduction. And do some minor edits
to the introduction.

13 years agoBump version for SystemTap Beginner's guide.
William Cohen [Fri, 20 Aug 2010 18:07:23 +0000 (14:07 -0400)]
Bump version for SystemTap Beginner's guide.

14 years agoAdd runcheck target to do full tests without install, using run-stap
Roland McGrath [Fri, 20 Aug 2010 20:02:53 +0000 (13:02 -0700)]
Add runcheck target to do full tests without install, using run-stap

* Makefile.am (runcheck, testsuite/stap): New targets.
* Makefile.in: Regenerated.

14 years agoPR 11441: Ensure that the integrated client compiles without NSS and/or AVAHI.
Dave Brolley [Fri, 20 Aug 2010 17:28:29 +0000 (13:28 -0400)]
PR 11441: Ensure that the integrated client compiles without NSS and/or AVAHI.

14 years agoPR 11441 - Additional update to stap.1 and NEWS entry for new integrated client features.
Dave Brolley [Fri, 20 Aug 2010 15:16:42 +0000 (11:16 -0400)]
PR 11441 - Additional update to stap.1 and NEWS entry for new integrated client features.

14 years agoPR 11441: More cleanup
Dave Brolley [Wed, 18 Aug 2010 17:05:20 +0000 (13:05 -0400)]
PR 11441: More cleanup

- Make sure client side database files are readable by all.
- Update stap.1 man page

14 years agoPR 11441: Cleanup of integrated compile-server/cert management.
Dave Brolley [Tue, 17 Aug 2010 18:00:09 +0000 (14:00 -0400)]
PR 11441: Cleanup of integrated compile-server/cert management.

- Call PR_Init/PR_Cleanup only once per session
- Encapsulate compile_server_info within csclient.cxx
- Expose only needed functions from csclient.cxx

14 years agoPR 11441: Allow specification of servers by certificate serial number.
Dave Brolley [Tue, 17 Aug 2010 15:29:35 +0000 (11:29 -0400)]
PR 11441: Allow specification of servers by certificate serial number.

Mainly intended for certificate management, particularly when revoking
trust, but also useful when listing servers and compiling using servers.

14 years agoPR 11441: Implement integrated server cert management in stap.
Dave Brolley [Mon, 16 Aug 2010 16:31:56 +0000 (12:31 -0400)]
PR 11441: Implement integrated server cert management in stap.

New --trust-servers option allows for precise handling of
individual server certificates for trust as an SSL peer and as a signer.

14 years agocreate_dir: create path components if they do not exist.
Dave Brolley [Thu, 12 Aug 2010 21:05:51 +0000 (17:05 -0400)]
create_dir: create path components if they do not exist.

14 years agoEnsure that the server's certificate is in place before attempting to get it's serial...
Dave Brolley [Thu, 12 Aug 2010 21:04:11 +0000 (17:04 -0400)]
Ensure that the server's certificate is in place before attempting to get it's serial number.

Also ensure that error output from certutil is logged.

14 years agoPR 11441: Implement resolving/querying of trusted servers (SSL) and trusted signing...
Dave Brolley [Mon, 9 Aug 2010 19:13:14 +0000 (15:13 -0400)]
PR 11441: Implement resolving/querying of trusted servers (SSL) and trusted signing servers.

- Serial number of server certificate now displayed by --list-servers when available
- Servers now present certificate serial number via avahi in order to assist the user in
  identifying trusted servers and signers.
- Resolve servers using dns, avahi and NSS in order to present complete information

14 years agoDon't check signing certificate database integrity unless we're actually going to...
Dave Brolley [Fri, 6 Aug 2010 15:34:21 +0000 (11:34 -0400)]
Don't check signing certificate database integrity unless we're actually going to verify a signature.

Database permissions were being checked even when loading unsigned modules.

14 years agoKill a stray paren in examples/io/inodewatch2.stp
Josh Stone [Fri, 20 Aug 2010 07:18:37 +0000 (00:18 -0700)]
Kill a stray paren in examples/io/inodewatch2.stp

14 years agoSupport a slight 32/64-bit difference in semok/mangled.stp
Josh Stone [Fri, 20 Aug 2010 07:18:03 +0000 (00:18 -0700)]
Support a slight 32/64-bit difference in semok/mangled.stp

14 years agoAdd shebang to buildok/syscalls-arch-detailed.stp
Josh Stone [Fri, 20 Aug 2010 07:16:55 +0000 (00:16 -0700)]
Add shebang to buildok/syscalls-arch-detailed.stp

14 years agoPrint nicer placeholders for aggregates in $$vars et al.
Josh Stone [Fri, 20 Aug 2010 00:15:06 +0000 (17:15 -0700)]
Print nicer placeholders for aggregates in $$vars et al.

* tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol_context):
  Use {...} and [...] to indicate aggregate types.

14 years agoInclude variables from containing scopes in $$vars too
Josh Stone [Thu, 19 Aug 2010 23:06:23 +0000 (16:06 -0700)]
Include variables from containing scopes in $$vars too

We now iterate through the lexical scopes up to but not including the
file level, so we can print variables in containing scopes too.

* tapsets.cxx * (dwarf_var_expanding_visitor::visit_target_symbol_context):
  Iterate through scopes to find available vars.

14 years agoList variables from containing scopes too
Josh Stone [Thu, 19 Aug 2010 22:42:55 +0000 (15:42 -0700)]
List variables from containing scopes too

Now we iterate through the lexical scopes up to but not including the
file level, so we can find variables in containing scopes too.  This is
most significant for statement probes to list everything available.
Excluding file-level means that globals aren't listed, but we could
consider a more verbose version to include those too.

* tapsets.cxx (dwarf_derived_probe::saveargs): Iterate through scopes.

14 years agoResolve statement scopes lexically instead of by raw PC
Josh Stone [Thu, 19 Aug 2010 21:32:09 +0000 (14:32 -0700)]
Resolve statement scopes lexically instead of by raw PC

When we have a statement PC within a function that we wish to probe,
it's not reliable to use getscopes(PC) for variable scoping.  This is
because there may also be inline instances at the PC, and so you can end
up in a different scope altogether.

So now we can traverse the DIEs within a function looking for the
innermost containing the PC, avoiding those nested DIEs which are
actually inlines.  This also lets us get rid of the hack that made
function prologues do a PC search, so we should have more reliable
scoping all around.

* dwflpp.cxx (dwflpp::inner_die_containing_pc): New, scan lexical scopes
  for the innermost DIE that contains a PC, avoiding inlines.
  (dwflpp::iterate_over_labels): Use the above to find the lexical scope
  containing the label's address.
* tapsets.cxx (query_srcfile_line): Use the above to find the closest
  DIE for each statement probe.
  (dwarf_var_expanding_visitor::getscopes): Always call getscopes on the
  given scope_die, so we don't have the trouble that a PC search entails.

14 years agoPR11911: Include in -L vars which are partially available
Josh Stone [Wed, 18 Aug 2010 23:23:29 +0000 (16:23 -0700)]
PR11911: Include in -L vars which are partially available

Mostly this is for aggregate types, like a struct type where we can't
translate $foo, but $foo->bar works just fine.  So instead of seeing if
translation works without error, we now look for location info
ourselves.  We list all $vars which are present at this address, even
if not "fully" available.

This also adds verbosity on errors, for PR11910.

* tapsets.cxx (dwarf_derived_probe::saveargs): Check for locations
  manually instead of trying translation.
* testsuite/semok/bz11911.stp: New test adapted from Roland.

14 years agoMinimize difference between Fedora and Red Hat Enterprise Flavors of Manual
William Cohen [Thu, 19 Aug 2010 20:58:08 +0000 (16:58 -0400)]
Minimize difference between Fedora and Red Hat Enterprise Flavors of Manual

14 years agoRemove stray whitespace at the end of lines
William Cohen [Thu, 19 Aug 2010 20:00:45 +0000 (16:00 -0400)]
Remove stray whitespace at the end of lines

Mechanically went through and removed the white space (' ' and \t) from
the end of lines.

14 years agoRemove stray '^M' from the xml files.
William Cohen [Thu, 19 Aug 2010 19:48:18 +0000 (15:48 -0400)]
Remove stray '^M' from the xml files.

14 years agoMinimize manual white space for <programlisting> and <screen>
William Cohen [Thu, 19 Aug 2010 19:16:22 +0000 (15:16 -0400)]
Minimize manual white space for <programlisting> and <screen>

Docbook pays attention to the white space in <programlisting> and <screen>
sections. To avoid the additional whitespace in those sections mechanically
went through xml and merged the lines together. The resulting manual is a
couple pages shorter.

14 years agoAdded 'stap-merge' to runtime files section.
David Smith [Thu, 19 Aug 2010 15:03:08 +0000 (10:03 -0500)]
Added 'stap-merge' to runtime files section.

14 years agoMake 'make check LD_LIBRARY_PATH=...' work right.
Roland McGrath [Wed, 18 Aug 2010 22:25:44 +0000 (15:25 -0700)]
Make 'make check LD_LIBRARY_PATH=...' work right.

* Makefile.am (check-local): Append to LD_LIBRARY_PATH, don't override it.
* Makefile.in: Regenerated.

14 years agoRemove redundant parameters of catch command in lib/systemtap.exp
Wenji Huang [Wed, 18 Aug 2010 01:51:54 +0000 (09:51 +0800)]
Remove redundant parameters of catch command in lib/systemtap.exp

14 years agoMade arch-specific syscalls probe fixups and deprecations. New testcase.
David Smith [Tue, 17 Aug 2010 20:47:51 +0000 (15:47 -0500)]
Made arch-specific syscalls probe fixups and deprecations.  New testcase.

* tapset/i386/syscalls.stp (syscall.sigaltstack): Deprecated 'ussp'
  variable in favor of 'uss_uaddr' (to match other arches).
* tapset/ia64/syscalls.stp(syscall.sigaltstack): Deprecated the
  'ss_uaddr'/'oss_uaddr' variables in favor of the
  'uss_uaddr'/'uoss_uaddr' variables (to match other arches).
* tapset/powerpc/syscalls.stp (syscall.sysctl32): Deprecated old probe
  name 'syscall.compat_sysctl'.
  (syscall.sysctl32.return): Deprecated old probe name
  'syscall.compat_sysctl.return'.
  (syscall.sigaltstack): Added probe.
  (syscall.sigaltstack.return): Ditto.
  (syscall.sys32_sigaltstack): Added the kernel function
  'compat_sys_sigaltstack' for newer kernels.
* tapset/s390/syscalls.stp (syscall.getresgid16): Added convenience
  variables to match 'syscall.getresgid'.
  (syscall.getresuid16): Added convenience variables to match
  'syscall.getresuid'.
  (syscall.mmap): Added convienece variables to match other arches.
  (syscall.mmap2): Ditto.
  (syscall.sigaltstack): Added probe.
  (syscall.sigaltstack.return): Ditto.
  (syscall.sys32_sigaltstack): Ditto.
  (syscall.sys32_sigaltstack.return): Ditto.
* tapset/x86_64/syscalls.stp (syscall.sigaltstack): Deprecated the
  'regs_uaddr' variable in favor of 'regs' (since the address isn't a user
  address).
  (syscall.mmap32): Added convenience variables to match 'syscall.mmap'.
  (syscall.pipe32): Added convenience variables to match 'syscall.pipe'.
* testsuite/buildok/testsuite/buildok/syscalls-arch-detailed.stp: New
  testcase.
* tapset/aux_syscalls.stp (__ulong): New function.
* testsuite/buildok/aux_syscalls-embedded.stp: Added __ulong() test.
* NEWS: Mentioned pending deprecations.
* stap.1: Ditto.

14 years agoSimplify dwfl_assert and dwarf_assert
Josh Stone [Tue, 17 Aug 2010 20:33:38 +0000 (13:33 -0700)]
Simplify dwfl_assert and dwarf_assert

We don't need template or const efforts for a null pointer check -- just
use const void* for all cases.  Make the overloaded variants inline
while I'm at it.

14 years agoPR7054: robustify stap -c " " a bit
Frank Ch. Eigler [Tue, 17 Aug 2010 19:58:13 +0000 (15:58 -0400)]
PR7054: robustify stap -c "  " a bit

* session.cxx (parse_cmdline): Reject empty -c argument.

14 years agoSupport DWARF4 linkage names
Josh Stone [Tue, 17 Aug 2010 19:42:49 +0000 (12:42 -0700)]
Support DWARF4 linkage names

With -gdwarf-4, gcc outputs DW_AT_linkage_name instead of
DW_AT_MIPS_linkage_name.  Semantics are unchanged.

* dwarf_wrappers.h (dwarf_linkage_name): New, retrieves the linkage_name
  by either the old or new attribute value.
* dwflpp.cxx (dwflpp::iterate_over_functions): Use dwarf_linkage_name.
  (dwflpp::vardie_from_symtable): Ditto.
* tapsets.cxx (dwarf_query::add_probe_point): Ditto.

14 years agoPR10975: deprecate cpuid() tapset fn in favour of cpu()
Frank Ch. Eigler [Mon, 16 Aug 2010 22:24:06 +0000 (18:24 -0400)]
PR10975: deprecate cpuid() tapset fn in favour of cpu()

14 years agoPR9928: note old elfutils for old gcc
Frank Ch. Eigler [Mon, 16 Aug 2010 22:12:03 +0000 (18:12 -0400)]
PR9928: note old elfutils for old gcc

14 years agoInitialize variable to avoid compiler error.
David Smith [Mon, 16 Aug 2010 21:38:02 +0000 (16:38 -0500)]
Initialize variable to avoid compiler error.

* dwflpp.cxx (iterate_over_functions): Initialize variable to make gcc
  happy.

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