]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoPR 11844 - --use-server-on-error option
Dave Brolley [Mon, 7 Feb 2011 20:00:15 +0000 (15:00 -0500)]
PR 11844 - --use-server-on-error option

- Now defaults to 'off'
- Errors no longer automatically result in retry using the server.
  This is done only for certain whitelisted errors.
  systemtap_session::set_try_server() is called for these errors.

13 years agoPR 12428 - Document Compile Server/Client Setup and Admin
Dave Brolley [Fri, 4 Feb 2011 18:32:37 +0000 (13:32 -0500)]
PR 12428 - Document Compile Server/Client Setup and Admin

- New README.unprivileged
- Update info about unprivileged mode in stap.1 and in stap-server.8
- Don't bother autoconfing paths in stap-server.8. Refer to stappaths
  instead.

13 years agoAdd gettext-devel build requirement to spec file.
William Cohen [Fri, 4 Feb 2011 13:27:33 +0000 (08:27 -0500)]
Add gettext-devel build requirement to spec file.

13 years agoAvoid using $env(HOSTNAME)
William Cohen [Thu, 3 Feb 2011 21:59:24 +0000 (16:59 -0500)]
Avoid using $env(HOSTNAME)

When running crontab jobs the systemtap.server/server.exp tests
would not run because $env(HOSTNAME) is unset. HOSTNAME is
set by the bash shell and is not available in crontab run tests.
An equivalent [info hostname] is used in its place.

13 years agoRevert accidental gettext clobbering
Josh Stone [Thu, 3 Feb 2011 19:45:33 +0000 (11:45 -0800)]
Revert accidental gettext clobbering

13 years agoWrapped lines, fixed some white space issues.
Lukas Berk [Thu, 3 Feb 2011 14:30:02 +0000 (09:30 -0500)]
Wrapped lines, fixed some white space issues.

Some comments with the original strings have been left in for
ease of comparison. They will be removed for the final I18N commit.

13 years agogettext changes in main.cxx and session files
Lukas Berk [Thu, 3 Feb 2011 14:16:24 +0000 (09:16 -0500)]
gettext changes in main.cxx and session files

to invoke run $ xgettext -c -k_ main.cxx session.*
not every string has been set up for gettext translation, at this
point it is just to make sure it doesn't break stap.  The more
complicated strings will be I18N in time.

13 years agoAutoconf groundwork for I18N of systemtap
Lukas Berk [Thu, 3 Feb 2011 14:10:04 +0000 (09:10 -0500)]
Autoconf groundwork for I18N of systemtap

TODO: localedir needs to be a variable and not hard-coded
further changes to files for .po file output are upcoming.

13 years agoCleanup to improve sdt on ppc.
Stan Cox [Tue, 1 Feb 2011 22:08:12 +0000 (17:08 -0500)]
Cleanup to improve sdt on ppc.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Use variable shift amount.  Don't cast unless probe type 3.
* sdt_misc.exp (type_flags): Don't use sup_flags
* sdt_types.c: Check __SIZEOF_SIZE_T__ for long long tests.

13 years agoAssert that TMPDIR, if set, is a boring path
Josh Stone [Fri, 28 Jan 2011 23:02:50 +0000 (15:02 -0800)]
Assert that TMPDIR, if set, is a boring path

We don't want any excitement in the paths we must use.
e.g. Kbuild doesn't cope well with spaces in the M="/module path"

* session.cxx (systemtap_session::check_options): Restrict the
  characters allowed in TMPDIR to a universally-safe set.
