]> sourceware.org Git - systemtap.git/log
systemtap.git
14 years agoPR 10848 partial fix by using systemtap memory functions everywhere.
David Smith [Wed, 9 Dec 2009 16:38:15 +0000 (10:38 -0600)]
PR 10848 partial fix by using systemtap memory functions everywhere.

* runtime/addr-map.c (add_bad_addr_entry): Uses systemtap memory
  allocation/deallocation wrappers.
* runtime/itrace.c (create_itrace_info): Ditto.
  (remove_usr_itrace_info): Ditto.

14 years agoHandle .probes section big endian 32 bit case.
Stan Cox [Wed, 9 Dec 2009 15:57:36 +0000 (10:57 -0500)]
Handle .probes section big endian 32 bit case.

sdt.h (STAP_PROBE_ADDR): Add 32 bit big endian case.
 (STAP_PROBE_DATA_): Use .balign
tapsets.cxx (sdt_query::get_next_probe): Stop if there is no probe name.

14 years agoMerge commit 'origin/master'
Tim Moore [Tue, 8 Dec 2009 22:34:25 +0000 (23:34 +0100)]
Merge commit 'origin/master'

14 years agographer: start of a dialog for displaying active stap processes
Tim Moore [Tue, 8 Dec 2009 22:17:47 +0000 (23:17 +0100)]
grapher: start of a dialog for displaying active stap processes

The names of active scripts are displayed in a list; mock buttons
suggest being able to stop and restart them.

* grapher/processwindow.glade: new file
* grapher/Makefile.am: add processwindow.glade to installed files
* grapher/StapParser.hxx (StapProcess): new class
  (StapParser): factor out members that are now in StapProcess
  (ioCallback): Use the new childDied signal instead of aborting the
   whole grapher when a child dies.
* grapher/grapher.cxx (ProcModelColumns, ProcWindow): classes for
  displaying stap process window.
  (GrapherWindow::on_menu_proc_window): new function

14 years agorefactor list of data sets out of GraphWidget into a global data structure.
Tim Moore [Tue, 8 Dec 2009 11:44:03 +0000 (12:44 +0100)]
refactor list of data sets out of GraphWidget into a global data structure.

Also, add a sigc signal for broadcasting data set changes.

* grapher/GraphData.hxx (GraphDataList) new typedef
  (getGraphData, graphDataSignal): new functions
* grapher/Graph.hxx (DatasetList): remove typedef in favor of
  systemtap::GraphDataList
* grapher/GraphWidget.cxx (GraphWidget, onGraphDataChanged): Use
  graphDataSignal to notice new data sets that need to be added. Use
  the global data set list instead of one embedded in GraphWidget.
* grapher/StapParser.hxx: delete the _widget member; use signals to
  broadcast that there are new data sets instead of calling into the widget.

14 years agoAdd .library("lib").mark("mark") and use it for .mark semaphores.
Stan Cox [Tue, 8 Dec 2009 16:57:00 +0000 (11:57 -0500)]
Add .library("lib").mark("mark") and use it for .mark semaphores.

tapset-utrace.cxx (TOK_LIBRARY): New.
 (utrace_derived_probe::utrace_derived_probe): Add library and has_library.
 (utrace_builder::build): Handle library.
 (utrace_derived_probe_group::emit_probe_decl): Add sdt_sem_offset to
  emitted stap_utrace_probes.  Add stap_task_finder_target
  mmap_callback for handling shared library.  Handle sdt_sem_offset in
  emitted_stp_utrace_probe_cb.  Add stap_utrace_mmap_found.
 (register_tapset_utrace): Handle .library
tapset-utrace.cxx (TOK_LIBRARY): New.
 (base_query::base_query):  Add path and has_library.
 (dwarf_derived_probe::dwarf_derived_probe) Likewise.
 (dwarf_derived_probe::register_patterns):  Handle .library
 (sdt_query::convert_location): Likewise.
 (dwarf_builder::build):  Likewise.
 (uprobe_derived_probe_group::emit_module_decls): Emit
  sdt_sem_address.  Add sdt_sem_offset to emitted stap_uprobe_spec.
  Add offset and vm_flags to signature of stap_uprobe_change_plus, and
  handle sdt_sem_offset.  Allow writeable segments in emitted
  stap_uprobe_mmap_found.
sdt_misc.exp:  Test .library
util.cxx (find_executable):  Add env_path to sig and use it in getenv.
util.h (find_executable): Likewise.  Make "PATH" the default.
dtrace.in (provider): Turn on semaphores.
sdt.h: Likewise.

