]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoAdd nd_syscalls NEWS
Josh Stone [Thu, 11 Jun 2009 00:40:19 +0000 (17:40 -0700)]
Add nd_syscalls NEWS

15 years agoReformat the module signing NEWS
Josh Stone [Thu, 11 Jun 2009 00:32:28 +0000 (17:32 -0700)]
Reformat the module signing NEWS

15 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Josh Stone [Wed, 10 Jun 2009 23:10:38 +0000 (16:10 -0700)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

15 years agoPR10260: Clean up all resources after init errors
Josh Stone [Wed, 10 Jun 2009 22:50:04 +0000 (15:50 -0700)]
PR10260: Clean up all resources after init errors

When anything in systemtap_module_init fails, and we return non-zero,
then the module load is aborted.  The normal module unload path
(systemtap_module_exit) is not even attempted, so we need to make sure
that all partially-allocated resources are returned.

Our timer callbacks for the gettimeofday subsystem are a classic example
of this error.  If we don't unregister the timers before aborting init,
they will later be called and cause a kernel fault.

We also were neglecting to free the percpu context.  A memory leak is
less harmful, but that's fixed now too.

15 years agogcc 3.4.6 compatibility: s/{true,false}/{1,0} in runtime/unwind.c
Frank Ch. Eigler [Wed, 10 Jun 2009 20:41:51 +0000 (16:41 -0400)]
gcc 3.4.6 compatibility: s/{true,false}/{1,0} in runtime/unwind.c

15 years agoFix condition propagation across aliases
Josh Stone [Wed, 10 Jun 2009 02:58:15 +0000 (19:58 -0700)]
Fix condition propagation across aliases

When an instance of an alias has a condition, that condition gets
propagated to each of the locations that the alias defines.  However,
the copy of the location list was not a deep copy, and so all other
instances of the alias would also incorrectly receive the condition.

This patch makes the location list copy a little deeper, and adds a
test case which demonstrates the issue.

15 years agobuild compatibility fix for gcc 3.4
Frank Ch. Eigler [Wed, 10 Jun 2009 01:41:40 +0000 (21:41 -0400)]
build compatibility fix for gcc 3.4

* translate.cxx (emit_symbol_data): Use ~0 instead of -1 for big unsigned constant

15 years agoAdd bounds-checking to sdt $argN
Josh Stone [Wed, 10 Jun 2009 00:04:40 +0000 (17:04 -0700)]
Add bounds-checking to sdt $argN

15 years agoRemove probe_table's unused location member
Josh Stone [Tue, 9 Jun 2009 23:47:17 +0000 (16:47 -0700)]
Remove probe_table's unused location member

15 years agoRemove sdt_var_expanding_visitor's now-unused dw
Josh Stone [Tue, 9 Jun 2009 23:41:30 +0000 (16:41 -0700)]
Remove sdt_var_expanding_visitor's now-unused dw

15 years agoRemove the spurious sdt @cast expansion
Josh Stone [Tue, 9 Jun 2009 23:37:14 +0000 (16:37 -0700)]
Remove the spurious sdt @cast expansion

The result of sdt's private @cast expansion was not being used, and it's
not really needed anyway.  The global cast visitor is registered to run
as a post-processing step on ALL functions and probes, and so it will
pick up and expand sdt's casts too.

15 years agoSimplify process.mark parameter parsing
Josh Stone [Tue, 9 Jun 2009 23:34:38 +0000 (16:34 -0700)]
Simplify process.mark parameter parsing

This just makes it so the parameters only need to be checked and pulled
out once.

15 years agodummy empty change
Frank Ch. Eigler [Tue, 9 Jun 2009 21:39:37 +0000 (17:39 -0400)]
dummy empty change

15 years ago* tapsets.cxx (sdt_var_expanding_visitor::process_name): New.
Stan Cox [Tue, 9 Jun 2009 21:05:53 +0000 (17:05 -0400)]
* tapsets.cxx (sdt_var_expanding_visitor::process_name): New.
(sdt_var_expanding_visitor::visit_target_symbol): Have @cast use
types from a dtrace built object instead of a dtrace supplied header.
(dwarf_builder::build): Use it.

15 years agoFix uninitialized shdr in probe_table
Josh Stone [Tue, 9 Jun 2009 15:54:59 +0000 (08:54 -0700)]
Fix uninitialized shdr in probe_table

(redo commit 3d022fa9c6bdbca383dfc639d08d65287c708f56)

* tapsets.cxx (dwarf_builder::probe_table::probe_table): gcc 4.4
complains that shdr may be used uninitialized.  I added returns to
ensure that it's ok, but gcc still complains.  Set the thing to NULL
as well to silence the beast.

15 years ago* tapsets.cxx (probe_table): Make mark_name and sess refs.
Stan Cox [Tue, 9 Jun 2009 01:57:44 +0000 (21:57 -0400)]
* tapsets.cxx (probe_table): Make mark_name and sess refs.
(probe_table::get_next_probe): Dissect using struct probe_table.
(sdt_var_expanding_visitor): Use lex_cast.
(dwarf_builder::build): Copy probe and location for TOK_MARK cases.
Call derive_probes for kprobe and utrace cases.

15 years agoRemove dwflpp::default_name
Josh Stone [Mon, 8 Jun 2009 23:37:00 +0000 (16:37 -0700)]
Remove dwflpp::default_name

It was just a basic NULL check, but creating its string temporaries was
causing a fair slowdown.  Removing this function and adjusting the
callers shaves ~5% off the syscall.* elaboration time.

15 years agoLet query_module abort early for simple matches
Josh Stone [Mon, 8 Jun 2009 22:36:42 +0000 (15:36 -0700)]
Let query_module abort early for simple matches

query_module was already returning DW_CB_ABORT when a simple match was
found, but dwflpp::iterate_over_modules was ignoring that and instead
forcing the module loop to restart.  The only way out of the loop was
with the pending_interrupts flag, which is only for signalled
interrupts.

Now iterate_over_modules will only attempt the dwfl_getmodules loop
once, since that loop will only abort if the CB returns DW_CB_ABORT.
Then query_module is also modified to return ABORT if pending_interrupts
is flagged.

My trusty test, stap -l syscall.*, is nearly 2x faster with this change.
Empirically, I found that the kernel object is always the first "module"
returned, so the syscall probepoints always gets to short-circuit the
loop right away.

15 years agottyspy: struct pid->number[0]->nr arrived with 2.6.24 not later
Frank Ch. Eigler [Sat, 6 Jun 2009 16:41:35 +0000 (12:41 -0400)]
ttyspy: struct pid->number[0]->nr arrived with 2.6.24 not later

15 years agottyspy.stp: new sample script
Frank Ch. Eigler [Sat, 6 Jun 2009 16:29:51 +0000 (12:29 -0400)]
ttyspy.stp: new sample script

15 years agoPR10209: extend configury for --disable-translator
Elliott Baron [Fri, 5 Jun 2009 15:40:34 +0000 (11:40 -0400)]
PR10209: extend configury for --disable-translator

* configure.ac: Added --disable-translator feature, creates AM_CONDITIONAL BUILD_TRANSLATOR.
* Makefile.am: Only build runtime components (staprun, stapio) if BUILD_TRANSLATOR == FALSE.
* configure: Regenerated.
* Makefile.in: Likewise.
* aclocal.m4: Likewise.
* config.in: Likewise.
* doc/Makefile.in: Likewise.
* doc/SystemTap_Tapset_Reference/Makefile.in: Likewise.
* grapher/Makefile.in: Likewise.

15 years agoFix uninitialized shdr in probe_table
Josh Stone [Thu, 4 Jun 2009 01:51:30 +0000 (18:51 -0700)]
Fix uninitialized shdr in probe_table

* tapsets.cxx (dwarf_builder::probe_table::probe_table): gcc 4.4
complains that shdr may be used uninitialized.  I added returns to
ensure that it's ok, but gcc still complains.  Set the thing to NULL
as well to silence the beast.

15 years ago* tapsets.cxx (dwarf_builder::probe_table): New. Derived from
Stan Cox [Wed, 3 Jun 2009 20:10:04 +0000 (16:10 -0400)]
* tapsets.cxx (dwarf_builder::probe_table): New.  Derived from
dwarf_builder::build to handle the .probes section
(sdt_var_expanding_visitor): New.  Expand static probe $argN.
(dwarf_builder::build): Use probe_table.  Add kprobe and utrace probe types.

15 years agoDetect kretprobe trampoline and use fallback unwinder.
Mark Wielaard [Wed, 3 Jun 2009 13:36:03 +0000 (15:36 +0200)]
Detect kretprobe trampoline and use fallback unwinder.

* runtime/sym.h (_stp_kretprobe_trampoline): Document.
* translate.cxx (unwindsym_dump_context): Add stp_kretprobe_trampoline_addr.
  (dump_unwindsyms): Detect kretprobe_trampoline_holder symbol address.
  (emit_symbol_data): Initialize and emit _stp_kretprobe_trampoline.
* runtime/transport/symbols.c (_stp_do_relocation): Detect kernel load
  address and adjust _stp_kretprobe_trampoline.
* runtime/stack-i386.c (__stp_stack_print): Always use fallback unwinder
  when hitting kretprobe_trampoline_holder.
* runtime/stack-x86_64.c (__stp_stack_print): Likewise.

15 years agoAdd $arch/nd_syscalls.stp
Josh Stone [Wed, 3 Jun 2009 01:59:53 +0000 (18:59 -0700)]
Add $arch/nd_syscalls.stp

These are all the dwarfless analogs to $arch/syscalls.stp.
(Only i686 and x86_64 have been tested...)

15 years agoClean up the formatting of $arch/syscalls.stp
Josh Stone [Tue, 2 Jun 2009 23:59:59 +0000 (16:59 -0700)]
Clean up the formatting of $arch/syscalls.stp

15 years agoComplete a few TODO probe points in nd_syscalls2
Josh Stone [Tue, 2 Jun 2009 23:33:05 +0000 (16:33 -0700)]
Complete a few TODO probe points in nd_syscalls2

This adds renameat, unlinkat, unshare, and compat_sys_semctl.

15 years agoFixed cut-and-paste error.
David Smith [Tue, 2 Jun 2009 16:21:24 +0000 (11:21 -0500)]
Fixed cut-and-paste error.
* runtime/task_finder.c (__stp_call_mmap_callbacks_for_task): Fixed
  cut-and-paste error.

15 years agoFix nd_syscall2 open.return typo.
Mark Wielaard [Tue, 2 Jun 2009 12:55:30 +0000 (14:55 +0200)]
Fix nd_syscall2 open.return typo.

* tapset/nd_syscalls2.stp (nd_syscall.open.return): Add commas after
  alternatives.

15 years agoMore nd_syscalls2 cleanup, and add SYSCALL_WRAPPERS
Josh Stone [Tue, 2 Jun 2009 08:28:00 +0000 (01:28 -0700)]
More nd_syscalls2 cleanup, and add SYSCALL_WRAPPERS

- Fix a few more formatting issues
- Add SYSCALL_WRAPPERS analogous to 132c33 tapset/syscalls2.stp

Thanks to Przemysław Pawełczyk for the helpful translation scripts.

15 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Josh Stone [Tue, 2 Jun 2009 07:53:40 +0000 (00:53 -0700)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

15 years agoCache the last result of dwarf_getscopes
Josh Stone [Tue, 2 Jun 2009 07:43:49 +0000 (00:43 -0700)]
Cache the last result of dwarf_getscopes

This one function accounted for ~30% of my callgrind profile of
"stap -l 'syscall.*'", even though it was only called ~1200 times.  We
call dwarf_getscopes for each $target variable, with the same parameters
within a given probe.  Since they're no nicely grouped, it's easy to
just cache the most recent call, and the next few calls will be a hit.

Overall this cuts the number of calls down to about 300, for an easy
speed gain.

15 years agoMove the blacklist functions into dwflpp
Josh Stone [Tue, 2 Jun 2009 01:47:30 +0000 (18:47 -0700)]
Move the blacklist functions into dwflpp

For a call like "stap -l 'syscall.*'", I found that ~10% of the time was
spent compiling the blacklist regexps over again for each probe point.
By moving this functionality into the kernel dwflpp instance, we can
reuse the regexps and get an easy speed boost.

15 years agoAdd debuginfo-install suggestion for kernel probing.
William Cohen [Mon, 1 Jun 2009 18:45:22 +0000 (14:45 -0400)]
Add debuginfo-install suggestion for kernel probing.

15 years agoBetter sdt.exp test cleanup.
David Smith [Mon, 1 Jun 2009 18:25:44 +0000 (13:25 -0500)]
Better sdt.exp test cleanup.
* testsuite/systemtap.base/sdt.exp: Better cleanup.

15 years agoAvoid holding semaphore while making mmap callbacks.
David Smith [Mon, 1 Jun 2009 17:20:08 +0000 (12:20 -0500)]
Avoid holding semaphore while making mmap callbacks.
* runtime/task_finder.c (__stp_call_mmap_callbacks_for_task): Grabs the
  'mmap_sem' sempaphore. Caches vma information, releases the semaphore,
  then makes mmap callbacks.
  (__stp_utrace_task_finder_target_quiesce): Calls
  __stp_call_mmap_callbacks_for_task() to make mmap callbacks on initial
  attach to a task.

15 years agoFix a few variables in nd_syscalls2
Josh Stone [Fri, 29 May 2009 23:50:24 +0000 (16:50 -0700)]
Fix a few variables in nd_syscalls2

15 years agoClean up nd_syscalls2 formatting
Josh Stone [Fri, 29 May 2009 23:25:19 +0000 (16:25 -0700)]
Clean up nd_syscalls2 formatting

This applies some of the formatting rules specified in c0c1ccc.

15 years agoKill trailing whitespace in nd_syscalls[2]
Josh Stone [Fri, 29 May 2009 22:24:53 +0000 (15:24 -0700)]
Kill trailing whitespace in nd_syscalls[2]

15 years agoConvert nd_syscalls2 to kprobe.function
Josh Stone [Fri, 29 May 2009 21:38:23 +0000 (14:38 -0700)]
Convert nd_syscalls2 to kprobe.function

15 years agoAdd JoeLynn Keniston to AUTHORS
Josh Stone [Fri, 29 May 2009 18:51:13 +0000 (11:51 -0700)]
Add JoeLynn Keniston to AUTHORS

15 years agoCreate nd_syscalls2.stp
JoeLynn Keniston [Fri, 29 May 2009 18:46:41 +0000 (11:46 -0700)]
Create nd_syscalls2.stp

This contains an initial transformation of syscalls2.stp to start using
numbered parameter access instead of relying on dwarf.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoPR10206: Include NOTYPE symbols in stap-symbols.h
Ananth N Mavinakayanahalli [Thu, 28 May 2009 16:53:45 +0000 (22:23 +0530)]
PR10206: Include NOTYPE symbols in stap-symbols.h

On powerpc, function descriptors are in the .opd section as NO_TYPE.
Include them in stap-symbols.h

15 years agoAvoid 1 case of holding a semaphore while mmap callbacks are being made.
David Smith [Thu, 28 May 2009 15:58:17 +0000 (10:58 -0500)]
Avoid 1 case of holding a semaphore while mmap callbacks are being made.
* runtime/task_finder.c (__stp_call_mmap_callbacks_with_addr): Renamed
  from __stp_call_mmap_callbacks_with_vma().  Also added some code from
  __stp_utrace_task_finder_target_syscall_exit() that locks the 'mmap_sem'
  semaphore.  This avoids holding the semaphore while the mmap callbacks
  are made.
  (__stp_utrace_task_finder_target_syscall_exit): Just calls
  __stp_call_mmap_callbacks_with_addr() in the mmap case.

15 years agoAdd ucontext-symbols and ucontext-unwind tapset functions to the manual.
Mark Wielaard [Thu, 28 May 2009 11:31:31 +0000 (13:31 +0200)]
Add ucontext-symbols and ucontext-unwind tapset functions to the manual.

* tapset/ucontext-unwind.stp (ubacktrace): Remove empty line before function
  triggering parse errors for doc scanner.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl (chapter context_stp): Add
  tapset/ucontext-symbols.stp and tapset/ucontext-unwind.stp.

15 years agoMore testsuite tweaks to make it work with SYSCALL_WRAPPERS
Ananth N Mavinakayanahalli [Thu, 28 May 2009 06:18:34 +0000 (11:48 +0530)]
More testsuite tweaks to make it work with SYSCALL_WRAPPERS

15 years agoSuggest rpms to install using debuginfo-install.
William Cohen [Wed, 27 May 2009 15:14:12 +0000 (11:14 -0400)]
Suggest rpms to install using debuginfo-install.

The patch makes use of the RPM libraries to determine which rpm supplied
the executable and from that information suggest a command to install the
appropriate debuginfo rpm.

This is enabled using the "--with-rpm" option for configure. Can be
explicitly disabled with "--without-rpm".

15 years agoFix nd_syscalls.stp for architectures using SYSCALL_WRAPPERS.
Przemyslaw Pawelczyk [Sat, 23 May 2009 08:30:40 +0000 (10:30 +0200)]
Fix nd_syscalls.stp for architectures using SYSCALL_WRAPPERS.

Add kprobe.function("SyS_*") probe points to nd_syscall.* probe aliases.
Analogue of commit 132c337c with two exceptions:
- remove sufficiency of these new probe points (use '?' instead of '!'),
  because translator always considers them resolved,
- make non-SyS probe points optional in probe aliases affected by
  syscall wrappers, because otherwise they will fail on such
  architectures.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoFix another kernel/kprobe.function conflict
Josh Stone [Sat, 23 May 2009 02:55:50 +0000 (19:55 -0700)]
Fix another kernel/kprobe.function conflict

Both kernel.function and kprobe.function were defining a global array
stap_unreg_kprobes to use in bulk kprobes unregistration.  The compiler
allowed the duplicate definition as long as they were the same size, as
it was when exercised in buildok/thirtyone.

kprobe.function now uses a separate stap_unreg_kprobes2, and the
testcase is modified to produce an imbalanced number of probes.

15 years agoPR10190: Suppress warnings for optional kprobes
Josh Stone [Sat, 23 May 2009 01:01:18 +0000 (18:01 -0700)]
PR10190: Suppress warnings for optional kprobes

When a kernel.function or kprobe.function fails in registration, we
usually print a WARNING and move on.  With this patch, kprobes that have
the optional '?' flag will not print any WARNING.

15 years agoMove the "pure" tag into the body of __is_user_regs
Josh Stone [Fri, 22 May 2009 22:27:56 +0000 (15:27 -0700)]
Move the "pure" tag into the body of __is_user_regs

The "/* pure */" tag has no effect unless it is within the embedded-C
body of a function.  In this instance, they were accidentally moved out
during the syscall cleanups.

15 years agoUse embedded-C for empty functions
Josh Stone [Fri, 22 May 2009 21:57:33 +0000 (14:57 -0700)]
Use embedded-C for empty functions

The functions asmlinkage() and fastcall() are used to help access
syscall parameters on i686.  All other archs don't need this, but they
still define empty functions to shield the callers from arch details.

However, stap issues warnings for empty script-level functions.  This
patch changes them to "%{ /* pure */ %}" so there's no complaint, and
they will still get optimized away.

15 years agoUncomment 'name' variable in nd_syscall.lseek probe point.
Przemyslaw Pawelczyk [Fri, 22 May 2009 18:05:43 +0000 (20:05 +0200)]
Uncomment 'name' variable in nd_syscall.lseek probe point.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoAdd missing probe points in nd_syscalls.stp.
Przemyslaw Pawelczyk [Fri, 22 May 2009 15:15:21 +0000 (17:15 +0200)]
Add missing probe points in nd_syscalls.stp.

Add probe points for faccessat, fchmodat, fchownat, linkat and mknodat.
Analogue of commits: a3d153e5335972be46e2c2c1c815c982dac6e242
and bad69f1d.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoRemove return probes for exit[_group] in nd_syscalls.stp.
Przemyslaw Pawelczyk [Fri, 22 May 2009 14:31:15 +0000 (16:31 +0200)]
Remove return probes for exit[_group] in nd_syscalls.stp.

Analogue of commit 39a8b0bc.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoUnify formatting of nd_syscalls.stp.
Przemyslaw Pawelczyk [Fri, 22 May 2009 11:58:27 +0000 (13:58 +0200)]
Unify formatting of nd_syscalls.stp.

Rules were already specified in commit c0c1ccc6.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoRestore staprun's support for REAL_UID/GID
Josh Stone [Fri, 22 May 2009 19:17:45 +0000 (12:17 -0700)]
Restore staprun's support for REAL_UID/GID

This is needed for run-stap so that stapio and all child processes can
run as the originally invoking user instead of root.

15 years agoPR10182: clean uprobes.ko during rpm upgrade
Frank Ch. Eigler [Thu, 21 May 2009 14:28:55 +0000 (10:28 -0400)]
PR10182: clean uprobes.ko during rpm upgrade

15 years agosome versions of bundled elfutils needs m4 for building
Frank Ch. Eigler [Thu, 21 May 2009 04:38:46 +0000 (00:38 -0400)]
some versions of bundled elfutils needs m4 for building

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Wed, 20 May 2009 23:03:34 +0000 (19:03 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoFix gcc warning about Dwarf_Addr initialization.
Mark Wielaard [Wed, 20 May 2009 21:59:26 +0000 (23:59 +0200)]
Fix gcc warning about Dwarf_Addr initialization.

* translate.cxx (dump_unwindsyms): Initialize eh_frame to 0, not NULL.

15 years agoPR10177: init/kill time in sleepy context only
Josh Stone [Wed, 20 May 2009 21:46:25 +0000 (14:46 -0700)]
PR10177: init/kill time in sleepy context only

Previously, _stp_init_time and _stp_kill_time were being called from
begin/end/error probes, which will run with preemption disabled.  The
BUG reported on RT kernels showed that cpufreq_unregister_notifier can
end up sleeping, which violates our preemption block.

This patch moves the init/kill into systemtap_module_init/exit, where it
is safe to sleep.  The code maintains a new predicate with the define
STAP_NEED_GETTIMEOFDAY, so we don't still incur any timer overhead if
it's not used.

15 years agoAdd the schedtimes.stp and associated schedtimes.meta files to the examples.
William Cohen [Wed, 20 May 2009 21:52:44 +0000 (17:52 -0400)]
Add the schedtimes.stp and associated schedtimes.meta files to the examples.

15 years agoProperly read eh_frame and pass is_ehframe correctly.
Mark Wielaard [Wed, 20 May 2009 21:11:43 +0000 (23:11 +0200)]
Properly read eh_frame and pass is_ehframe correctly.

* runtime/unwind.c (adjustStartLoc): Add extra dbug_unwind.
  (_stp_search_unwind_hdr): Always pass true for is_ehframe.
  (unwind_frame): Properly pass through is_ehframe to adjustStartLoc().
  (unwind): Add extra dbug_unwind.
* translate.cxx (dump_unwindsyms): Output and use correct eh_frame
  and eh_len.

15 years agoUse debug_frame table, then fallback to eh_frame when necessary.
Mark Wielaard [Wed, 20 May 2009 14:51:24 +0000 (16:51 +0200)]
Use debug_frame table, then fallback to eh_frame when necessary.

* runtime/unwind.c (unwind): Call new unwind_frame() first with debug_frame
  data, then if that wasn't able to unwind again with eh_frame data.
  (unwind_frame): Adapted version of old unwind() function that takes a
  table, table length and whether it is an eh_frame table.

15 years agoPass and use ptrType and is_ehframe to unwind adjustStartLoc.
Mark Wielaard [Wed, 20 May 2009 13:40:29 +0000 (15:40 +0200)]
Pass and use ptrType and is_ehframe to unwind adjustStartLoc.

* runtime/unwind.c (adjustStartLoc): Add ptrType and is_ehframe as arguments.
  Use these to adjust location when necessary.
  (DEBUG_UNWIND): Move block before adjustStartLoc.
  Pass false for is_ehframe throughout.

15 years agoFetch and store both debug_frame and eh_frame tables.
Mark Wielaard [Wed, 20 May 2009 13:24:02 +0000 (15:24 +0200)]
Fetch and store both debug_frame and eh_frame tables.

* runtime/sym.h (_stp_module): Remove unwind_data, unwind_data_len and
  unwind_is_ehframe fields. Add debug_frame, eh_frame, debug_frame_len,
  eh_frame_len and eh_frame_addr fields.
* runtime/unwind.c: Use debug_frame and debug_frame_len instead of
  unwind_data and unwind_data_len throughout.
  (cie_for_fde): Take unwind_data and is_ehframe as direct arguments.
* runtime/unwind/unwind.h (cie_for_fde): New function declaration.
* translate.cxx (get_unwind_data): Fetch and return both debug_frame
  and eh_frame tables.
  (dump_unwindsyms): Dump both debug_frame and eh_frame tables.

15 years agoPR10172 sdt.h on powerpc Error: junk at end of line: `0'
Mark Wielaard [Wed, 20 May 2009 10:39:57 +0000 (12:39 +0200)]
PR10172 sdt.h on powerpc Error: junk at end of line: `0'

* includes/sys/sdt.h (STAP_NOP): __powerpc__ doesn't want an extra 0.

Tested-by: Mahesh Jagannath Salgaonkar <mahesh@linux.vnet.ibm.com>
15 years agoAdapt sid to latest kernel
Wenji Huang [Tue, 19 May 2009 23:39:43 +0000 (19:39 -0400)]
Adapt sid to latest kernel

15 years agoDisable building grapher code in rpm.
William Cohen [Tue, 19 May 2009 20:17:07 +0000 (16:17 -0400)]
Disable building grapher code in rpm.

15 years agoFix alignment of probe aliases in syscalls(|2).stp.
Przemyslaw Pawelczyk [Tue, 19 May 2009 11:22:20 +0000 (13:22 +0200)]
Fix alignment of probe aliases in syscalls(|2).stp.

Align probe points in probe aliases to equal sign using spaces as it's
already done in nd_syscalls.stp.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoUnify formatting of syscalls.stp and syscalls2.stp.
Przemyslaw Pawelczyk [Tue, 19 May 2009 11:04:29 +0000 (13:04 +0200)]
Unify formatting of syscalls.stp and syscalls2.stp.

Rules:
- Specify probe points for aliases starting from the alias declaration
  line and with one probe point per line.
- Use K&R indent style -- probe alias/point/function opening brace goes
  to the line following the declaration, other opening braces are kept
  on the same line as the control statements.
- Indent using tabs.
- Surround operators with spaces.
- Put spaces after commas.
- Avoid trailing whitespaces.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoCorrect misnamed variables in syscalls.stp.
Przemyslaw Pawelczyk [Tue, 19 May 2009 07:49:55 +0000 (09:49 +0200)]
Correct misnamed variables in syscalls.stp.

Rename variables accordingly to argument names used in man pages in
syscall.(faccess|fchmod|fchown|link|mknod)at probe points.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoEnhance -x option checking to only accept valid pid
Sunzen Wang [Tue, 19 May 2009 01:11:01 +0000 (09:11 +0800)]
Enhance -x option checking to only accept valid pid

Fix: Enhance -x option checking to only accept valid pid

15 years agoEnhance -s option checking to only accept valid size number
Sunzen Wang [Tue, 19 May 2009 01:07:11 +0000 (09:07 +0800)]
Enhance -s option checking to only accept valid size number

Fix: Enhance -s option checking to only accept valid size number

15 years agoFix: Enhance -p option checking so as to just accept valid number
Sunzen Wang [Mon, 18 May 2009 12:38:02 +0000 (20:38 +0800)]
Fix: Enhance -p option checking so as to just accept valid number

15 years agoYAAU (Yet Another AUTHORS Update)
Josh Stone [Mon, 18 May 2009 23:29:34 +0000 (16:29 -0700)]
YAAU (Yet Another AUTHORS Update)

15 years agoComplete the names-to-numbers conversion in nd_syscalls.stp.
Przemyslaw Pawelczyk [Sun, 17 May 2009 18:09:34 +0000 (20:09 +0200)]
Complete the names-to-numbers conversion in nd_syscalls.stp.

Replace in-scope variables references with *_arg functions. Use 'kprobe'
family of probes instead of 'kernel' family for dwarfless probing. Also
fix a few typos and unify formatting.

Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoPR10171 workaround.
David Smith [Mon, 18 May 2009 19:55:40 +0000 (14:55 -0500)]
PR10171 workaround.
* runtime/itrace.c: To avoid ia64 lockups, disable itrace on ia64.

15 years agoPR10091 fixes.
David Smith [Mon, 18 May 2009 18:05:01 +0000 (13:05 -0500)]
PR10091 fixes.
* runtime/itrace.c (usr_itrace_report_signal): Add a workaround for
  ppc-specific problem.
* testsuite/systemtap.base/itrace.exp: Improved tests.  Improved test
  completeness.  Will also no longer give fails for systems that don't
  support single or block step (will give xfails instead).

15 years agoFix typo in mq_timedreceive probe point.
Przemyslaw Pawelczyk [Sun, 17 May 2009 17:42:48 +0000 (19:42 +0200)]
Fix typo in mq_timedreceive probe point.

* tapset/syscalls.stp: Rename abs_timout_uaddr to abs_timeout_uaddr.

15 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Mark Wielaard [Mon, 18 May 2009 10:02:44 +0000 (12:02 +0200)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

15 years agoMake all tapsets' TOK_FOO constant
Josh Stone [Sat, 16 May 2009 01:59:16 +0000 (18:59 -0700)]
Make all tapsets' TOK_FOO constant

15 years agoMerge branch 'tapsets-cleanup'
Josh Stone [Fri, 15 May 2009 22:54:43 +0000 (15:54 -0700)]
Merge branch 'tapsets-cleanup'

15 years agoPrivatize many dwflpp members
Josh Stone [Fri, 15 May 2009 22:23:42 +0000 (15:23 -0700)]
Privatize many dwflpp members

This helps make it more obvious which methods are accessed by external
classes, which should help in refactoring.

15 years agoSimplify our unordered_map typedefs
Josh Stone [Fri, 15 May 2009 22:22:05 +0000 (15:22 -0700)]
Simplify our unordered_map typedefs

15 years agoBreak the dwflpp dependence on query_cu
Josh Stone [Fri, 15 May 2009 21:26:32 +0000 (14:26 -0700)]
Break the dwflpp dependence on query_cu

15 years agoBreak the dwflpp dependence on query_module
Josh Stone [Fri, 15 May 2009 21:10:57 +0000 (14:10 -0700)]
Break the dwflpp dependence on query_module

15 years agoMerge the dwflpp::query_cu_..._address methods
Josh Stone [Fri, 15 May 2009 20:14:52 +0000 (13:14 -0700)]
Merge the dwflpp::query_cu_..._address methods

The method query_cu_containing_global_address was only called by
query_cu_containing_module_address, and the latter was just doing a
simple argument transform.  They are now merged into a single method,
query_cu_containing_address.  The function module_address_to_global is
also merged here at its only call site.

15 years agoDon't shadow dwlfpp::dwfl in loc2c_emit_address
Josh Stone [Fri, 15 May 2009 19:56:15 +0000 (12:56 -0700)]
Don't shadow dwlfpp::dwfl in loc2c_emit_address

15 years agoRemove unused dwflpp methods
Josh Stone [Fri, 15 May 2009 19:29:19 +0000 (12:29 -0700)]
Remove unused dwflpp methods

These three methods had no callers, and are thus obsolete:

  dwflpp::focus_on_module_containing_global_address(Dwarf_Addr a)
  dwflpp::global_address_to_module(Dwarf_Addr a)
  dwflpp::cu_name_matches(string pattern)

15 years agoAdd stap-server buildreqs: nss-tools and pkgconfig.
David Smith [Fri, 15 May 2009 18:30:57 +0000 (13:30 -0500)]
Add stap-server buildreqs: nss-tools and pkgconfig.

15 years agoTidy/tighten DEBUG_UNWIND ptrType a bit.
Mark Wielaard [Fri, 15 May 2009 13:06:33 +0000 (15:06 +0200)]
Tidy/tighten DEBUG_UNWIND ptrType a bit.

* runtime/unwind.c (_stp_enc_hi_name): Include prefix for hi == 0.
  (_stp_enc_lo_name): Don't include prefix.
  (_stp_eh_enc_name): Always include hi_name.
  (unwind): Always include newline in dbug_unwind() calls.

15 years agoMark all testsuite/parseko/cmdline21.stp as executable.
Mark Wielaard [Fri, 15 May 2009 10:44:03 +0000 (12:44 +0200)]
Mark all testsuite/parseko/cmdline21.stp as executable.

15 years agoflightrec3.exp uses cpus as array, so rename skipped.exp cpus var to nr_cpus.
Mark Wielaard [Fri, 15 May 2009 09:44:42 +0000 (11:44 +0200)]
flightrec3.exp uses cpus as array, so rename skipped.exp cpus var to nr_cpus.

Works around a make installcheck issue that resulted in skipped.exp failing
because of "ERROR: can't set "cpus": variable is array"

* testsuite/systemtap.base/skipped.exp: Renamed cpus variable to nr_cpus.

15 years agoSet explicit longer, 60 second, timeout for alternatives.exp.
Mark Wielaard [Fri, 15 May 2009 09:23:23 +0000 (11:23 +0200)]
Set explicit longer, 60 second, timeout for alternatives.exp.

In an make installcheck run this is the first script that goes through
the full kernel debuginfo which might take a bit.

* testsuite/systemtap.base/alternatives.exp: Set timeout to 60, verbose
  log EOF or TIMEOUT when they occur.

15 years agoFixed comma space, space dot typos in various man pages.
Mark Wielaard [Fri, 15 May 2009 08:07:59 +0000 (10:07 +0200)]
Fixed comma space, space dot typos in various man pages.

Reported-by: K.Prasad <prasad@linux.vnet.ibm.com>
15 years agoFixed few typos in various man pages found by a spellchecker.
Petr Muller [Fri, 15 May 2009 07:53:45 +0000 (09:53 +0200)]
Fixed few typos in various man pages found by a spellchecker.

15 years agoFix few typos in stapprobes manpages found by a spellchecker.
Petr Muller [Fri, 15 May 2009 07:52:51 +0000 (09:52 +0200)]
Fix few typos in stapprobes manpages found by a spellchecker.

15 years ago[tracepoints] ternary is nicer for arg format
Josh Stone [Fri, 15 May 2009 02:08:37 +0000 (19:08 -0700)]
[tracepoints] ternary is nicer for arg format

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