summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/general
Commit message (Collapse)AuthorAgeFilesLines
* new sample: varwatchFrank Ch. Eigler2010-03-072-0/+34
|
* don't assume buffer passed to pty_write is null terminatedTim Moore2009-12-231-7/+3
| | | | | * testsuite/systemtap.examples/general/grapher.stp: Use kernel_char instead of kernel_string to dig characters out of buffer.
* conditionalize pty_write count variable on kernel versionTim Moore2009-12-211-11/+12
| | | | | * testsuite/systemtap.examples/general/grapher.stp: Conditionalize pty_write count variable on kernel version.
* tweak multiline hover text to have proper interline spacingTim Moore2009-12-041-1/+3
| | | | | | | | * 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.
* support multiline data output from scripts run under the grapherTim Moore2009-12-041-5/+13
| | | | | | | | | | | | | | 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.
* Clean up examplesWenji Huang2009-11-183-3/+3
|
* testsuite: robustify check_* invocation of examples metaFrank Ch. Eigler2009-10-081-2/+2
| | | | | | | | | testsuite/systemtap.examples/ * check.exp (extract_tag): Log extracted tags. Tolerate embedded '$'. (run_command): Pass through commands to sh -c without eval quoting. * README: Document "sh -c"-ness of check_* tags. * *.meta: Fix quoting, add a few check_support predicates.
* Mark badname example as needing guru mode in meta file so it doesn't FAIL.Mark Wielaard2009-09-171-3/+3
|
* Add the badname.stp exampleJosh Stone2009-09-162-0/+41
| | | | | This is a toy script I wrote a while back to demonstrate how SystemTap could be used to enforce filesystem naming rules.
* Make check.exp not sleep so much in test_installcheck.Mark Wielaard2009-09-131-1/+1
| | | | | | | A lot of time during the installcheck was spend just sleeping. Reduce the sleep time by at least one fifth. * testsuite/systemtap.examples/*/*meta: Reduct -c "sleep" time.
* Make files executableEugeniy Meshcheryakov2009-08-071-0/+0
|
* Support for presenting multiple graphsTim Moore2009-07-281-3/+13
| | | | | | | | | | | | | | | | | | | | * grapher/Graph.hxx: New file; class for single graph display. * grapher/Graph.cxx: New file. * grapher/GraphData.hxx: Associate title and axis labels with graph data and not a graph display. * grapher/GraphWidget.hxx: Move graph-related members to Graph class. * grapher/GraphWidget.cxx (getExtents, setExtents): Move to Graph class (on_expose_event): Move graph rendering to Graph. (on_button_press_event): Delegate to Graph. (on_motion_notify_event, on_scroll_event): Modify "active" graph. * grapher/StapParser.cxx (findTaggedValue): New parsing helper function. (io_callback): Support new syntax where properties are attached to graph data and not the entire graph. * grapher/grapher.cxx (GrapherWindow): Don't set graph values. * grapher/Makefile.am: Add Graph.cxx. * testsuite/systemtap.examples/general/grapher.stp: New property syntax.
* Templatize GraphDataTim Moore2009-07-281-2/+3
| | | | | | | | | | | | | | | | * grapher/GraphData.hxx (GraphDataBase): new superclass for GraphData. Split time data out as a separate vector. (GraphData): Rewrite as template. * grapher/GraphWidget.cxx (on_expose_event): Reflect GraphData templatization. Handle events with string values. * grapher/GraphWidget.hxx (GraphWidget): Keep pointers to GraphDataBase objects instead of GraphData. * grapher/StapParser.cxx (parseData): new member function (ioCallback): Handle new discreet event * grapher/StapParser.hxx (StapParser): keep pointers to GraphDataBase objects instead of GraphData * testsuite/systemtap.examples/general/grapher.stp: Display actual key pressed for keyboard event
* restore newlines to grapher script headerTim Moore2009-07-281-4/+4
| | | | * testsuite/systemtap.examples/general/grapher.stp: Restore newlines.
* Make the file executableEugeniy Meshcheryakov2009-06-301-0/+0
|
* PR10007: Avoid probing syscall entry points in the testsuite.Ananth N Mavinakayanahalli2009-04-301-2/+2
| | | | While there, fix minor issues with the s390x syscall tapset.
* fix a bug with %% in format stringsTim Moore2009-04-201-5/+5
| | | | | | | | | | | * translate.cxx (c_unparser::visit_print_format): Always use _stp_printf if a format string contains "%%". Previously a format string with no arguments would always be printed with _stp_print. * testsuite/systemtap.printf/basic6.stp: New test for %% in format strings. * testsuite/systemtap.printf/basic6.exp: test driver * testsuite/systemtap.examples/grapher.stp: Remove workaround for "%%" literal problem.
* graphing widget and test harnessTim Moore2009-04-151-0/+32
|
* Describe the ansi_colors.stp and ansi_colors2.stp. Label tables appropriately.William Cohen2009-04-034-6/+32
|
* Make ansi_colors2.stp script executableEugene Teo2009-04-031-0/+0
|
* Update scripts to use the new ANSI tapsetEugene Teo2009-04-031-17/+26
| | | | | | This updates the example scripts to use the new ANSI escape sequences tapset. It also adds the copyright header that was missing in ansi_colors.stp for a long time.
* New ANSI escape sequences tapsetEugene Teo2009-04-031-0/+31
| | | | | | | This adds a new tapset for ANSI escape sequences. It is based on an existing tapset that was written by Masami Hiramatsu for the stapgames project. This also adds a version of ansi_color.stp script that displays other attributes other than the bold effect.
* Tweak formatting, indent two space.William Cohen2008-12-094-34/+34
|
* para-callgraph.meta: Add accidentially removed -c back to test_installcheck.Mark Wielaard2008-11-261-1/+1
|
* Don't use single quotes in .meta files.Mark Wielaard2008-11-251-1/+1
|
* removed simplesddomingo2008-10-294-70/+0
|
* added inodewatch from warstoriesddomingo2008-10-272-0/+23
|
* added simplified, working para-callgraphddomingo2008-10-272-0/+47
|
* testsuite tweaks for rhel5Frank Ch. Eigler2008-09-121-2/+2
|
* extend callgraph example to use $$parms / $$returnFrank Ch. Eigler2008-08-152-23/+19
|
* PR2895. Add proper #! /usr/bin/env stap line. Make example scripts executable.Mark Wielaard2008-08-112-1/+3
|
* samples: separate into subdirectories by subsystemFrank Ch. Eigler2008-08-0711-0/+179