14 years agoRevert "PR 10641 fixed by checking module name in unprivileged mode."
David Smith [Tue, 8 Dec 2009 16:40:27 +0000 (10:40 -0600)]
Revert "PR 10641 fixed by checking module name in unprivileged mode."

This reverts commit b2ea60606801aa9bf243f22318ac4bd8a25094fe.
* main.cxx (checkOptions): Remove unprivileged mode module name check.
* testsuite/parseko/cmdline05.stp: Delete unneeded testcase.
* testsuite/parseok/cmdline03.stp: Ditto.

14 years agoAdd dtrace -I support.
Mark Wielaard [Tue, 8 Dec 2009 02:23:20 +0000 (03:23 +0100)]
Add dtrace -I support.

dtrace -I is used to pass through include paths to cpp when run.
Thanks to David Malcolm <dmalcolm@redhat.com> for python coding and testing.

* dtrace.in: Add -I support.
* testsuite/systemtap.base/dtrace.exp: Add testcases for -C -I and -G -I.

14 years agotiny refactoring of signal and pipe code
Tim Moore [Tue, 8 Dec 2009 10:06:04 +0000 (11:06 +0100)]
tiny refactoring of signal and pipe code

14 years agoPR 10641 fixed by checking module name in unprivileged mode.
David Smith [Mon, 7 Dec 2009 21:17:58 +0000 (15:17 -0600)]
PR 10641 fixed by checking module name in unprivileged mode.

* main.cxx (checkOptions): If in unprivileged mode, make sure module name
  starts with 'stap_'.
* testsuite/parseko/cmdline05.stp: New testcase.
* testsuite/parseok/cmdline03.stp: New testcase.

14 years agoSmall compile server shutdown fix.
David Smith [Mon, 7 Dec 2009 21:12:46 +0000 (15:12 -0600)]
Small compile server shutdown fix.

* testsuite/lib/systemtap.exp (shutdown_server): Only remove the temporary
  stap script if it exists.

14 years agoadd copyright and license to grapher files
Tim Moore [Mon, 7 Dec 2009 18:19:45 +0000 (19:19 +0100)]
add copyright and license to grapher files

14 years agomake the list items in the data set list unselectable
Tim Moore [Mon, 7 Dec 2009 17:51:55 +0000 (18:51 +0100)]
make the list items in the data set list unselectable

The checkbox selects the list, so it is just sloppy to allow the item
to be selected.

* grapher/GraphWidget.hxx (no_select_fun): New function; just returns
  false.
* grapher/GraphWidget.cxx (GraphWidget): Connect list store selection
  to function that prevents selection.

14 years agoChange data set list display to use a check box for inclusion in a graph
Tim Moore [Mon, 7 Dec 2009 15:50:44 +0000 (16:50 +0100)]
Change data set list display to use a check box for inclusion in a graph

Incidently, this supports removing a data set from a graph.

Also, remove the Add, Remove, and Cancel buttons from the data set dialog.

* grapher/GraphWidget.hxx (DataModelColumns::_dataEnabled): new member
  _listConnection: new member
* grapher/GraphWidget.cxx (GraphWidget): Delete connections for
  removed buttons. Connect to dialog show and hide signals instead of
  map. Add "Enabled" column to dialog list.
  (onDataAdd, onDataRemove): delete
  (onDataDialogOpen): Initialize list store with all data sets and
  hook up row_changed signal
  (onDataDialogClose, onRowChanged): new functions
* grapher/graph-dialog.glade: Remove obsolete buttons (Add, Remove, Cancel).