* testsuite/parseko/cmdline22.stp: New, check that TMPDIR spaces are
  not allowed, even if that path really exists.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Fri, 28 Jan 2011 21:18:40 +0000 (16:18 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoEnsure systemtap.stress/conversions.exp generates individual errors and warnings
William Cohen [Fri, 28 Jan 2011 21:12:08 +0000 (16:12 -0500)]
Ensure systemtap.stress/conversions.exp generates individual errors and warnings

PR12168 eliminated duplicated error messages and changed the count of
ERROR and WARNING messages. Adding the "-vv" option turns off the
duplication eliminate and allows an accurate count of the number
of times ERROR and WARNING messages occur.

13 years agoPR 11844 - --use-server-on-error option
Dave Brolley [Fri, 28 Jan 2011 19:55:29 +0000 (14:55 -0500)]
PR 11844 - --use-server-on-error option

- Mechanism is in session.cxx, session.h.
- Code in main.cxx:passes_0_4 calls set_try_server upon compilation
  errors in phases 0-4.
- set_try_server (systemtap_session:dont_try_server) can be set for
  individual errors which do not warrant a retry (e.g. syntax errors)
  to override.

13 years agoMake sure NSS and NSPR are properly initialized and shutdown.
Dave Brolley [Wed, 26 Jan 2011 22:15:35 +0000 (17:15 -0500)]
Make sure NSS and NSPR are properly initialized and shutdown.

- rpmReadConfigFiles initializes NSS, but does not shut it down.
  We now call rpmFreeCrypto if available or call NSS_Shutdown directly otherwise
  in missing_rpm_enlist
- In some versions of NSPR, PR_Init must be called once and only once before NSS_Init or
  NSS_InitReadOnly is called. In later versions, it is unnecessary and is ignored.
  systemtap_session::NSPR_Initialized is now static so that it is
  shared by all active session objects.

13 years agoRemove unused variables and calls which initialized them.
Dave Brolley [Wed, 26 Jan 2011 20:54:53 +0000 (15:54 -0500)]
Remove unused variables and calls which initialized them.

13 years agoFixed BZ559599 by making target_set.stp use syscall probes for ia64.
David Smith [Fri, 28 Jan 2011 18:58:26 +0000 (12:58 -0600)]
Fixed BZ559599 by making target_set.stp use syscall probes for ia64.

* tapset/target_set.stp: Dwarfless probes don't work on ia64, so fall back
  to the 'syscall' probes (as we do for kernels < 2.6.18).

13 years agoFixed BZ661424 by checking for $prev_p first in __scheduler.ctxswitch.kp.
David Smith [Thu, 27 Jan 2011 20:54:13 +0000 (14:54 -0600)]
Fixed BZ661424 by checking for $prev_p first in __scheduler.ctxswitch.kp.

* tapset/scheduler.stp: Checks for '$prev_p' before checking for '$prev'
  so that i386 RHEL5 (which has both arguments) works correctly.

13 years agoBZ673085: amplify documentation on initialization of probe alias variables
Frank Ch. Eigler [Thu, 27 Jan 2011 14:54:08 +0000 (09:54 -0500)]
BZ673085: amplify documentation on initialization of probe alias variables

13 years agoAvoid use of limits include in sdt. Sign extend signed HI/SI values.
Stan Cox [Wed, 26 Jan 2011 15:10:01 +0000 (10:10 -0500)]
Avoid use of limits include in sdt.  Sign extend signed HI/SI values.

* sdt.h (limits): Remove.
(__sdt_type): Predefine type signness.
* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Sign extend signed HI/SI values.
* sdt_asm.stp (rN): Add rNd tests

13 years agostap-report: also add a dummy "stap -vv -p4 ..." run
Frank Ch. Eigler [Wed, 26 Jan 2011 13:32:00 +0000 (08:32 -0500)]
stap-report: also add a dummy "stap -vv -p4 ..." run

13 years agostap-report: dump more state
Frank Ch. Eigler [Wed, 26 Jan 2011 13:21:57 +0000 (08:21 -0500)]
stap-report: dump more state

$XDG_DATA_* since that can interfere, and /proc*/*/kprobes*, for completeness

13 years agoGCC 4.6 unused-variable warnings
Frank Ch. Eigler [Mon, 24 Jan 2011 18:30:04 +0000 (13:30 -0500)]
GCC 4.6 unused-variable warnings

We set a couple of variables that later code doesn't use.  GCC 4.6
warns about them, which our C*FLAGS=-Werror turned into a build failure.
Worked around these by adding a (void) var; to add a dummy use.

13 years agoadding #ifdef CLONE_STOPPED to stop module compilation error
Lukas Berk [Mon, 24 Jan 2011 17:09:29 +0000 (12:09 -0500)]
adding #ifdef CLONE_STOPPED to stop module compilation error

13 years agoAudit some minus/dash/hyphen use in manpages
Josh Stone [Fri, 21 Jan 2011 23:44:41 +0000 (15:44 -0800)]
Audit some minus/dash/hyphen use in manpages

Groff treats "-" as a hyphen, U+2010.  When the intention is to produce
a literal ASCII minus sign, U+002D, it must be "\-".  This matters for
command-line options and examples to be copyable from the manpage.

I've updated cases that should obviously be escaped.  At a glance, I
think we have other cases that could be normal hyphens, not escaped, but
that's less of an issue.

13 years agoAdd the cache options from commit d105f66 to stap.1
Josh Stone [Fri, 21 Jan 2011 23:25:35 +0000 (15:25 -0800)]
Add the cache options from commit d105f66 to stap.1

13 years agoAdd support for real URI syntax in remote targets
Josh Stone [Fri, 21 Jan 2011 22:06:52 +0000 (14:06 -0800)]
Add support for real URI syntax in remote targets

We still only support SSH for now, but this opens the door for other
protocols.  All of the following should work:

  --remote host
  --remote user@host
  --remote ssh://host/
  --remote ssh://user@host/

URI paths, queries, and fragments are all parsed, but don't have any
meaning yet, so they're treated as an error.  I can imagine using this
for protocol-specific options though, e.g. ssh://host/?Compression=yes

* remote.cxx (class uri_decoder): New, breaks down a URI string.
  (ssh_remote::ssh_remote): Add a constructor using a uri_decoder.
  (remote::create): Redirect based on the scheme of URI-looking remote
  targets.  Assume all others are still plain [user@]host for ssh.

13 years agoPR 11862: remove obsolete stap-client script and friends
Dave Brolley [Fri, 21 Jan 2011 16:21:37 +0000 (11:21 -0500)]
PR 11862: remove obsolete stap-client script and friends

Rework and improve warnings for missing NSS and avahi headers, libs and tools

13 years agoPR 11862: remove obsolete stap-client script and friends
Dave Brolley [Wed, 19 Jan 2011 22:15:31 +0000 (17:15 -0500)]
PR 11862: remove obsolete stap-client script and friends

- Integrate stap-client-connect.c into csclient.cxx
- Remove stap-client-connect.c

13 years agoPR 11862: remove obsolete stap-client script and friends
Dave Brolley [Wed, 19 Jan 2011 20:36:56 +0000 (15:36 -0500)]
PR 11862: remove obsolete stap-client script and friends

- Remove deprecated scripts
- Remove parts of stap-env used only by the removed scripts
- Remove man pages for removed scripts
- Remove parts of stap-client-connect which allowed it to be built
  as a standalone tool (used by stap-client).
- Update spec file. systemtap-client package removed.

13 years agoImprove sdt asm test coverage.
Stan Cox [Fri, 21 Jan 2011 03:10:36 +0000 (22:10 -0500)]
Improve sdt asm test coverage.

* sdt_asm.S:  Improve coverage of tested registers and values.
* sdt_asm.stp: Likewise.

13 years agoPR12413, Provide TID information in kprocess.create and kprocess.release
Jan Kratochvil [Thu, 20 Jan 2011 21:40:26 +0000 (16:40 -0500)]
PR12413, Provide TID information in kprocess.create and kprocess.release

13 years agoPR12412: Make the text agree with the example (should be reads)
William Cohen [Thu, 20 Jan 2011 20:47:11 +0000 (15:47 -0500)]
PR12412: Make the text agree with the example (should be reads)

13 years agoAllow sdt to avoid application defined min/max macros.
Stan Cox [Wed, 19 Jan 2011 20:52:14 +0000 (15:52 -0500)]
Allow sdt to avoid application defined min/max macros.

* sdt.h:  Surround limits inclusion with push_macro and pop_macro.

13 years agoPR12419: fix x86 uprobes decoding of "repnz ret"
Roland McGrath [Wed, 19 Jan 2011 19:23:43 +0000 (11:23 -0800)]
PR12419: fix x86 uprobes decoding of "repnz ret"

13 years agoBZ669082: support powerpc prior to 2.6.15, resolving conflict with PR4186
Frank Ch. Eigler [Wed, 19 Jan 2011 18:53:50 +0000 (13:53 -0500)]
BZ669082: support powerpc prior to 2.6.15, resolving conflict with PR4186

* buildrun.cxx (compile_pass): Omit passing of ARCH=foo for
  ancient powerpc.  This enables native ARCH=ppc64 builds,
  but sacrifices ppc-target cross-architecture cross-compilation.
  (make_tracequery_kmod, make_typequery_kmod): Ditto.

13 years agoPR12411 cont'd: use enum type decl
Frank Ch. Eigler [Wed, 19 Jan 2011 13:20:22 +0000 (08:20 -0500)]
PR12411 cont'd: use enum type decl

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Make regwidths
  an enum type decl, not an anonymous-enum-typed variable.  Move
  DRI macro #define/#undef just around its use.

13 years agoRHBZ669751: old ia64 kernels lack task_pt_regs()
Frank Ch. Eigler [Tue, 18 Jan 2011 20:54:51 +0000 (15:54 -0500)]
RHBZ669751: old ia64 kernels lack task_pt_regs()

... so define it in terms of ia64_task_regs()

13 years agoSwitch to using a register width table instead of heuristic code.
Stan Cox [Wed, 19 Jan 2011 12:09:01 +0000 (07:09 -0500)]
Switch to using a register width table instead of heuristic code.

       * tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add DRI and regwidths.
       Change dwarf_regs to be a regname/regwidth pair.  Change initializer.
       * (sdt_uprobe_var_expanding_visitor::visit_target_symbol):  Use it.

13 years agoFixed BZ669740 by making target_set.stp use syscall probes in kernels < 2.6.18.
David Smith [Tue, 18 Jan 2011 20:14:13 +0000 (14:14 -0600)]
Fixed BZ669740 by making target_set.stp use syscall probes in kernels < 2.6.18.

* tapset/target_set.stp: Dwarfless probes don't work in kernels < 2.6.18.
  So, fall back to 'syscall' probes for those kernels (instead of
  'nd_syscall' probes.

13 years agoPR 11445: Check that assert_is_my_proc check is within all uprobes/utrace callback...
Dave Brolley [Tue, 18 Jan 2011 19:39:08 +0000 (14:39 -0500)]
PR 11445: Check that assert_is_my_proc check is within all uprobes/utrace callback entry points

Add comment explaining why a check for is_myproc() is not generated as a
safety net for process.end probes and their variants.

13 years agosystemtap.apps infrastructure fixes.
Stan Cox [Mon, 17 Jan 2011 22:47:43 +0000 (17:47 -0500)]
systemtap.apps infrastructure fixes.

mysql.exp (stap-mysql.sh): Use push/pop_macro to avoid mysql max/min macros.
xulrunner.exp (stap-xul.sh): Make JAVA_HOME platform independent.

13 years agoCleanup warnings caused by CFLAGS correction.
Dave Brolley [Mon, 17 Jan 2011 18:53:56 +0000 (13:53 -0500)]
Cleanup warnings caused by CFLAGS correction.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Mon, 17 Jan 2011 18:44:34 +0000 (13:44 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:
configure
testsuite/configure

13 years agoConfiguration problems.
Dave Brolley [Mon, 17 Jan 2011 18:29:50 +0000 (13:29 -0500)]
Configuration problems.

- CFLAGS was being cleared in configure.ac (oldCFLAGS typo)
- CXXFLAGS was not always being set (CXFXLAGS typo)
- pick up $(AM_CFLAGS) and @PIECFLAGS@ in all C compilations in Makefile.am

13 years agobump version numbers to 1.5, for future release cycle
Frank Ch. Eigler [Mon, 17 Jan 2011 17:45:10 +0000 (12:45 -0500)]
bump version numbers to 1.5, for future release cycle

13 years agodatestamp release release-1.4
Frank Ch. Eigler [Mon, 17 Jan 2011 11:31:41 +0000 (06:31 -0500)]
datestamp release

13 years agoREADME: build instructions suggest elfutils version 0.151
Frank Ch. Eigler [Sat, 15 Jan 2011 00:48:16 +0000 (19:48 -0500)]
README: build instructions suggest elfutils version 0.151

13 years agoPR12399: make sdt.h semaphores visibility("hidden")
Frank Ch. Eigler [Fri, 14 Jan 2011 22:39:21 +0000 (17:39 -0500)]
PR12399: make sdt.h semaphores visibility("hidden")

13 years agoNEWS: sdt.h v3
Frank Ch. Eigler [Fri, 14 Jan 2011 17:38:24 +0000 (12:38 -0500)]
NEWS: sdt.h v3

13 years agoPR 10657: Document changes in NEWS and in stap.1.
Dave Brolley [Fri, 14 Jan 2011 21:00:25 +0000 (16:00 -0500)]
PR 10657: Document changes in NEWS and in stap.1.

13 years agoFix myproc-unprivileged in embedded_expr
Josh Stone [Fri, 14 Jan 2011 19:13:30 +0000 (11:13 -0800)]
Fix myproc-unprivileged in embedded_expr

The macro assert_is_myproc() forms a statement, so we need to wrap it
in ({}) to use it in an expression list.

* translate.cxx (c_unparser::visit_embedded_expr): Wrap stmt as expr.

13 years agoPR 10657 - semi-unprivileged tapset embedded-C functions.
Dave Brolley [Fri, 14 Jan 2011 18:19:21 +0000 (13:19 -0500)]
PR 10657 - semi-unprivileged tapset embedded-C functions.

Including the comment /* myproc-unprivileged */ within an embedded C
tapset function or embedded C expression makes it available for use
by unprivileged users and also automatically adds a call to
assert_is_myproc() within the function or expression (i.e. it is
equivalent to including the comment /* unprivileged */ and
manually adding the the call to assert_is_myproc).

All instances within the tapset source tree have been updated.

13 years agoPR11756 - adding warnings for deprecated declarations
Lukas Berk [Fri, 14 Jan 2011 15:32:47 +0000 (10:32 -0500)]
PR11756 - adding warnings for deprecated declarations
Added the --version-check  flag, this will check if systemtap
constructors being used are version dependent. If so, a warning
detailing what syntax element is displayed.

13 years agoPR12115: defeat uninitialized-variable warnings
Frank Ch. Eigler [Fri, 14 Jan 2011 00:21:19 +0000 (19:21 -0500)]
PR12115: defeat uninitialized-variable warnings

13 years agoPR12115: defeat uninitialized-variable warning
Frank Ch. Eigler [Fri, 14 Jan 2011 00:21:19 +0000 (19:21 -0500)]
PR12115: defeat uninitialized-variable warning

13 years agoNEWS: tweak --remote blurb wording
Frank Ch. Eigler [Thu, 13 Jan 2011 20:57:47 +0000 (15:57 -0500)]
NEWS: tweak --remote blurb wording

13 years agoAUTHORS bump
Josh Stone [Thu, 13 Jan 2011 03:51:40 +0000 (19:51 -0800)]
AUTHORS bump

13 years agoFix for undefined STAPCONF_PERF_STRUCTPID
Josh Stone [Thu, 13 Jan 2011 02:09:09 +0000 (18:09 -0800)]
Fix for undefined STAPCONF_PERF_STRUCTPID

13 years agoFix paragraph indentation of ssl options
Josh Stone [Thu, 13 Jan 2011 01:20:20 +0000 (17:20 -0800)]
Fix paragraph indentation of ssl options

13 years agoDisable auto-unpriv when --remote is used
Josh Stone [Thu, 13 Jan 2011 01:19:09 +0000 (17:19 -0800)]
Disable auto-unpriv when --remote is used

13 years agoPR12115: Document --remote in NEWS, stap.1, and --help
Josh Stone [Thu, 13 Jan 2011 01:18:17 +0000 (17:18 -0800)]
PR12115: Document --remote in NEWS, stap.1, and --help

13 years agoMerge branch 'master' into remote
Josh Stone [Wed, 12 Jan 2011 20:13:06 +0000 (12:13 -0800)]
Merge branch 'master' into remote

13 years agoIntegrate sdt-compat.h into testsuite sdt.h
Stan Cox [Wed, 12 Jan 2011 03:17:22 +0000 (22:17 -0500)]
Integrate sdt-compat.h into testsuite sdt.h

Makefile.am: Use sdt_types.h instead of sdt-compat.h
Makefile.in: Likewise.
tapsets.cxx: Likewise.
testsuite/sys/sdt.h: Integrate sdt-compat.h.
sdt-compat.h: Remove.
sdt_types.h: New.

13 years agoPR11203: Provide default init functions for initscript/systemtap.
Dave Brolley [Tue, 11 Jan 2011 16:08:08 +0000 (11:08 -0500)]
PR11203: Provide default init functions for initscript/systemtap.

Used on plattforms where /etc/rc.d/init.d/functions is not available.

13 years agoPR11203: Provide default init functions for stap-server.
Dave Brolley [Mon, 10 Jan 2011 19:42:46 +0000 (14:42 -0500)]
PR11203: Provide default init functions for stap-server.

Used on plattforms where /etc/rc.d/init.d/functions is not available.

13 years agotapset compat: irq tracepoints to use @cast() for $action
Frank Ch. Eigler [Mon, 10 Jan 2011 18:41:26 +0000 (13:41 -0500)]
tapset compat: irq tracepoints to use @cast() for $action

13 years agoyear bump
Frank Ch. Eigler [Mon, 10 Jan 2011 17:01:35 +0000 (12:01 -0500)]
year bump

13 years agoPR12168: fix testcase to unsuppress warnings
Frank Ch. Eigler [Mon, 10 Jan 2011 16:53:37 +0000 (11:53 -0500)]
PR12168: fix testcase to unsuppress warnings

13 years agocompatibility: perf_event.h updates for kernel 2.6.37
Frank Ch. Eigler [Fri, 7 Jan 2011 21:22:49 +0000 (16:22 -0500)]
compatibility: perf_event.h updates for kernel 2.6.37

* runtime/autoconf-perf-structpid.c: New file.
* buildrun.cxx: Use it to define STAPCONF_PERF_STRUCTPID.
* runtime/perf.c: Respect it for perf_event_create_kernel_counter param 3.

13 years agopfiles test: adapt to upstream kernel commit 53c3fa206
Frank Ch. Eigler [Fri, 7 Jan 2011 19:04:54 +0000 (14:04 -0500)]
pfiles test: adapt to upstream kernel commit 53c3fa206

sk_peercred->pid -> sk_peer_pid->....

13 years agotestsuite: accept post-PR11736 hit-count message
Frank Ch. Eigler [Fri, 7 Jan 2011 19:03:38 +0000 (14:03 -0500)]
testsuite: accept post-PR11736 hit-count message

13 years agoInelegant workaround for systemtap.apps mysql.exp's use of min/max
Stan Cox [Fri, 7 Jan 2011 21:14:52 +0000 (16:14 -0500)]
Inelegant workaround for systemtap.apps mysql.exp's use of min/max

* mysql.exp (do_abi_check): skip it.
(probes_mysql.h): #undef min/max prior to sdt.h inclusion, then re-#define

13 years agoParenthesize probe arguments properly.
Stan Cox [Tue, 4 Jan 2011 22:13:37 +0000 (17:13 -0500)]
Parenthesize probe arguments properly.

* sdt-compat.h (STAP_CAST): Parenthesize.
(STAP_PROBE{1,10}): Parenthisize kprobe arguments too.

* sdt_misc.c (buz): Test probing a boolean expression.

* sdt_misc.exp (sup_flags): Compile tests with -Wall -Werror

* sdt_misc.stp (test_probe_1): New.

* sdt_misc_.d (test_probe_1): New.

* sdt_types.c (arr_struct, primary_colors_var): Only declare if needed.

13 years agoPR12172: make implied --unprivileged --use-server emit messages only if verbose
Frank Ch. Eigler [Thu, 23 Dec 2010 16:30:04 +0000 (11:30 -0500)]
PR12172: make implied --unprivileged --use-server emit messages only if verbose

13 years agoConditionalize sdt tests resulting in templates with anonymous types.
Stan Cox [Wed, 22 Dec 2010 18:44:47 +0000 (13:44 -0500)]
Conditionalize sdt tests resulting in templates with anonymous types.

* sdt_types.c (arr_struct, primary_colors, incomplete_struct_type):
Make conditional.

* sdt_types.stp: Likewise.

13 years agoPR12172: make unprivileged mode default under certain conditions.
Dave Brolley [Wed, 22 Dec 2010 16:16:27 +0000 (11:16 -0500)]
PR12172: make unprivileged mode default under certain conditions.

--unprivileged --use-server is now the default for invocations requiring
phase 5 for members of the group stapusr who are not also members of
the group stapdev.

13 years agoFixed PR12338 by updating softirq.entry/softirq.exit probes for 2.6.37+.
David Smith [Tue, 21 Dec 2010 21:53:33 +0000 (15:53 -0600)]
Fixed PR12338 by updating softirq.entry/softirq.exit probes for 2.6.37+.

* tapset/irq.stp: Added 'vec_nr' variable to softirq.entry/softirq.exit
  probes.  Used @defined() to make sure old variables are present.
* testsuite/buildok/irq-detailed.stp: Updated softirq.entry/softirq.exit
  test.

13 years agoEditing the Beginner's guide section on target variables.
William Cohen [Tue, 21 Dec 2010 19:08:36 +0000 (14:08 -0500)]
Editing the Beginner's guide section on target variables.

13 years agoMake syscall.nfsservctl* tests optional for kernel 2.6.35.9-64.fc14.x86_64.
David Smith [Tue, 21 Dec 2010 16:33:15 +0000 (10:33 -0600)]
Make syscall.nfsservctl* tests optional for kernel 2.6.35.9-64.fc14.x86_64.

* testsuite/buildok/syscalls2-detailed.stp: Make syscall.nfsservctl and
  syscall.nfsservctl.return tests optional.

13 years agotweak wording/suppressibility of .function/.statement warning
Frank Ch. Eigler [Tue, 21 Dec 2010 02:57:54 +0000 (21:57 -0500)]
tweak wording/suppressibility of .function/.statement warning

13 years agoAdd warning for supposedly line-oriented .function() probes.
Przemyslaw Pawelczyk [Tue, 21 Dec 2010 00:55:07 +0000 (01:55 +0100)]
Add warning for supposedly line-oriented .function() probes.

13 years ago2010-12-20 David Smith <dsmith@redhat.com>
David Smith [Mon, 20 Dec 2010 22:47:19 +0000 (16:47 -0600)]
2010-12-20  David Smith  <dsmith@redhat.com>

Fix PR11388 by handling nd_syscall.mmap changes for 2.6.33+ kernels.

* tapset/nd_syscalls.stp: Use arch-generic sys_mmap_pgoff() for
  nd_syscall.mmap2 if kernel version is 2.6.33 or higher.
* tapset/i386/nd_syscalls.stp: Only use arch-specific nd_syscall.mmap*
  probes if kernel version is less than 2.6.33.
* tapset/ia64/nd_syscalls.stp: Ditto.
* tapset/s390/nd_syscalls.stp: Ditto.
* tapset/powerpc/nd_syscalls.stp: Ditto.  Also add missing
  nd_syscall.sigaltstack probe.
* tapset/x86_64/nd_syscalls.stp: Ditto.  Also move sys_mmap_pgoff() probe
  to nd_syscall.mmap2 alias (instead of nd_syscall.mmap alias).
* testsuite/buildok/nd_syscalls-detailed.stp: Add generic nd_syscall.mmap2
  test if kernel version is 2.6.33 or higher.
* testsuite/buildok/nd_syscalls-arch-detailed.stp: New test.
* testsuite/lib/stap_buildok.exp: Add new nd_syscalls-arch-detailed.stp
  test to known ia64 failures.

13 years agoAdd information about pretty printing the the SystemTap Beginners guide.
William Cohen [Mon, 20 Dec 2010 21:41:38 +0000 (16:41 -0500)]
Add information about pretty printing the the SystemTap Beginners guide.

13 years agohandle #!/usr/bin/env
rho@redhat.com [Mon, 20 Dec 2010 15:32:42 +0000 (10:32 -0500)]
handle #!/usr/bin/env

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Mon, 20 Dec 2010 15:17:05 +0000 (10:17 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agotweak stapprobes blurb for .function -vs- .statement probes
Frank Ch. Eigler [Mon, 20 Dec 2010 15:15:57 +0000 (10:15 -0500)]
tweak stapprobes blurb for .function -vs- .statement probes

13 years agoRemove abusive use of monospace in langref.pdf
William Cohen [Mon, 20 Dec 2010 15:13:18 +0000 (10:13 -0500)]
Remove abusive use of monospace in langref.pdf

Expansion of Adrien Kunysz's patch in PR 12335. Use the \textt rather
than \tt to get the proper use of monospace fonts.

13 years agoClear semaphore when stap_uprobe slot is released.
Stan Cox [Sat, 18 Dec 2010 03:55:33 +0000 (22:55 -0500)]
Clear semaphore when stap_uprobe slot is released.

uprobes-common.c (stap_uprobe_change_{plus,minus}): Clear semaphore.

13 years agoPR 11922: Disable checking of DNS names on compile-server certificates.
Dave Brolley [Fri, 17 Dec 2010 18:58:29 +0000 (13:58 -0500)]
PR 11922: Disable checking of DNS names on compile-server certificates.

The client now issues a warning and accepts the certificate.

13 years agoFix PR11388 by handling syscall.mmap changes for 2.6.33+ kernels.
David Smith [Thu, 16 Dec 2010 20:55:25 +0000 (14:55 -0600)]
Fix PR11388 by handling syscall.mmap changes for 2.6.33+ kernels.

* tapset/syscalls.stp: Use arch-generic sys_mmap_pgoff() for syscall.mmap2
  if kernel version is 2.6.33 or higher.
* tapset/i386/syscalls.stp: Only use arch-specific syscall.mmap* probes if
  kernel version is less than 2.6.33.
* tapset/ia64/syscalls.stp: Ditto.
* tapset/powerpc/syscalls.stp: Ditto.
* tapset/s390/syscalls.stp: Ditto.
* tapset/x86_64/syscalls.stp: Ditto.  Also move sys_mmap_pgoff() probe to
  syscall.mmap2 alias (instead of syscall.mmap alias).
* testsuite/buildok/syscalls-detailed.stp: Add generic syscall.mmap2 test
  if kernel version is 2.6.33 or higher.
* testsuite/buildok/syscalls-arch-detailed.stp: Only test arch-specific
  syscall.mmap* probes if kernel version is less than 2.6.33.

13 years agoFix s390 stack size problem.
David Smith [Thu, 16 Dec 2010 20:48:09 +0000 (14:48 -0600)]
Fix s390 stack size problem.

* tapset/s390/nd_syscalls.stp (get_32mmap_args): Lower size of temporary
  variable to avoid stack size error.

13 years agoFix RHEL4 compile problem in runtime/staprun/staprun.c.
David Smith [Thu, 16 Dec 2010 20:37:57 +0000 (14:37 -0600)]
Fix RHEL4 compile problem in runtime/staprun/staprun.c.

* runtime/staprun/staprun.c (remove_module): Only call prctl() if
  PR_SET_NAME is defined.

13 years agoFixed PR12330 by changing tapset/tty.stp to avoid ppc64 compile problem.
David Smith [Thu, 16 Dec 2010 20:01:31 +0000 (14:01 -0600)]
Fixed PR12330 by changing tapset/tty.stp to avoid ppc64 compile problem.

* tapset/tty.stp (_struct_winsize_u): Removed embedded-C function.
  (tty.resize): Removed calls to _struct_winsize_u() and just uses
  user_ushort() to get values in user memory.
* tapset/uconversions.stp (user_ushort): New function.
  (user_ushort_warn): Ditto.
* testsuite/buildok/conversions-embedded.stp: Added user_ushort() and
  user_ushort_warn() tests.
* testsuite/buildok/tty-embedded.stp: Removed (since all embedded-C
  functions have been removed from tty.stp).

13 years agoA discussion about @defined to SystemTap Beginners Guide.
William Cohen [Wed, 15 Dec 2010 23:00:04 +0000 (18:00 -0500)]
A discussion about @defined to SystemTap Beginners Guide.

13 years agoMove casting example in Beginners guide to extra/cast_example.stp
William Cohen [Wed, 15 Dec 2010 22:30:13 +0000 (17:30 -0500)]
Move casting example in Beginners guide to extra/cast_example.stp

13 years agoPR12309 part 2: ditch delayed_work for timers
Frank Ch. Eigler [Wed, 15 Dec 2010 20:13:46 +0000 (15:13 -0500)]
PR12309 part 2: ditch delayed_work for timers

* runtime/transport/transport.c: Remove all references to workqueues,
  delayed_work*; replace with same sort of timer use in relay_v2.c.

13 years agoPR12309 part 1, use atomic_t for delayed_work state signaling
Frank Ch. Eigler [Mon, 13 Dec 2010 18:50:02 +0000 (13:50 -0500)]
PR12309 part 1, use atomic_t for delayed_work state signaling

There was a possible race condition between multiple processes opening
the transport .ctl file concurrently.

* runtime/transport/transport.h (_stp_ctl_attached): Become atomic_t.
* runtime/transport/transport.c (_stp_attach, _stp_detach):
  Stop messing with it.
* runtime/transport/control.c (_stp_ctl_open|close_cmd): Use atomic_t
  and reorder logic to defeat race condition.

13 years agoruntime: let staprun -d identify itself differently in task->comm
Frank Ch. Eigler [Mon, 13 Dec 2010 18:39:06 +0000 (13:39 -0500)]
runtime: let staprun -d identify itself differently in task->comm

staprun.c (remove_module): Use prctl() to set task name to "staprun-d".

13 years agoState which version systemtap @cast available in.
William Cohen [Wed, 15 Dec 2010 19:22:38 +0000 (14:22 -0500)]
State which version systemtap @cast available in.

13 years agoFree the URL of the ssl socket when finished with it.
Dave Brolley [Wed, 15 Dec 2010 17:24:05 +0000 (12:24 -0500)]
Free the URL of the ssl socket when finished with it.

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