]> sourceware.org Git - systemtap.git/log
systemtap.git
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.

13 years agoPR 11922: Allow ip address as host name to match ip address in server certificate.
Dave Brolley [Wed, 15 Dec 2010 17:04:57 +0000 (12:04 -0500)]
PR 11922: Allow ip address as host name to match ip address in server certificate.

The default certificate function (SSL_AuthCertificate) fails to match DNS names
which resemble ip addresses. It then calls our badCertHandler callback. There
we get the chance to manually match the ip address.

13 years agoAdd description of @cast operator to beginners guide.
William Cohen [Wed, 15 Dec 2010 16:55:43 +0000 (11:55 -0500)]
Add description of @cast operator to beginners guide.

13 years agoSplit user_int64 in two on i386
Josh Stone [Tue, 14 Dec 2010 22:47:56 +0000 (14:47 -0800)]
Split user_int64 in two on i386

* tapset/uconversions.stp (user_int64): Since __stp_get_user can't do
  64-bit reads on i386, we must read the value in two parts.
  (user_uint64): Make this just a wrapper for user_int64.

13 years agoFix user memory access on s390x.
David Smith [Tue, 14 Dec 2010 21:50:15 +0000 (15:50 -0600)]
Fix user memory access on s390x.

* tapset/uconversions.stp (__STP_GET_USER): Switch back to using
  __stp_get_user() instead of kread() to read user memory.

13 years agoImprove 386 precision op handling.
Stan Cox [Tue, 14 Dec 2010 19:57:07 +0000 (14:57 -0500)]
Improve 386 precision op handling.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add probe_type.
(visit_target_symbol): Make default precision signed, unless asm probe.

* sdt_misc.exp (sdt_types):  Allow v1/v2 i386 unsigned test xfail

* sdt_types.c (unsigned_short_int_var, unsigned_int_var): Simplify

* sdt_types.stp: Likewise.

13 years agoAdd information about user-space stack backtrace to Beginners Guide.
William Cohen [Mon, 13 Dec 2010 22:14:55 +0000 (17:14 -0500)]
Add information about user-space stack backtrace to Beginners Guide.

13 years agoFix RHEL5 (older gcc) compile problem.
David Smith [Mon, 13 Dec 2010 19:56:04 +0000 (13:56 -0600)]
Fix RHEL5 (older gcc) compile problem.

* tapsets.cxx (visit_target_symbol): Fix RHEL5 (older gcc) compile
  problem by changing '__SIZEOF_LONG__' to 'sizeof(long)'.

13 years agoFixed PR 12314 by correctly including linux/inotify.h.
David Smith [Mon, 13 Dec 2010 19:41:07 +0000 (13:41 -0600)]
Fixed PR 12314 by correctly including linux/inotify.h.

* tapset/aux_syscalls.stp: Look for CONFIG_INOTIFY_USER (along with
  CONFIG_INOTIFY) when including linux/inotify.h.

13 years agoDon't use /tmp as an arbitrary argument for -I or -R when testing.
Dave Brolley [Mon, 13 Dec 2010 19:23:36 +0000 (14:23 -0500)]
Don't use /tmp as an arbitrary argument for -I or -R when testing.

It could contain .stp files which affect the test outcome.

13 years agoCompare sdt probe args as is.
Stan Cox [Fri, 10 Dec 2010 22:55:49 +0000 (17:55 -0500)]
Compare sdt probe args as is.

sdt_types.stp:  Don't mask negative probe args

13 years agoFix sdt probe arg qi/si fetching on 386
Stan Cox [Fri, 10 Dec 2010 15:48:20 +0000 (10:48 -0500)]
Fix sdt probe arg qi/si fetching on 386

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Use long for default precision if "N@" is missing.

* sdt_misc.exp (pbtype_flags):  Don't use -g for STAP_SDT_V{2,3}
(V3 asm test): Fix arch detection

* sdt_types.stp: Mask negative arg values.

13 years agoUpdate copyright information in Tapset Reference Manual.
William Cohen [Thu, 9 Dec 2010 15:28:17 +0000 (10:28 -0500)]
Update copyright information in Tapset Reference Manual.

13 years agoEdit tapset documentation comments
William Cohen [Thu, 9 Dec 2010 01:40:24 +0000 (20:40 -0500)]
Edit tapset documentation comments