14 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Tim Moore [Mon, 7 Dec 2009 11:47:32 +0000 (12:47 +0100)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

14 years agooption to display graph times relative to the start time
Tim Moore [Mon, 7 Dec 2009 11:43:56 +0000 (12:43 +0100)]
option to display graph times relative to the start time

This avoids having humongous numbers displayed on the graphs' x
axis. Also, the dialog for adding a data set to a graph was cleaned
up.

* grapher/graph-dialog.glade: Add check box for display of relative
  time and a label for the data set list. Force the list of data sets
  to be larger.
* grapher/Graph.hxx (_timeBase): new member
* grapher/Graph.cxx (draw): Subtract _timeBase from displayed time
  value.
* grapher/GraphWidget.hxx (DataModelColumns): Add a column for a data
  set's title, which is optional at the moment.
* grapher/GraphWidget.hxx (_globalTimeBase, _timeBaseInitialized,
  _relativeTimesButton, _displayRelativeTimes): new members
* grapher/GraphWidget.hxx (GraphWidget): Hook up check button for
  displaying relative time.
  (on_expose_event): Determine base time if needed; set base time in
  graphs.
  (onDataDialogOpen): Insert graph data set's name (key) and title
  into the list of data sets.

14 years agoAdd a missing cairo context restore()
Tim Moore [Mon, 7 Dec 2009 11:23:27 +0000 (12:23 +0100)]
Add a missing cairo context restore()

It's not clear if this was causing any ill effects, but it is
certainly bad form.

* grapher/GraphWidget.cxx (on_expose_event): add missing cr->restore().

14 years agoFix regression introduced by commit 379c585
Wenji Huang [Mon, 7 Dec 2009 08:47:32 +0000 (16:47 +0800)]
Fix regression introduced by commit 379c585

14 years agoAdd new graph output to the last graph
Tim Moore [Fri, 4 Dec 2009 18:30:08 +0000 (19:30 +0100)]
Add new graph output to the last graph

14 years agorestore event square color
Tim Moore [Fri, 4 Dec 2009 16:31:55 +0000 (17:31 +0100)]
restore event square color

* grapher/GraphStyle.cxx (GraphStyleEvent::draw): set event color in
  inner loop.

14 years agohover text on the additional graphs
Tim Moore [Fri, 4 Dec 2009 16:12:06 +0000 (17:12 +0100)]
hover text on the additional graphs

* grapher/Graph.cxx (window2GraphCoords): Take the entire graph's
  position into account too.
* grapher/GraphWidget.cxx (GraphWidget): Hook up the data dialog's OK
  button.
  (onDataDialogOpen): If a data set doesn't have a title, use it's
  name (key) instead.

14 years agotweak multiline hover text to have proper interline spacing
Tim Moore [Fri, 4 Dec 2009 13:11:25 +0000 (14:11 +0100)]
tweak multiline hover text to have proper interline spacing

* grapher/CairoWidget.cxx (CairoTextBox::draw): Use font information
  to caculate legible spacing. Also change the font to something more
  readable.
* testsuite/systemtap.examples/general/grapher.stp: Put carriage
  returns in the right spots.

14 years agosupport multiline data output from scripts run under the grapher
Tim Moore [Fri, 4 Dec 2009 12:08:01 +0000 (13:08 +0100)]
support multiline data output from scripts run under the grapher

This is accompanied by support for multiline output in hover text.

* grapher/StapParser.cxx (ioCallback): Read data 'til the end of line
  character, not just '\n'. Be careful to use I/O functions that don't
  treat '\n' specially.
* grapher/StapParser.hxx: ditto
* grapher/CairoWidget.cxx (CairoTextBox::draw): Perform line breaks
  for hover text.
* testsuite/systemtap.examples/general/grapher.stp: Do multiline
  output of keyboard events. Also, fix longstanding breaking in the
  pty probe.

14 years agoMerge commit 'origin/master'
Tim Moore [Thu, 3 Dec 2009 22:48:34 +0000 (23:48 +0100)]
Merge commit 'origin/master'

14 years agoError check in hover text code for empty graphs
Tim Moore [Thu, 3 Dec 2009 22:45:51 +0000 (23:45 +0100)]
Error check in hover text code for empty graphs

* grapher/GraphStyle.cxx(GraphStyleEvent::dataIndexAtPoint,
  GraphStyleBar::dataIndexAtPoint): check for empty graph data

14 years agoPR11020: Check switch_file global flag inside inner loop for busy scripts
Masami Hiramatsu [Thu, 3 Dec 2009 20:35:34 +0000 (15:35 -0500)]
PR11020: Check switch_file global flag inside inner loop for busy scripts

* runtime/staprun/relay.c (reader_thread): Check switch_file thread flags
  inside inner read-write loop. And clear the flags after switching file.

14 years agoHover text for event-style graphs
Tim Moore [Thu, 3 Dec 2009 18:31:08 +0000 (19:31 +0100)]
Hover text for event-style graphs

Don't draw the data value for an event; only display it in hover text.

* grapher/Graph.hxx (window2GraphCoords): new function
* grapher/Graph.cxx (window2GraphCoords): ditto
* grapher/GraphStyle.cxx (GraphStyleEvent::dataIndexAtPoint): new
  function implementation.

14 years agoFix PR 11034 by directly allocating per-cpu context data.
David Smith [Wed, 2 Dec 2009 21:16:10 +0000 (15:16 -0600)]
Fix PR 11034 by directly allocating per-cpu context data.
* translate.cxx (emit_common_header): Change type of 'contexts' to an
  array of struct context pointers.
  (emit_module_init): Allocate a context structure for each possible cpu.
  Free each if an error occurs.
  (emit_module_exit): Update contexts reference.  Free each possible cpu's
  context structure.
* tapsets.cxx (common_probe_entryfn_prologue): Use array instead of percpu
  data for context structure.

14 years agoMake the hover text conform to data displayed.
Tim Moore [Wed, 2 Dec 2009 18:27:07 +0000 (19:27 +0100)]
Make the hover text conform to data displayed.

Start of code to be more selective about the association between the
hover text and the underling graph. Also, show the data set name in hover text.

* grapher/GraphStyle.hxx (dataIndexAtPoint): New virtual function.
* grapher/GraphStyle.cxx (dataIndexAtPoint): Implementation for bar graphs
* grapher/GraphWidget.cxx (onHoverTimeout): Use dataIndexAtPoint.

14 years agoRefactor drawing of different styles of graph into classes
Tim Moore [Tue, 1 Dec 2009 18:05:09 +0000 (19:05 +0100)]
Refactor drawing of different styles of graph into classes

* grapher/GraphStyle.cxx: New file
* grapher/GraphStyle.hxx: New file
* grapher/Graph(draw): Move much drawing code to GraphStyle::draw

14 years agoAccount for zoom factor when choosing hover text
Tim Moore [Tue, 1 Dec 2009 12:34:12 +0000 (13:34 +0100)]
Account for zoom factor when choosing hover text

* grapher/Graph.cxx (getTimeAtPoint): Divide by _zoomFactor too.

14 years agoMake tapset and tests compatible with old kernel
Wenji Huang [Wed, 2 Dec 2009 09:45:20 +0000 (17:45 +0800)]
Make tapset and tests compatible with old kernel

* tapset/ioscheduler.stp : Make probe optional.
* tapset/irq.stp : Ditto.
* tapset/scheduler.stp : Ditto.
* tapset/tcpmib.stp : Ditto.
* tapset/linuxmib.stp : Switch variable by version.
* tapset/tty.stp : Ditto.
* testsuite/buildok/irq.stp : Make probe test optional.
* testsuite/buildok/tty.stp : Ditto.
* testsuite/systemtap.examples/network/netdev.stp : Ditto.
* testsuite/buildok/tcpmib-all-probes.stp : Add embedded functions.

14 years agominor correction
Don Domingo [Wed, 2 Dec 2009 03:47:15 +0000 (13:47 +1000)]
minor correction

14 years agocorrecting license, forgot to change back yesterday while testing default Publican...
Don Domingo [Wed, 2 Dec 2009 00:48:48 +0000 (10:48 +1000)]
correcting license, forgot to change back yesterday while testing default Publican 1 license

14 years agoRegenerate autotools files using autoreconf to pick up latest Makefile.am changes.
Dave Brolley [Tue, 1 Dec 2009 21:43:53 +0000 (16:43 -0500)]
Regenerate autotools files using autoreconf to pick up latest Makefile.am changes.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 1 Dec 2009 20:14:02 +0000 (15:14 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoMake sure system types are defined.
Dave Brolley [Tue, 1 Dec 2009 20:10:06 +0000 (15:10 -0500)]
Make sure system types are defined.

14 years agouprobes ppc64: UPROBES_DEBUG build fix
Frank Ch. Eigler [Mon, 30 Nov 2009 21:29:29 +0000 (16:29 -0500)]
uprobes ppc64: UPROBES_DEBUG build fix

* runtime/uprobes/uprobes_ppc.c (calc_offset): Fix printk types.

14 years agoUse proper types for do_div
Anton Vorontsov [Fri, 27 Nov 2009 22:33:47 +0000 (01:33 +0300)]
Use proper types for do_div

do_div accepts unsigned 64-bit integer type for dividend, signed types
would cause do_div's typecheck fail:

stat-common.c: In function 'needed_space':
stat-common.c:50: error: comparison of distinct pointer types lacks a cast
...same errors in time.c and tapset-timers.cxx's generated code...

A fix for time.c is special, on ppc32 cycles_t is 32-bit, so technically
we don't need do_div, but since the whole _stp_gettimeofday_ns() operates
on 64-bit types we'd better be safe and use uint64_t for the math.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agoChange KERNEL_RELOC_SYMBOL to "_stext" on ppc32
Anton Vorontsov [Fri, 27 Nov 2009 22:33:51 +0000 (01:33 +0300)]
Change KERNEL_RELOC_SYMBOL to "_stext" on ppc32

Currently staprun fails at send_relocation_kernel(), this is because
ppc32 doesn't have ".__start" symbol. I think we should use _stext,
just as other arches.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agoImplement _div64 and _mod64 for ppc32
Anton Vorontsov [Fri, 27 Nov 2009 22:33:49 +0000 (01:33 +0300)]
Implement _div64 and _mod64 for ppc32

_div64 and _mod64 arch-specific details were taken from gcc/longlong.h,
just as it was done for i386.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agoShare ppc64 and ppc32 code where possible
Anton Vorontsov [Fri, 27 Nov 2009 22:33:45 +0000 (01:33 +0300)]
Share ppc64 and ppc32 code where possible

* runtime/copy.c: Can use ppc64's code.
* runtime/regs.h: Ditto.
* runtime/string.h: Ditto.
* tapset/context.stp: Ditto.
* tapset/errno.stp: Ditto.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agoImplement ppc32 variant of __is_user_regs
Anton Vorontsov [Fri, 27 Nov 2009 22:33:44 +0000 (01:33 +0300)]
Implement ppc32 variant of __is_user_regs

* tapset/nd_syscalls.stp: Implement ppc32 variant of __is_user_regs.
* tapset/syscalls.stp: Ditto.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agostack-ppc: Adjust for ppc32
Anton Vorontsov [Fri, 27 Nov 2009 22:33:42 +0000 (01:33 +0300)]
stack-ppc: Adjust for ppc32

Get rid of magic numbers, use appropriate defines from ptrace.h.

From now on stack-ppc.c should be suitable for ppc32.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agoRename stack-ppc64.c to stack-ppc.c
Anton Vorontsov [Fri, 27 Nov 2009 22:33:39 +0000 (01:33 +0300)]
Rename stack-ppc64.c to stack-ppc.c

There should be no functional changes in this patch.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agoRename uprobes_ppc64.c to uprobes_ppc.c, use it for ppc32
Anton Vorontsov [Fri, 27 Nov 2009 22:33:36 +0000 (01:33 +0300)]
Rename uprobes_ppc64.c to uprobes_ppc.c, use it for ppc32

The code *looks* generic enough, so I think it can be used for ppc32
without modifications.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
14 years agoConvert string.stp documentation to standard markup.
Mark Wielaard [Tue, 1 Dec 2009 13:29:51 +0000 (14:29 +0100)]
Convert string.stp documentation to standard markup.

* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add string.stp chapter.
* tapset/string.stp: Convert documentation to standard markup and add
  documentation that was missing.

14 years agosome aesthetic tweaks to the grapher
Tim Moore [Tue, 1 Dec 2009 11:54:25 +0000 (12:54 +0100)]
some aesthetic tweaks to the grapher

* grapher/Graph.cxx (draw): Draw tick labels (times) below the graph.
* grapher/grapher.cxx (main): Open main window with a size big enough
  to display an entire graph.

14 years agoAdd hover text to the graph.
Tim Moore [Tue, 1 Dec 2009 11:26:59 +0000 (12:26 +0100)]
Add hover text to the graph.

When the graph display is paused, leaving the mouse stationary over
the graph will display the data point under the pointer.

* grapher/CairoWidget.hxx (CairoTextBox): new class
  (CairoWidget, CairoPlayButton): refector some play button-specific
  things from CairoWidget to CairoPlayButton.
* grapher/CairoWidget.cxx (CairoTextBox::draw): new function.
* grapher/GraphWidget.hxx (GraphWidget): new members for supporting
  hover text.
* grapher/GraphWidget.cxx (on_motion_notify_event): Set up hover text box.
  (establishHoverTimeout, onHoverTimeout, getGraphUnderPoint): new functions.

14 years agochange time type from double to int64_t
Tim Moore [Tue, 1 Dec 2009 11:02:24 +0000 (12:02 +0100)]
change time type from double to int64_t

* grapher/Graph.hxx (Graph): Change variables holding the time limits
  of the displayed graph from double to int64_t.
* grapher/Graph.cxx (Graph::draw): Do calculations of time differences
  using int64_t.
  (Graph::getExtents, Graph::setExtents): Change left and right
  arguments to int64_t.
* grapher/GraphData.hxx (GraphDataBase): Change time type to int64_t.
  (GraphDataBase::elementAsString): New function.
  (GraphData::elementAsString): Implementation of that function.
* grapher/StapParser.cxx (parseData): Parse time values from the stap
  script as 64 bit values.

14 years agoFix typo in scheduler tapset
Wenji Huang [Tue, 1 Dec 2009 07:44:38 +0000 (15:44 +0800)]
Fix typo in scheduler tapset

* tapset/scheduler.stp (__scheduler.kthread_stop.kp): Change
  priority to prio.

14 years agominor modifications to allow book to build in latest Publican (1.x). to build in...
Don Domingo [Tue, 1 Dec 2009 01:02:29 +0000 (11:02 +1000)]
minor modifications to allow book to build in latest Publican (1.x). to build in older versions of Publican, use old-syncandbuild.sh

14 years agominor modifications to allow book to build in latest Publican (1.x). to build in...
Don Domingo [Tue, 1 Dec 2009 01:02:19 +0000 (11:02 +1000)]
minor modifications to allow book to build in latest Publican (1.x). to build in older versions of Publican, use old-syncandbuild.sh

14 years agominor modifications to allow book to build in latest Publican (1.x). to build in...
Don Domingo [Tue, 1 Dec 2009 01:02:00 +0000 (11:02 +1000)]
minor modifications to allow book to build in latest Publican (1.x). to build in older versions of Publican, use old-syncandbuild.sh

14 years agominor modifications to allow book to build in latest Publican (1.x). to build in...
Don Domingo [Tue, 1 Dec 2009 01:01:47 +0000 (11:01 +1000)]
minor modifications to allow book to build in latest Publican (1.x). to build in older versions of Publican, use old-syncandbuild.sh

14 years agominor modifications to allow book to build in latest Publican (1.x). to build in...
Don Domingo [Tue, 1 Dec 2009 01:00:38 +0000 (11:00 +1000)]
minor modifications to allow book to build in latest Publican (1.x). to build in older versions of Publican, use old-syncandbuild.sh

14 years agoPR10653: don't corrupt signal structs in itrace on rawhide utrace
Roland McGrath [Mon, 30 Nov 2009 20:27:21 +0000 (15:27 -0500)]
PR10653: don't corrupt signal structs in itrace on rawhide utrace

* runtime/itrace.c (usr_itrace_report_signal): On modern utrace,
  must check/propagate utrace_signal_action().

14 years agoDon't let _stp_alloc_percpu allocate too much memory.
David Smith [Mon, 30 Nov 2009 19:24:14 +0000 (13:24 -0600)]
Don't let _stp_alloc_percpu allocate too much memory.
* runtime/alloc.c (_stp_alloc_percpu): Refuses to allocate too much percpu
  memory.

14 years agoPR10901: Add -D_FILE_OFFSET_BITS=64 to Makefile.am for stap and staprun
Charley Wang [Mon, 30 Nov 2009 18:31:10 +0000 (13:31 -0500)]
PR10901: Add -D_FILE_OFFSET_BITS=64 to Makefile.am for stap and staprun

14 years agoFix build error when !HAVE_NSS
Wenji Huang [Mon, 30 Nov 2009 03:04:44 +0000 (11:04 +0800)]
Fix build error when !HAVE_NSS

* runtime/staprun/staprun_funcs.c (assert_stap_module_permissions): Mark
  parameters unused.

14 years agodocs: abbreviated stap-server news blurbs
Frank Ch. Eigler [Sat, 28 Nov 2009 19:46:44 +0000 (14:46 -0500)]
docs: abbreviated stap-server news blurbs

14 years agoUpdate NEWS and initscript/README.stap-server with details of changes
Dave Brolley [Fri, 27 Nov 2009 21:58:21 +0000 (16:58 -0500)]
Update NEWS and initscript/README.stap-server with details of changes
due to recent commits.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 27 Nov 2009 19:15:58 +0000 (14:15 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoPR 10984 Additional Work. TOCTOU race checking access permissions before canonicalizi...
Dave Brolley [Fri, 27 Nov 2009 19:13:15 +0000 (14:13 -0500)]
PR 10984 Additional Work. TOCTOU race checking access permissions before canonicalizing /lib/modules/KVER/systemtap.

14 years agoFix compilation warning of passing NULL to int parameter
Wenji Huang [Thu, 26 Nov 2009 02:03:58 +0000 (10:03 +0800)]
Fix compilation warning of passing NULL to int parameter

* util.cxx (in_group_id): Replace NULL with 0.

14 years agoFix compilation error, use getgroups without fixed limits.
Roland McGrath [Wed, 25 Nov 2009 22:42:10 +0000 (14:42 -0800)]
Fix compilation error, use getgroups without fixed limits.

* util.cxx (in_group_id): Don't use NGROUPS_MAX.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Wed, 25 Nov 2009 19:58:50 +0000 (14:58 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoImprove error messages related to module signing.
Dave Brolley [Wed, 25 Nov 2009 19:58:25 +0000 (14:58 -0500)]
Improve error messages related to module signing.

14 years ago- Allow root, the owner of the uprobes build directory and the members of the
Dave Brolley [Wed, 25 Nov 2009 19:14:03 +0000 (14:14 -0500)]
- Allow root, the owner of the uprobes build directory and the members of the
group owner of the uprobes buld directory to build uprobes.ko.

- When building uprobes.ko, make all generated files writable by the group
owner of the uprobes build directory.

- Don't change the group owner of the uprobes build directory during
'make install'

14 years agoinclude modverify.h unconditionally.
Dave Brolley [Tue, 24 Nov 2009 21:30:23 +0000 (16:30 -0500)]
include modverify.h unconditionally.

14 years agoFix uninitialized fields in loc2c.
Roland McGrath [Tue, 24 Nov 2009 21:22:27 +0000 (13:22 -0800)]
Fix uninitialized fields in loc2c.

* loc2c.c (alloc_location, location_from_address, c_translate_constant):
Initialize ops and nops fields.

14 years agoAdd assert for detecting shared library reloading, PR11015.
Mark Wielaard [Tue, 24 Nov 2009 20:29:57 +0000 (21:29 +0100)]
Add assert for detecting shared library reloading, PR11015.

* runtime/sym.c (_stp_tf_mmap_cb): Only look for first load of whole module
  that is executable. Add check for detecting reloading of module.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 24 Nov 2009 20:04:01 +0000 (15:04 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 24 Nov 2009 19:51:46 +0000 (14:51 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoPR 10976, 10984. Loading of signed modules (script module and uprobes) limited to...
Dave Brolley [Tue, 24 Nov 2009 19:50:28 +0000 (14:50 -0500)]
PR 10976, 10984. Loading of signed modules (script module and uprobes) limited to members of stapusr.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 24 Nov 2009 00:08:51 +0000 (19:08 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:

configure

14 years agoEnsure uprobes/Makefile never returns failure due to setting permissions.
Dave Brolley [Mon, 23 Nov 2009 22:39:16 +0000 (17:39 -0500)]
Ensure uprobes/Makefile never returns failure due to setting permissions.
Ensure uprobes install directory has group 'stap-server'.
Rename igid_in to in_group.

14 years agoUpdated.
David Smith [Mon, 23 Nov 2009 20:15:20 +0000 (14:15 -0600)]
Updated.

14 years agoFixed tapset reference manual generation.
David Smith [Mon, 23 Nov 2009 20:13:38 +0000 (14:13 -0600)]
Fixed tapset reference manual generation.
* doc/SystemTap_Tapset_Reference/Makefile.am: Check for file existence
  before doing compare.
* doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated.
* tapset/ioblock.stp: Fixed comment so that docs can be built.

14 years agoRework setting of group and permissions on generated files and directories.
Dave Brolley [Mon, 23 Nov 2009 19:39:11 +0000 (14:39 -0500)]
Rework setting of group and permissions on generated files and directories.

14 years agoCorrect tapset/ioscheduler.stp so documentation builds.
William Cohen [Mon, 23 Nov 2009 18:30:46 +0000 (13:30 -0500)]
Correct tapset/ioscheduler.stp so documentation builds.

14 years agoMake built files and directories writeable by the stap-server group individually.
Dave Brolley [Mon, 23 Nov 2009 16:28:32 +0000 (11:28 -0500)]
Make built files and directories writeable by the stap-server group individually.

14 years agoTweak cu-decl test
Wenji Huang [Mon, 23 Nov 2009 08:38:04 +0000 (16:38 +0800)]
Tweak cu-decl test

* testsuite/systemtap.base/cu-decl.exp: Check utrace.
* testsuite/lib/stap_compile.exp: Make catch after wait.

14 years agoCorrect block IO and IO scheduler tapset and test case
Wenji Huang [Mon, 23 Nov 2009 06:03:33 +0000 (14:03 +0800)]
Correct block IO and IO scheduler tapset and test case

* tapset/ioblock.stp: Update comment and variables.
* testsuite/buildok/ioblock_test.stp: Add parameters.
* testsuite/buildok/ioscheduler.stp: Remove redundant parameters.

14 years agoAdded tracepoint-based probes to block IO and IO scheduler tapsets.
Prerna Saxena [Sun, 22 Nov 2009 18:10:39 +0000 (23:40 +0530)]
Added tracepoint-based probes to block IO and IO scheduler tapsets.
Added testcases for these probes.
Also, modified comments in ioblock.stp so that tapset docmentation can be automatically generated for this tapset.

14 years agoOnly attempt to change the group permissions of built items if we are root.
Dave Brolley [Fri, 20 Nov 2009 22:23:29 +0000 (17:23 -0500)]
Only attempt to change the group permissions of built items if we are root.

14 years agoAllow members of the group stap-server to build the uprobes module.
Dave Brolley [Fri, 20 Nov 2009 22:10:06 +0000 (17:10 -0500)]
Allow members of the group stap-server to build the uprobes module.

14 years agoEnsure that server status files are written by the initscript, not stap-start-server.
Dave Brolley [Fri, 20 Nov 2009 20:10:51 +0000 (15:10 -0500)]
Ensure that server status files are written by the initscript, not stap-start-server.

14 years agoReport correct status when a server fails to start.
Dave Brolley [Fri, 20 Nov 2009 19:53:56 +0000 (14:53 -0500)]
Report correct status when a server fails to start.

14 years agoFix typo on command to create /usr/share/systemtap/runtime/uprobes.
Dave Brolley [Fri, 20 Nov 2009 19:38:18 +0000 (14:38 -0500)]
Fix typo on command to create /usr/share/systemtap/runtime/uprobes.

14 years agoPR 10905 - Ensure that /usr/share/systemtap/runtime/uprobes is writeable by the
Dave Brolley [Fri, 20 Nov 2009 19:19:30 +0000 (14:19 -0500)]
PR 10905 - Ensure that /usr/share/systemtap/runtime/uprobes is writeable by the
stap-server group.

14 years agocleanup: explain -5 magic value used in map-sorting code
Frank Ch. Eigler [Fri, 20 Nov 2009 18:02:38 +0000 (13:02 -0500)]
cleanup: explain -5 magic value used in map-sorting code

14 years agobuild: disable make-silent mode in rpm builds
Frank Ch. Eigler [Fri, 20 Nov 2009 16:55:28 +0000 (11:55 -0500)]
build: disable make-silent mode in rpm builds

14 years agoPR10983: Give preference to tracepoints in trace/events/
Josh Stone [Wed, 18 Nov 2009 21:32:22 +0000 (13:32 -0800)]
PR10983: Give preference to tracepoints in trace/events/

In 2.6.32-rc7, there are two power.h tracepoints headers, and only the
one in trace/events/ is valid.  In general, we can expect that
trace/events/ has newer headers, so we should search those first.

* tapsets.cxx (tracepoint_builder::init_dw): Search /events/ first.

14 years agoPR 10981. Fixed buildok/netdev.stp for RHEL5.
David Smith [Wed, 18 Nov 2009 18:53:50 +0000 (12:53 -0600)]
PR 10981.  Fixed buildok/netdev.stp for RHEL5.
* tapset/networking.stp: Made 'netdev.change_rx_flag' and
  'netdev.get_stats' optional, since those functions don't exist on
  RHEL5.
* testsuite/buildok/netdev.stp: Ditto.

14 years agoDon't kfail buildok/sched_test.stp and buildok/process_test.stp.
David Smith [Wed, 18 Nov 2009 17:16:15 +0000 (11:16 -0600)]
Don't kfail buildok/sched_test.stp and buildok/process_test.stp.
* testsuite/systemtap.pass1-4/buildok.exp: On rhel5 and rawhide, the
  buildok/sched_test.stp and buildok/process_test.stp tests pass
  sucessfully, so there is no reason to kfail them.

14 years agoPR 5150. Fixed nfs tapset by making probes optional.
David Smith [Wed, 18 Nov 2009 16:59:37 +0000 (10:59 -0600)]
PR 5150.  Fixed nfs tapset by making probes optional.
* tapset/nfs_proc.stp: Made 'nfs.proc.read', 'nfs.proc.write', and
  'nfs.proc.commit' optional for newer kernels without those functions.
* testsuite/systemtap.pass1-4/buildok.exp: Expect nfs-all-probes.stp to
  pass.

14 years agoCheck in regenerated systemtap example indexes.
Mark Wielaard [Wed, 18 Nov 2009 13:28:25 +0000 (14:28 +0100)]
Check in regenerated systemtap example indexes.

14 years agoClean up examples
Wenji Huang [Wed, 18 Nov 2009 09:59:24 +0000 (17:59 +0800)]
Clean up examples

14 years agoTest cross-CU type discovery
Josh Stone [Wed, 18 Nov 2009 02:59:47 +0000 (18:59 -0800)]
Test cross-CU type discovery

Check that we can dereference a type declaration that is
defined in a separate CU from the function.

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