]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoPR9993: tracepoint toleration for undeclared types in trace/*.h headers
Frank Ch. Eigler [Tue, 24 Mar 2009 16:53:17 +0000 (12:53 -0400)]
PR9993: tracepoint toleration for undeclared types in trace/*.h headers

* tapsets.cxx (tracepoint_extra_headers): New function to return
  needed header file names.
  (emit_module_decls): Emit them.
* buildrun.cxx (make_tracequery): Emit them.
* testsuite/systemtap.base/tracepoints.exp: Rewrite to exercise
  building each tracepoint.

15 years agoKeep static probe parameters visible while inlining.
Stan Cox [Tue, 24 Mar 2009 16:40:05 +0000 (12:40 -0400)]
Keep static probe parameters visible while inlining.

* includes/sys/sdt.h (STAP_PROBEN):  Revive the STAP_LABEL macro to
prevent inlining to keep probe parameters visible.  Use +rm
constraints.
* tapsets.cxx (build): Use .probes section for all uses of static
probes.

15 years agoMove man pages from man5 to man3 (3stap).
Will Cohen [Tue, 24 Mar 2009 16:01:52 +0000 (12:01 -0400)]
Move man pages from man5 to man3 (3stap).

15 years agoMove tapset documentation manpages from man3stap to man3.
William Cohen [Tue, 24 Mar 2009 15:16:38 +0000 (11:16 -0400)]
Move tapset documentation manpages from man3stap to man3.

15 years agoAdd missing escape in kernel-doc create_sparameterlist() matching.
William Cohen [Mon, 23 Mar 2009 15:16:13 +0000 (11:16 -0400)]
Add missing escape in kernel-doc create_sparameterlist() matching.

15 years agoMake .probes 32 bit aware and simplify label handling.
Stan Cox [Mon, 23 Mar 2009 14:10:03 +0000 (10:10 -0400)]
Make .probes 32 bit aware and simplify label handling.

* includes/sys/sdt.h (STAP_PROBE_DATA_): Use gas local labels which
avoids a mysql problem when a function containing a probe is inlined.
Make the data placement 32 bit aware.

15 years agoPR9974: adapt to utrace_connected_engine -> utrace_engine
Frank Ch. Eigler [Sun, 22 Mar 2009 15:20:23 +0000 (11:20 -0400)]
PR9974: adapt to utrace_connected_engine -> utrace_engine

Adjusted all headers that #include <linux/utrace.h> to follow with:

/* PR9974: Adapt to struct renaming. */

15 years agosdt.exp: save intermediate sdt.h-client executables for analysis
Frank Ch. Eigler [Sat, 21 Mar 2009 12:39:57 +0000 (08:39 -0400)]
sdt.exp: save intermediate sdt.h-client executables for analysis

* testsuite/lib/stap_run2.exp (stap_run3): Put supplied stap
  extra arguments after the .stp script name, not before, so
  that @1/such arguments can be substituted within.

15 years agoUpdate a few new AUTHORS
Josh Stone [Sat, 21 Mar 2009 00:51:47 +0000 (17:51 -0700)]
Update a few new AUTHORS

15 years agoAdd a tracepoint NEWS blurb
Josh Stone [Sat, 21 Mar 2009 00:49:32 +0000 (17:49 -0700)]
Add a tracepoint NEWS blurb

15 years agoDocument @cast module search paths
Josh Stone [Sat, 21 Mar 2009 00:12:15 +0000 (17:12 -0700)]
Document @cast module search paths

15 years agoCache the tracepoint query results
Josh Stone [Fri, 20 Mar 2009 23:35:06 +0000 (16:35 -0700)]
Cache the tracepoint query results

To use tracepoints, we build a "tracequery" module that compiles
debuginfo for all available tracepoints in the user's kernel.  That's a
bit of a cumbersome step to do during pass-2 though.  This change adds
tracequery caching so we only need to compile it once.