Made the following changes to the documentation comments:
   - Remove the "General Syntax:" lines.
   - Remove trailing '.' for the summaries.
   - Make parameter information phrases rather than sentences

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Thu, 9 Dec 2010 01:39:48 +0000 (20:39 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
rho@redhat.com [Wed, 8 Dec 2010 23:24:47 +0000 (18:24 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoBug 12099 - resolve script interpreters
rho@redhat.com [Wed, 8 Dec 2010 23:22:35 +0000 (18:22 -0500)]
Bug 12099 - resolve script interpreters

13 years agotestcase for 12099 - test script interpreter resolution
rho@redhat.com [Wed, 8 Dec 2010 23:18:56 +0000 (18:18 -0500)]
testcase for 12099 - test script interpreter resolution

13 years agoEdit the tapset documentation for conversions.stp
William Cohen [Wed, 8 Dec 2010 22:23:08 +0000 (17:23 -0500)]
Edit the tapset documentation for conversions.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.

13 years agoEdit the tapset documentation for conversions-guru.stp
William Cohen [Wed, 8 Dec 2010 22:19:56 +0000 (17:19 -0500)]
Edit the tapset documentation for conversions-guru.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.

13 years agoEdit the tapset documentation for context-unwind.stp
William Cohen [Wed, 8 Dec 2010 22:16:12 +0000 (17:16 -0500)]
Edit the tapset documentation for context-unwind.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.

13 years agoEdit the tapset documentation for context-symbols.stp
William Cohen [Wed, 8 Dec 2010 22:12:14 +0000 (17:12 -0500)]
Edit the tapset documentation for context-symbols.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries and argumentation information.
  - Fix a few typos.

13 years agoEdit the tapset documentation for context.stp
William Cohen [Wed, 8 Dec 2010 22:06:21 +0000 (17:06 -0500)]
Edit the tapset documentation for context.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.
  - Add title and description for cpuid function

13 years agoRemove the "General Syntax:" lines from ansi.stp
William Cohen [Wed, 8 Dec 2010 21:51:43 +0000 (16:51 -0500)]
Remove the "General Syntax:" lines from ansi.stp

13 years agoAdd the queue_stat.stp tapset to the Tapset reference manual.
William Cohen [Wed, 8 Dec 2010 21:42:15 +0000 (16:42 -0500)]
Add the queue_stat.stp tapset to the Tapset reference manual.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
rho@redhat.com [Wed, 8 Dec 2010 19:31:41 +0000 (14:31 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoAdd the *mib.stp tapsets to the SystemTap Tapset reference manual
William Cohen [Wed, 8 Dec 2010 19:00:46 +0000 (14:00 -0500)]
Add the *mib.stp tapsets to the SystemTap Tapset reference manual

Went through the comments in ipmib.stp, linuxmib.stp, and tcpmib.stp to
make them format properly. Then added a chapter in the SystemTap Tapset
reference manual for them.

13 years agotask_backtrace should return addresses separated by spaces.
Mark Wielaard [Wed, 8 Dec 2010 12:03:13 +0000 (13:03 +0100)]
task_backtrace should return addresses separated by spaces.

* tapset/context-unwind.stp (task_backtrace): Call _stp_stack_snprint_tsk
  with _STP_SYM_NONE.

13 years agoAdd stap_staticmarkers.stp to SystemTap tapset reference manual.
William Cohen [Tue, 7 Dec 2010 22:51:54 +0000 (17:51 -0500)]
Add stap_staticmarkers.stp to SystemTap tapset reference manual.

13 years agoIncrease environment limits to allow Tapset Reference manual to build.
William Cohen [Tue, 7 Dec 2010 22:50:24 +0000 (17:50 -0500)]
Increase environment limits to allow Tapset Reference manual to build.

13 years agoAdd the scheduler.stp to the Tapset Reference manual.
William Cohen [Tue, 7 Dec 2010 21:37:28 +0000 (16:37 -0500)]
Add the scheduler.stp to the Tapset Reference manual.

13 years agoAdd the indent.stp to the Tapset reference manual.
William Cohen [Tue, 7 Dec 2010 20:58:13 +0000 (15:58 -0500)]
Add the indent.stp to the Tapset reference manual.

13 years agoMinor edits to ucontext.stp documentation comment.
William Cohen [Tue, 7 Dec 2010 20:38:07 +0000 (15:38 -0500)]
Minor edits to ucontext.stp documentation comment.

13 years agoAdd irq.stp to Tapset Reference manual
William Cohen [Tue, 7 Dec 2010 20:27:20 +0000 (15:27 -0500)]
Add irq.stp to Tapset Reference manual

13 years agoAdd ucontext.stp to the tapset reference manual
William Cohen [Tue, 7 Dec 2010 17:19:05 +0000 (12:19 -0500)]
Add ucontext.stp to the tapset reference manual

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Tue, 7 Dec 2010 17:06:56 +0000 (12:06 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoAdd conversions-guru.stp to tapset manual
William Cohen [Tue, 7 Dec 2010 17:05:08 +0000 (12:05 -0500)]
Add conversions-guru.stp to tapset manual

13 years agoFixed 11794 by replacing returnstr() calls with return_str() when possible.
David Smith [Tue, 7 Dec 2010 16:38:46 +0000 (10:38 -0600)]
Fixed 11794 by replacing returnstr() calls with return_str() when possible.

* tapset/errno.stp (returnstr): Updated documentation comment to note that
  this function should only be used in dwarfless probes.  Renamed
  'returnp' argument to 'format'.
  (return_str): Added documentation comment.
* tapset/aux_syscalls.stp: Replaced returnstr() function calls with
  return_str() function calls.
* tapset/i386/syscalls.stp: Ditto.
* tapset/ia64/syscalls.stp: Ditto.
* tapset/powerpc/syscalls.stp: Ditto.
* tapset/rpc.stp: Ditto.
* tapset/s390/syscalls.stp: Ditto.
* tapset/signal.stp: Ditto.
* tapset/syscalls.stp: Ditto.
* tapset/syscalls2.stp: Ditto.
* tapset/x86_64/syscalls.stp: Ditto.

13 years agoAdd errno.stp to the tapset documentation
William Cohen [Mon, 6 Dec 2010 22:15:32 +0000 (17:15 -0500)]
Add errno.stp to the tapset documentation

13 years agoFix 'retstr' in sunrpc.clnt.shutdown_client.return.
David Smith [Mon, 6 Dec 2010 19:57:48 +0000 (13:57 -0600)]
Fix 'retstr' in sunrpc.clnt.shutdown_client.return.

* tapset/rpc.stp: In newer kernels, rpc_shutdown_client() has been changed
  to a void function.  Handle 'retstr' properly.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
rho@redhat.com [Mon, 6 Dec 2010 15:33:04 +0000 (10:33 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoSupport x86 1 byte and 2 byte registers.
Stan Cox [Fri, 3 Dec 2010 20:53:56 +0000 (15:53 -0500)]
Support x86 1 byte and 2 byte registers.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add all register variants.
(get_register_width): New.
(visit_target_symbol): Use it for register case to extract register part.

* sdt_misc.exp: Add sdt asm test.
* sdt_asm.S: New.
* sdt_asm.stp: New.

13 years agoAudit possible string buffer overruns.
David Smith [Fri, 3 Dec 2010 18:52:41 +0000 (12:52 -0600)]
Audit possible string buffer overruns.

* runtime/transport/procfs.c (_stp_register_ctl_channel_fs): Change
  sprintf() call to snprintf() call.
  (_stp_unregister_ctl_channel_fs): Ditto.
* runtime/transport/ring_buffer.c (_stp_transport_data_fs_init): Ditto.
* runtime/unwind.c (_stp_eh_enc_name): Ditto.
* runtime/io.c: Make sure STP_LOG_BUF_LEN isn't too short.
* runtime/staprun/staprun_funcs.c: Add comments about strcpy/strcat/sprintf
  appropriateness.
  (check_signature): Fix string length calculation.
* runtime/staprun/common.c: Add comments about strcpy/strcat/sprintf
  appropriateness.
* runtime/staprun/modverify.c: Ditto.
* runtime/staprun/relay.c: Ditto.
* runtime/staprun/relay_old.c: Ditto.
* runtime/staprun/staprun_funcs.c: Ditto.

13 years agoRedistribute the Target Variable information
William Cohen [Fri, 3 Dec 2010 16:27:46 +0000 (11:27 -0500)]
Redistribute the Target Variable information

Redistribute the information about target variables in the manual. Also
added index entries for the information and edited the text.

13 years agoFixed possible string buffer overruns in several embedded-C functions.
David Smith [Thu, 2 Dec 2010 20:05:39 +0000 (14:05 -0600)]
Fixed possible string buffer overruns in several embedded-C functions.

* tapset/socket.stp (sock_flags_num2str): Use strlcat() instead of
  strcat() to guard against buffer overruns.  Instead of creating the
  string in a temporary variable and then copying it to THIS->__retvalue,
  just create the string in THIS->__retvalue.
  (msg_flags_num2str): Ditto.
* tapset/inet_sock.stp (daddr_to_string): Use snprintf() instead of
  sprintf() to guard against buffer overruns.
* tapset/signal.stp (sigset_mask_str): Ditto.
* tapset/s390/nd_syscalls.stp (get_32mmap_args): Use strlcat()/snprintf()
  instead of strcat()/sprintf() to guard against buffer overruns.
* tapset/s390/syscalls.stp: Removed unused function get_32mmap_args().
* tapset/aux_syscalls.stp: Minor string-related fixes.
* tapset/string.stp: Ditto.

13 years agoPR 11906: stap-server prints more info about each server acted upon.
Dave Brolley [Wed, 1 Dec 2010 18:51:23 +0000 (13:51 -0500)]
PR 11906: stap-server prints more info about each server acted upon.

13 years agoPR 11906: Include the user running each server in the status output.
Dave Brolley [Wed, 1 Dec 2010 17:06:40 +0000 (12:06 -0500)]
PR 11906: Include the user running each server in the status output.

13 years agoPR 11197: Elaborate on security prophylactic settings for stap-server.
Dave Brolley [Wed, 1 Dec 2010 16:29:49 +0000 (11:29 -0500)]
PR 11197: Elaborate on security prophylactic settings for stap-server.

stap-server.8.in now elaborates on how to achieve the recommended
security settings and points out which ones are the default.

13 years agoFixed BZ624657 by fixing timing issues in the initscript.
David Smith [Tue, 30 Nov 2010 20:18:22 +0000 (14:18 -0600)]
Fixed BZ624657 by fixing timing issues in the initscript.

* initscript/systemtap.in (start_script): Make sure we wait until the pid
  file has been written before trying to use it.
  (stop_script): Check to see if the module has been really unloaded
  before declaring success.

13 years agoPR 10922: Client/Server Testsuite problems when avahi (mDNS) is bkocked by the firewall.
Dave Brolley [Tue, 30 Nov 2010 18:07:15 +0000 (13:07 -0500)]
PR 10922: Client/Server Testsuite problems when avahi (mDNS) is bkocked by the firewall.

The test suite now communicates with the server directly using
--use-serber=$HOSTNAME:PORT when avahi is blocked or not working.

13 years agoPR12141: mention in README the elfutils release that fixes problem
Frank Ch. Eigler [Sun, 28 Nov 2010 00:06:50 +0000 (19:06 -0500)]
PR12141: mention in README the elfutils release that fixes problem

13 years agoAdd configure --disable-sdt-probes
Josh Stone [Tue, 30 Nov 2010 00:16:22 +0000 (16:16 -0800)]
Add configure --disable-sdt-probes

This new option turns off SDT markers in our own binaries.  This doesn't
change the ability to probe SDT in other applications.

* configure.ac: Add --disable-sdt-probes.
* runtime/staprun/configure.ac: Ditto.
* includes/stap-probe.h: Define PROBE[N] depending on ENABLE_SDT_PROBES.
* *.cxx, runtime/staprun/*.[ch]: Use the indirect PROBE macros instead
  of STAP_PROBE, so SDT can be disabled.
* (everything else): Regenerated with autoreconf.
  (The change is bigger due to my newer autotools on F14 -- sorry...)

13 years agoAdapt to old kernels lacking asm/tsc.h
Josh Stone [Mon, 29 Nov 2010 23:36:50 +0000 (15:36 -0800)]
Adapt to old kernels lacking asm/tsc.h

Some old x86_64 kernels do have an export for tsc_khz, but don't need
(or even have) asm/tsc.h to define it.

13 years agoAdd user_{int8,int16,uint16,int32,uint32,int64}.
Stan Cox [Mon, 29 Nov 2010 19:33:14 +0000 (14:33 -0500)]
Add user_{int8,int16,uint16,int32,uint32,int64}.

* sdt.exp (extra_flags): Expand list of tested options.  Use instead
of having a separate c++ section.
(type_pedantics): New.

* sdt_misc.exp (extra_type_flags): Expand list of tested options.
(has_long_long, type_xfail, type_pedantics): New.

* sdt_types.c (NO_LONG_LONG): New.

13 years agoUpdated news regarding uprobes.ko and the compile-server/client.
Dave Brolley [Mon, 29 Nov 2010 17:52:51 +0000 (12:52 -0500)]
Updated news regarding uprobes.ko and the compile-server/client.

13 years agoPR10651 / RHBZ653286: mod_timer vs. del_timer_sync races
Frank Ch. Eigler [Sat, 27 Nov 2010 23:48:52 +0000 (18:48 -0500)]
PR10651 / RHBZ653286: mod_timer vs. del_timer_sync races

It appears possible for del_timer_sync (from outside) and mod_timer
(from within a timer callback) to race.  Defeat this race by ensuring
that the timer callback checks an atomic_t flag before rescheduling
itself with mod_timer.

* runtime/transport/relay_v2.c (transport_state): Turn into an atomic_t.
  Update users.
  (__stp_relay_wakeup_timer): Observe flag.
  (_stp_transport_data_fs_{start,stop}): Update flag before timer manipulations.
* runtime/transport/ring_buffer.c: Ditto for corresponding functions.

13 years agorhbz656699: use %ghost for /var/run/{systemtap,stap-server}
Frank Ch. Eigler [Thu, 25 Nov 2010 17:50:20 +0000 (12:50 -0500)]
rhbz656699: use %ghost for /var/run/{systemtap,stap-server}

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 25 Nov 2010 18:16:22 +0000 (13:16 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agotestsuite: fragment buildid.exp test driver, fixing objdir!=srcdir case
Frank Ch. Eigler [Thu, 25 Nov 2010 17:35:43 +0000 (12:35 -0500)]
testsuite: fragment buildid.exp test driver, fixing objdir!=srcdir case

* testsuite/systemtap.base/buildid.exp: Evict embedded files into ...
* testsuite/systemtap.base/buildid.{c,hex,stp}: ... these new files.

13 years agobuild: don't include a <linux/version.h> in userspace builds
Frank Ch. Eigler [Wed, 24 Nov 2010 19:00:02 +0000 (14:00 -0500)]
build: don't include a <linux/version.h> in userspace builds

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 25 Nov 2010 16:20:46 +0000 (11:20 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:
runtime/staprun/common.c
session.cxx
session.h

13 years agoImproved handling of uprobes.ko by compile-server and client.
Dave Brolley [Thu, 25 Nov 2010 16:11:36 +0000 (11:11 -0500)]
Improved handling of uprobes.ko by compile-server and client.

- Server now returns uprobes.ko to client when required.
- New optional argument to staprun's -u option to specify the location
  of uprobes module.
- Client uses new argument of -u to specify uprobes.ko returned by
  the server.
- staprun still prefers already-loaded uprobes, built-in uprobes and
  kernel-built uprobes over the one returned by the server.
- staprun verifies the signature of the uprobes module for unprivileged
  users.

13 years agoRejigger sdt.h macros for more nit cases.
Roland McGrath [Wed, 24 Nov 2010 19:51:58 +0000 (11:51 -0800)]
Rejigger sdt.h macros for more nit cases.

13 years agoPR12138: Convert the user_int functions to kread
Josh Stone [Wed, 24 Nov 2010 00:13:55 +0000 (16:13 -0800)]
PR12138: Convert the user_int functions to kread

This uses our more-centralized mechanism for reading uncertain memory,
which also has the ability to read 8-byte values on i386 (not atomically).

* tapset/uconversions.stp: New, move the user_* functions here.  The new
  STP_GET_USER[_WARN] standardize all integer accesses through kread.
* tapset/conversions.stp: This is only for kernel functions now.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Include uconversions.
* testsuite/buildok/conversions.stp: Build the user_intNN too.
* testsuite/buildok/conversions-embedded.stp: Ditto.

13 years agoif we say sdt_types is untested, then don't test it...
Josh Stone [Wed, 24 Nov 2010 00:12:31 +0000 (16:12 -0800)]
if we say sdt_types is untested, then don't test it...

13 years agoPR12139: revamp sys/sdt.h macros' argument handling
Roland McGrath [Mon, 22 Nov 2010 23:53:36 +0000 (15:53 -0800)]
PR12139: revamp sys/sdt.h macros' argument handling

* includes/sys/sdt.h: Revamp size and signedness calculations on probe
arguments for C and C++.

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