15 years agosupport tracepoint extraction for kernel build trees built with O=/path
Frank Ch. Eigler [Fri, 20 Mar 2009 23:26:58 +0000 (19:26 -0400)]
support tracepoint extraction for kernel build trees built with O=/path

* buildrun.cxx (make_tracequery): Also search source/include/trace/*.h.

15 years agofix build regression w/o -t
Frank Ch. Eigler [Fri, 20 Mar 2009 23:13:45 +0000 (19:13 -0400)]
fix build regression w/o -t

* translate.cxx (emit_common_header): Always emit atomic_t skipped_* counters.

15 years agoDefine static user probe point using asm instead of c.
Stan Cox [Fri, 20 Mar 2009 20:36:25 +0000 (16:36 -0400)]
Define static user probe point using asm instead of c.

15 years agoDefine static user probe point using asm instead of c.
Stan Cox [Fri, 20 Mar 2009 20:30:19 +0000 (16:30 -0400)]
Define static user probe point using asm instead of c.

* includes/sys/sdt.h (STAP_PROBE_DATA): New.  Define the probe point
using asm instead of c.
(STAP_PROBEN): Use it.
* testsuite/systemtap.base/sdt.exp: Continue if a compile fails.
* testsuite/systemtap.base/static_uprobes.exp: Don't test setting
probe without .probes section.

15 years agoPR9967: don't count -DINTERRUPTIBLE=1 reentrancy against MAXSKIPPED
Frank Ch. Eigler [Fri, 20 Mar 2009 20:30:02 +0000 (16:30 -0400)]
PR9967: don't count -DINTERRUPTIBLE=1 reentrancy against MAXSKIPPED

* tapsets.cxx (common_probe_entryfn_prologue): Become conditional on
  !INTERRUPTIBLE.
* translate.cxx (emit_module_exit): Still print skipped_count_reentrant
  with -t, even if skipped_count was zero.

15 years agotweak NEWS blurb wording on --skip-badvars
Frank Ch. Eigler [Fri, 20 Mar 2009 19:50:00 +0000 (15:50 -0400)]
tweak NEWS blurb wording on --skip-badvars

15 years agoMerge branch 'master' of ssh://hiramatu@sources.redhat.com/git/systemtap
Masami Hiramatsu [Fri, 20 Mar 2009 17:43:45 +0000 (13:43 -0400)]
Merge branch 'master' of ssh://hiramatu@sources.redhat.com/git/systemtap

15 years agoPR9821: staprun supports subset of strftime.
Masami Hiramatsu [Fri, 20 Mar 2009 17:38:29 +0000 (13:38 -0400)]
PR9821: staprun supports subset of strftime.

Add strftime subset format support for output file name to systemtap.
This format will be evaluated when opening a new output file.

15 years agoPR6930: initscript: support on-file flight recorder
Masami Hiramatsu [Fri, 20 Mar 2009 17:33:34 +0000 (13:33 -0400)]
PR6930: initscript: support on-file flight recorder

Modify systemtap initscript to support on-file flight recoder
options.

15 years agoPR6930: stap: supports on-file flight recorder options
Masami Hiramatsu [Fri, 20 Mar 2009 17:31:18 +0000 (13:31 -0400)]
PR6930: stap: supports on-file flight recorder options

Add on-file flight recorder options (the combination of -F and -o,
and -S option) to stap command, and change manpages and NEWS.
 - Both of -F and -o is specified, stap passes -D option to staprun.
 - stap just passes -S option to staprun.

15 years agoPR6930: stapio: support file switching
Masami Hiramatsu [Fri, 20 Mar 2009 16:11:30 +0000 (12:11 -0400)]
PR6930: stapio: support file switching

Add file-switching option(-S size[,N]) to stapio. This option has two
arguments, 'size' and 'N', and requires -o option.

- When the size of output file exceeds specified 'size'MB, staprun switches
 output file to the next file. For this purpose, all output file has a serial
 number as a suffix only when user specifies this option.

- Using this option in bulk mode, the output file name will be
 'FILE_cpuX.SERIAL'.

- When the number of files exceeds specified N, staprun removes the oldest
 file. This argument can be omitted.

15 years agoremoved authorblock from tapset reference guide; added ip.stp to template
Frank Ch. Eigler [Fri, 20 Mar 2009 15:41:02 +0000 (11:41 -0400)]
removed authorblock from tapset reference guide; added ip.stp to template

15 years agoAdded functions to grab IP source and destination from a socket, and
Breno Leitao [Fri, 20 Mar 2009 15:40:04 +0000 (11:40 -0400)]
Added functions to grab IP source and destination from a socket, and
functions to grab TCP source and destination port from a socket.

Also, used this function inside some TCP probe functions, as recvmsg,
to provide a richer set of fields.

15 years agoPR6930: stapio: run in background as a daemon
Masami Hiramatsu [Fri, 20 Mar 2009 15:59:06 +0000 (11:59 -0400)]
PR6930: stapio: run in background as a daemon

Add '-D'(daemon mode) option to staprun/stapio for daemon mode.
In this mode, stapio shows just its pid and detachs from console.
Since it has no stdio, this mode requires -o option. stapio will
exit when it receives SIGTERM or detects some error.

15 years agoPR6930: staprun: supports error message to syslog
Masami Hiramatsu [Fri, 20 Mar 2009 15:54:15 +0000 (11:54 -0400)]
PR6930: staprun: supports error message to syslog

Add an interface (eprintf) to output error messages to syslogd,
because staprun has no stderr after detaching from console.

15 years agoRemoved #if defined. Format '%llx' works fine for all Arch
Mahesh J Salgaonkar [Fri, 20 Mar 2009 05:34:47 +0000 (11:04 +0530)]
Removed #if defined. Format '%llx' works fine for all Arch

15 years agoPR9940: avoid duplicated calling of uprobes in shared libraries
Wenji Huang [Wed, 18 Mar 2009 15:17:25 +0000 (11:17 -0400)]
PR9940: avoid duplicated calling of uprobes in shared libraries

Add map_p argument to __stp_call_vm_callbacks_with_vma to well
tune the vma callback.

Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
15 years agoPR9960: support tracepoint struct/union value arg
Josh Stone [Thu, 19 Mar 2009 23:23:02 +0000 (16:23 -0700)]
PR9960: support tracepoint struct/union value arg

If a tracepoint arg is a structure or union that is passed by value,
then this takes the address of the parameter so it can be used like a
pointer in the rest of our code.

15 years agoAllow @cast on "struct " and "union " (by ignoring them).
Mark Wielaard [Thu, 19 Mar 2009 21:59:57 +0000 (22:59 +0100)]
Allow @cast on "struct " and "union " (by ignoring them).

* parse.cxx (parser::parse_symbol): Strip off "struct " or "union "
  from cop->type.

15 years agoThrow type into semantic_error message of @cast when not found.
Mark Wielaard [Thu, 19 Mar 2009 21:22:25 +0000 (22:22 +0100)]
Throw type into semantic_error message of @cast when not found.

* tapsets.cxx (dwarf_cast_expanding_visitor::visit_cast_op):
  Add type to msg added to semantic_error when thrown.

15 years agoDisable kprobe blacklist in guru mode.
Lubomir Rintel [Thu, 19 Mar 2009 17:02:19 +0000 (13:02 -0400)]
Disable kprobe blacklist in guru mode.

15 years agoBZ490802, remove bumpspec-unfriendly %{release} macro logic
Frank Ch. Eigler [Thu, 19 Mar 2009 16:31:54 +0000 (12:31 -0400)]
BZ490802, remove bumpspec-unfriendly %{release} macro logic

15 years agorename process().itrace -> process().insn introduce process().insn.block
Frank Ch. Eigler [Thu, 19 Mar 2009 15:32:48 +0000 (11:32 -0400)]
rename process().itrace -> process().insn introduce process().insn.block

15 years agostart of rhel5 compatibility for itrace
Frank Ch. Eigler [Thu, 19 Mar 2009 15:28:04 +0000 (11:28 -0400)]
start of rhel5 compatibility for itrace

15 years agoadd runtime/autoconf magic for itrace on pre-find_task_by_vpid kernels
Frank Ch. Eigler [Thu, 19 Mar 2009 15:27:19 +0000 (11:27 -0400)]
add runtime/autoconf magic for itrace on pre-find_task_by_vpid kernels

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Thu, 19 Mar 2009 14:42:02 +0000 (10:42 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoOnly include man3stap pages if documentation built.
William Cohen [Thu, 19 Mar 2009 14:38:33 +0000 (10:38 -0400)]
Only include man3stap pages if documentation built.

15 years agoPR9959: hide tracepoint arguments of unknown type
Josh Stone [Thu, 19 Mar 2009 03:05:56 +0000 (20:05 -0700)]
PR9959: hide tracepoint arguments of unknown type

We always have to know the type name of tracepoint arguments, so we can
declare the right function callback, but we can suppress access to those
types which we don't (yet) know how to read.

15 years agoPR9959: improve tracepoint arg type-naming
Josh Stone [Thu, 19 Mar 2009 02:04:54 +0000 (19:04 -0700)]
PR9959: improve tracepoint arg type-naming

dwarf_type_name now works with more argument types.  There were
three cases that I needed to improve:

- For "const struct foo*", the debuginfo has a const-DIE named "foo"
  chained to a struct-DIE named "foo", so we can't assume that seeing a
  name means we're down to the base type.  The recursion now decends
  until it explicitly sees a base_type, typedef, struct, or union.

- For "void*", the debuginfo has a pointer-DIE without any DW_AT_type
  after.  Now I'm just catching that failed lookup and writing in
  "void".

- For "va_list", the debuginfo actually resolves to an internal type
  "struct __va_list_tag*", but that struct has no declaration at the
  source level.  I'm just hacking that exact case to say "va_list"
  instead, but it would be nice to find something cleaner...

We'll probably still have problems if any tracepoint uses a function-
pointer argument, but so far I've only seen that as a "void*", which we
now handle ok.

15 years agoSupport tracepoints with no arguments
Josh Stone [Thu, 19 Mar 2009 01:51:17 +0000 (18:51 -0700)]
Support tracepoints with no arguments

LTTng has a few tracepoints without any arguments, which caused our
compile to fail, claiming that our entry function was not a declaration.
This just adds an explicit (void) argument list for that case.

15 years agoAdjust systemtap.spec to include the relocated man pages (PR980).
William Cohen [Wed, 18 Mar 2009 20:56:07 +0000 (16:56 -0400)]
Adjust systemtap.spec to include the relocated man pages (PR980).

15 years agoPut man pages from tapset in 3stap (PR9870).
William Cohen [Wed, 18 Mar 2009 20:19:33 +0000 (16:19 -0400)]
Put man pages from tapset in 3stap (PR9870).

15 years agoMake manpager.sh executable.
William Cohen [Wed, 18 Mar 2009 18:47:36 +0000 (14:47 -0400)]
Make manpager.sh executable.

15 years agoFix for spinlock bad magic error with itrace probe point
Maynard Johnson [Wed, 18 Mar 2009 17:59:33 +0000 (12:59 -0500)]
Fix for spinlock bad magic error with itrace probe point

15 years agoDon't mutex_unlock in __stp_tf_get_vma_map_entry_internal.
Mark Wielaard [Wed, 18 Mar 2009 10:42:53 +0000 (11:42 +0100)]
Don't mutex_unlock in __stp_tf_get_vma_map_entry_internal.

All callers of __stp_tf_get_vma_map_entry_internal lock and unlock
the mutex correctly themselves in all cases. This unlock would trigger
a double unlock.

* runtime/task_finder_vma.c (__stp_tf_get_vma_map_entry_internal):
  Don't mutex_unlock(&__stp_tf_vma_mutex).

15 years agominor edit
ddomingo [Wed, 18 Mar 2009 05:45:23 +0000 (15:45 +1000)]
minor edit

15 years agominor edits
ddomingo [Wed, 18 Mar 2009 05:29:19 +0000 (15:29 +1000)]
minor edits

15 years agofinal copy, for review
ddomingo [Wed, 18 Mar 2009 05:29:03 +0000 (15:29 +1000)]
final copy, for review

15 years agoReplace systemtap.samples/ioblocktest.stp with ioblktime.stp.
William Cohen [Tue, 17 Mar 2009 20:45:30 +0000 (16:45 -0400)]
Replace systemtap.samples/ioblocktest.stp with ioblktime.stp.

15 years agoImprove static_uprobes.exp
Stan Cox [Tue, 17 Mar 2009 15:38:08 +0000 (11:38 -0400)]
Improve static_uprobes.exp

* systemtap.base/static_uprobes.exp: Compile with -x c++.  Test .probes absence.

15 years agoGet the canonical path of the main file for comparison at runtime.
Mark Wielaard [Tue, 17 Mar 2009 12:50:33 +0000 (13:50 +0100)]
Get the canonical path of the main file for comparison at runtime.

When given directly by the user through -d or in case of the kernel
name and path might differ. path should be used for matching.

* runtime/sym.h (_stp_module): Add path field.
* runtime/task_finder.c (__stp_tf_vm_cb): Use module path to compare vm_path.
* translate.cxx (dump_unwindsyms): Output canonical path.

15 years agoRemove trailing 'g' from scsi.stp file.
Mark Wielaard [Tue, 17 Mar 2009 11:50:43 +0000 (12:50 +0100)]
Remove trailing 'g' from scsi.stp file.

* tapset/scsi.stp: Remove 'g' at end of file.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
ddomingo [Tue, 17 Mar 2009 05:31:54 +0000 (15:31 +1000)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agominor edits
ddomingo [Tue, 17 Mar 2009 05:28:43 +0000 (15:28 +1000)]
minor edits

15 years agoworking copy, still existing issues with Description headers, will work on it tom
ddomingo [Tue, 17 Mar 2009 05:28:38 +0000 (15:28 +1000)]
working copy, still existing issues with Description headers, will work on it tom

15 years agominor edits
ddomingo [Tue, 17 Mar 2009 05:14:30 +0000 (15:14 +1000)]
minor edits

15 years agominor edits
ddomingo [Tue, 17 Mar 2009 05:13:23 +0000 (15:13 +1000)]
minor edits

15 years agoworking copy
ddomingo [Tue, 17 Mar 2009 04:43:19 +0000 (14:43 +1000)]
working copy

15 years agofurther cleanup for formatting
ddomingo [Tue, 17 Mar 2009 03:56:21 +0000 (13:56 +1000)]
further cleanup for formatting

15 years agofurther cleanup for formatting
ddomingo [Tue, 17 Mar 2009 03:48:08 +0000 (13:48 +1000)]
further cleanup for formatting

15 years agominor edits
ddomingo [Tue, 17 Mar 2009 03:42:34 +0000 (13:42 +1000)]
minor edits

15 years agominor edits
ddomingo [Tue, 17 Mar 2009 03:42:14 +0000 (13:42 +1000)]
minor edits

15 years agoalmost done, output clean, just a few more improvements
ddomingo [Tue, 17 Mar 2009 03:41:40 +0000 (13:41 +1000)]
almost done, output clean, just a few more improvements

15 years agoAdd pid-based data lookup function.
Wenji Huang [Mon, 16 Mar 2009 22:21:41 +0000 (18:21 -0400)]
Add pid-based data lookup function.

Two functions pid2task and pid2execname.

15 years agoPR9951: Prevent GCC warnings in deref()
Josh Stone [Tue, 17 Mar 2009 01:36:44 +0000 (18:36 -0700)]
PR9951: Prevent GCC warnings in deref()

In some configurations, GCC was warning about a possible use of _v in
the deref macros.  I could not reproduce the error, but the only case
where _v is not written is if lookup_bad_addr rejects the address, in
which case we will hit DEREF_FAULT and _v won't be used.

Now we're priming _v=0 anyway, so GCC has no right to complain...

15 years agoFix regression in tracepoint unregistration
Josh Stone [Tue, 17 Mar 2009 01:13:07 +0000 (18:13 -0700)]
Fix regression in tracepoint unregistration

Commit 96b030fe reorganized the tracepoint registration calls by
creating generic wrappers that return int.  However, the older
tracepoint implementation (as found in RHEL5.3) returned void for unreg,
so this was failing pass-4.

Since we can't handle unregistration failures anyway, this change just
makes the generic unregister function return void instead.  As noted in
the newly-added comment, it should be safe for us to ignore unreg
failures.

15 years agoEdit signal.stp documentation comments.
William Cohen [Mon, 16 Mar 2009 15:27:59 +0000 (11:27 -0400)]
Edit signal.stp documentation comments.

15 years agoAdd workaround for dwfl_module_build_id bug with elfutils < 0.140.
Mark Wielaard [Mon, 16 Mar 2009 13:19:20 +0000 (14:19 +0100)]
Add workaround for dwfl_module_build_id bug with elfutils < 0.140.

* translate.cxx (dump_unwindsyms): Check elfutils version and whether
  build_id_vaddr < base, and if so add main_bias to address.

15 years agoalmost done, script generates man pages of stapprobes based on what we add to Tapset_...
ddomingo [Mon, 16 Mar 2009 08:32:11 +0000 (18:32 +1000)]
almost done, script generates man pages of stapprobes based on what we add to Tapset_Reference_Guide

15 years agominor edits to ensure uniformity in manpage generator
ddomingo [Mon, 16 Mar 2009 06:01:28 +0000 (16:01 +1000)]
minor edits to ensure uniformity in manpage generator

15 years agominor edit
ddomingo [Mon, 16 Mar 2009 05:32:54 +0000 (15:32 +1000)]
minor edit

15 years agominor edits
ddomingo [Mon, 16 Mar 2009 04:23:14 +0000 (14:23 +1000)]
minor edits

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:52 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:52 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:52 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:51 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:51 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:51 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:51 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:51 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:51 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:51 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:50 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:50 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agofixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdesc...
ddomingo [Mon, 16 Mar 2009 04:21:50 +0000 (14:21 +1000)]
fixed format of non-grabbable comments (for Tapset Reference Guide), added tapsetdescription for man page generator (in development)

15 years agoadded description for memory tapset
ddomingo [Mon, 16 Mar 2009 04:02:58 +0000 (14:02 +1000)]
added description for memory tapset

15 years agoMove vma module tracking from pr6866 branch to master.
Mark Wielaard [Sun, 15 Mar 2009 14:29:01 +0000 (15:29 +0100)]
Move vma module tracking from pr6866 branch to master.

* tapsets.cxx (utrace_derived_probe_group::emit_module_decls):
  Always emit vm callback probe for __stp_tf_vm_cb.
* runtime/task_finder.c (__stp_tf_vm_cb): Always expose, move _stp_dbug
  statements under ifdef DEBUG_TASK_FINDER_VMA. Find  and record
  corresponding module when vm_path not NULL.
* runtime/task_finder_vma.c (struct __stp_tf_vma_entry): Add _stp_module.
  (stap_add_vma_map_info): Add _stp_module argument and assign.
  (__stp_tf_get_vma_entry_addr): New static function to get
  the __stp_tf_vma_entry given an address.

15 years agoFixups to allow Tapset_Reference_guide documentation to build.
William Cohen [Sat, 14 Mar 2009 12:46:52 +0000 (08:46 -0400)]
Fixups to allow Tapset_Reference_guide documentation to build.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Sat, 14 Mar 2009 03:13:06 +0000 (23:13 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoAdd missing </para>.
William Cohen [Sat, 14 Mar 2009 03:12:19 +0000 (23:12 -0400)]
Add missing </para>.

15 years agoMove lookup_bad_addr call in STAPCONF_PROBE_KERNEL
Josh Stone [Fri, 13 Mar 2009 23:22:04 +0000 (16:22 -0700)]
Move lookup_bad_addr call in STAPCONF_PROBE_KERNEL

With most of the implementations, kread/kwrite call deref/store_deref,
and so it makes sense to have lookup_bad_addr in the latter as an
underlying address check.

However, in the STAPCONF_PROBE_KERNEL case that uses probe_kernel_read
and probe_kernel_write, the roles are reversed, so lookup_bad_addr needs
to be in kread/kwrite.

Also note that __deref_bad and __store_deref_bad should only be used in
cases that can be determined at compile time.  These turn into invalid
symbols which prevent the module from loading.  (They might be better
replaced with compile-time assertions.)

15 years agoPR9947: move runtime cleanup out of the work queue
Josh Stone [Fri, 13 Mar 2009 00:12:38 +0000 (17:12 -0700)]
PR9947: move runtime cleanup out of the work queue

The kernel lockdep checking found a possible deadlock if a forced rmmod
tried to destroy _stp_work_queue at the same time that the work queue
was unregistering tracepoints.  An unlikely scenario, but still
possible.

Now the work queue will just issue a STP_REQUEST_EXIT down to usermode,
and usermode will echo back an STP_EXIT that triggers the actual probe
cleanup.  This way the unregistrations are happening in exactly the same
context as the registrations were.

15 years agoAdd -ansi -pedantic pair to sdt test.
Mark Wielaard [Fri, 13 Mar 2009 13:54:26 +0000 (14:54 +0100)]
Add -ansi -pedantic pair to sdt test.

* testsuite/systemtap.base/sdt.exp: Add additional_flags -ansi together
  with -pedantic.

15 years agoAdd -O2 and -O3 as extra test flags to sdt.
Mark Wielaard [Fri, 13 Mar 2009 13:49:55 +0000 (14:49 +0100)]
Add -O2 and -O3 as extra test flags to sdt.

* testsuite/systemtap.base/sdt.exp: Add -O2, -O3.

15 years agoIntroduce stap_run3 for distinct test names.
Mark Wielaard [Fri, 13 Mar 2009 13:44:54 +0000 (14:44 +0100)]
Introduce stap_run3 for distinct test names.

* testsuite/lib/stap_run2.exp: Add stap_run3, called from stap_run2.
* testsuite/systemtap.base/sdt.exp: Use stap_run3, for distinct test names.

15 years agoSimplify tracepoint registrations
Josh Stone [Thu, 12 Mar 2009 17:11:59 +0000 (10:11 -0700)]
Simplify tracepoint registrations

Instead of registering tracepoints with the deeply-nested if-tree, which
was cluttering the module_init/exit, this now emits normalized reg/unreg
functions for each tracepoint probes.  Now the module_init/exit can be a
simple loop like all of the other probe types.

15 years agoAdd test to compile and run all tracepoints
Josh Stone [Thu, 12 Mar 2009 03:30:58 +0000 (20:30 -0700)]
Add test to compile and run all tracepoints

This checks that kernel.trace("*") will compile, with all context
variables accessed as well.  For kernels without tracepoints, it will
just hit a "begin" and quit.

This doesn't ensure that kernel.trace("*") will always find something
when it should, though...

15 years agoFix @cast module splitting
Josh Stone [Thu, 12 Mar 2009 03:07:22 +0000 (20:07 -0700)]
Fix @cast module splitting

The new semok testcase exposed that the module splitting wasn't properly
setting substr boundaries.  Instead of passing the end position, it's
supposed to pass the number of characters (end - begin).  Oops.

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