summaryrefslogtreecommitdiffstats
path: root/grapher
Commit message (Collapse)AuthorAgeFilesLines
* * grapher/GraphData.hxx (GraphDataBase, GraphData): UseTim Moore2009-10-281-3/+10
| | | | boost::circular_buffer for time and data storage.
* Fix regression of parsing grapher optionsTim Moore2009-10-281-28/+28
| | | | | * grapher/StapParser.hxx (ioCallback): Test return value from findTaggedValue properly.
* Merge branch 'master' of ssh://sourceware.org/git/systemtapTim Moore2009-10-271-25/+53
|\
| * Enable Kbuild-like quiet buildsJosh Stone2009-10-221-25/+53
| | | | | | | | | | | | | | | | This enables much cleaner build output from automake. To re-enable the verbose commands, pass --disable-silent-rules to configure, or use V=1 at make time. * configure.ac: Enable AM_SILENT_RULES by default.
* | Kill off child processes correctly on exit.Tim Moore2009-10-271-30/+100
| | | | | | | | | | | | * grapher/grapher.cxx (ChildDeathReader::reap): New function. (StapLauncher): Keep a list of instantiated parsers. (StapLauncher::cleanup): Kill off all launched stap processes.
* | More refactoring for multiple stap processes.Tim Moore2009-10-273-162/+173
| | | | | | | | | | | | | | | | | | * grapher/StapParser.hxx (StapParser): Change _win and _widget from references to pointers. * grapher/StapParser.cxx (ioCallback): Ditto. * grapher/grapher.cxx (StapLauncher, GraphicalStapLauncher): Rewrite to make GraphicalStapLauncher a derived class of StapLauncher. (main): Accept graphing data from stdin with a "-" argument.
* | Change stap parser to use an input file descriptor other than stdinTim Moore2009-10-273-16/+15
|/ | | | | | | | * grapher/StapParser.hxx (_inFd, getInFd, setInFd): new member and fuctions * grapher/StapParser.cxx (ioCallback): Use _inFd variable instead of stdin. * grapher/grapher.cxx (StapLauncher::launch): Don't read input from stap on stdin; use the the read end of the pipe.
* Updated checking for grapher dependencies.David Smith2009-10-152-5/+14
| | | | | | | | | | | | * configure.ac: Made sure nss includes will error even if only 1 header isn't usable. Added grapher dependencies gtkmm and boost headers. * Makefile.in: Regenerated. * config.in: Ditto. * configure: Ditto. * doc/Makefile.in: Ditto. * doc/SystemTap_Tapset_Reference/Makefile.in: Ditto. * grapher/Makefile.am: Use libglade CFLAGS/LIBS. * grapher/Makefile.in: Regenerated.
* cleanup of graph data parser, using Boost functions where usefulTim Moore2009-10-143-36/+34
| | | | | | * grapher/StapParser.cxx (commaSplit): Use Boost string split function (findTaggedValue): Return bool instead of position (ioCallback): Avoid using hard-coded string lengths
* Added man page for stapgraphTim Moore2009-10-073-11/+202
| | | | * grapher/stapgraph.1.in: new file
* dialog for choosing stap script and providing arguments to stap and the scriptTim Moore2009-09-305-7/+348
| | | | | | | | | * grapher/grapher.cxx (GraphicalStapLauncher): New class. (GrapherWindow constructor): Bind actions for graphical launcher buttons (GrapherWindow::setGraphicalLauncher): new method (GrapherWindow::on_menu_script_start): new method grapher/stap-start.glade, grapher/stap-start.gladep: new files grapher/Makefile.am: install stap-start.glade
* classes for launching stap and listening for its deathTim Moore2009-09-301-94/+221
| | | | | | | | | * grapher/grapher.cxx (ChildDeathReader): New class to handle I/O signalling death of a child. (GrapherWindow): Inherit from ChildDeathReader. (StapLauncher): New class for passing arguments to inferior stap process and checking for its demise. (main): Move launching logic to StapLauncher.
* Pass command line arguments on to stapTim Moore2009-09-301-3/+6
| | | | * grapher/grapher.cxx (main): Pass program arguments to stap
* cleanup of graph data dialogTim Moore2009-09-301-3/+16
| | | | | * grapher/GraphWidget.cxx (on_button_release_event, onDataAdd): tweaks for graph data dialog
* grapher: Handle the death of the child stap processTim Moore2009-09-303-11/+116
| | | | | | * grapher/grapher.c (main): Set up signal and i/o handlers to detect death of child. * grapher/StapParser.cxx (errIoCallback): New method
* Create lists of graph data to chooseTim Moore2009-09-302-0/+17
|
* Add graph data chooser window, based on gladeTim Moore2009-09-306-40/+342
| | | | | | | | | | | | | * configure.ac: Test for libglademm * grapher/GraphWidget.hxx (DataModelColumns): new class (onDataDialogCancel, void onDataAdd, onDataRemove, onDataDialogOpen): new methods * grapher/GraphWidget.cxx: ditto; methods for the graph data dialog. * grapher/graph-dialog.glade: New file. * grapher/graph-dialog.gladep: New file. * grapher/Makefile.am (dist_pkgdata_DATA): add graph-dialog.glade to installation. * grapher/GraphWidget.cxx (GraphWidget constructor): Use PKGDATADIR
* more multiple graph fixesTim Moore2009-09-302-3/+9
| | | | | | * grapher/Graph.cxx (Graph constructor): set _drawX, _drawY * grapher/GraphWidget.cxx (addGraph): Fix graph layout (on_button_press_event): Fix test of play button in multiple graphs
* Draw multiple graphsTim Moore2009-09-304-8/+39
| | | | | | | | | | | | | | * grapher/Graph.cxx (Graph constructor): Initialize graph dimensions. (draw): Don't clear the drawing area. * grapher/GraphWidget.hxx (GraphWidget): Add dimensions and on_size_request() method. * grapher/GraphWidget.cxx (GraphWidget constructor): Initialize dimensions. (addGraph): New method. (on_size_request): New method to pass widget's size to parent widgets * grapher/grapher.cxx (GrapherWindow constructor): add "add graph" action. (addGraph): New method.
* Fixed grapher build problem caused by configure update.David Smith2009-09-242-6/+6
| | | | | | | | * grapher/Makefile.am: Updated gtkmm CFLAGS/LIBS variable name. * grapher/Makefile.in: Regenerated. * Makefile.in: Ditto. * doc/Makefile.in * doc/SystemTap_Tapset_Reference/Makefile.in
* Version bumps for the 1.0 releaseJosh Stone2009-09-221-56/+97
|
* Initialize CairoWidget origin of graphTim Moore2009-09-163-4/+8
| | | | | | | * grapher/Graph.hxx (Graph constructor): add origin arguments * grapher/Graph.cxx: ditto * grapher/GraphWidget.cxx (on_expose_event): Use CairoWidget origin to position graphs.
* Fix graph attribute parsing bugletTim Moore2009-09-161-2/+2
| | | | | * grapher/StapParser.cxx (findTaggedValue): Extract value substring after tag.
* Draw graphs inside a scrolled windowTim Moore2009-09-161-2/+5
| | | | | * grapher/grapher.cxx (GrapherWindow, GrapherWindow constructor): Add ScrolledWindow object and display it. Make GraphWidget its child.
* 2009-09-14 Dave Brolley <brolley@redhat.com>Dave Brolley2009-09-141-97/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * modsign.cxx (init_cert_db_path): Use 'system' call. (sign_module): Renamed to 'main'. This is now an independant program. Check for arguments. Return 1 on error. * buildrun.cxx (modsign.h): Don't #include it. (compile_pass): Don't sign the module. * main.cxx (main): Don't copy the module signature. * cache.cxx (add_to_cache): Don't cache the module signature. * Makefile.am (bin_PROGRAMS): Add stap-sign-module. (stap_SOURCES): Remove modsign.cxx and nsscommon.c. (stap_sign_module_SOURCES): New variable. (stap_sign_module_CPPFLAGS): New variable. (stap_sign_module_LDFLAGS): New variable. (stap_sign_module_LDADD): New variable. * stap-server (initialization): Initialize unprivileged. (parse_options): Handle --unprivileged. (create_response): Call stap-sign-module if --unprivileged was specified. * systemtap.spec: Add stap-sign-module to stap-server. * Makefile.in: Regenerated. * doc/Makefile.in: Regenerated. * doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated. * grapher/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * aclocal.m4: Likewise. * testsuite/aclocal.m4: Likewise. * configure: Likewise. * testsuite/configure: Likewise.
* elfutils build tweak: run nested configure with bash, add -fgnu89-inlineFrank Ch. Eigler2009-08-181-47/+87
| | | | | * configure.ac: Tweak --with-elfutils nested configure invocation. * rest of auto* files: regenerated with fedora-11 tools
* Do not use plain [] in help string in configure.acEugeniy Meshcheryakov2009-08-071-87/+47
| | | | This confuses Debian's automake.
* Fix missing strlen compile error.Stan Cox2009-08-061-0/+1
| | | | StapParser.cxx (#include cstring): New.
* Fix grapher compilation warnings from rpm buildJosh Stone2009-08-042-10/+3
| | | | | | * grapher/Graph.cxx (Graph::Graph): Initialize in declaration order. * grapher/GraphWidget.cxx (GraphWidget::on_expose_event): Remove several unused local variables.
* Rename and package the grapherJosh Stone2009-08-042-79/+80
| | | | | | * grapher/Makefile.am: Rename the binary to stapgraph. * grapher/Makefile.in: Regen. * systemtap.spec: Add a -grapher subpackage.
* Add #include and casting to allow compilations of grapher on RHEL5.William Cohen2009-08-042-2/+3
|
* Support for presenting multiple graphsTim Moore2009-07-289-432/+616
| | | | | | | | | | | | | | | | | | | | * 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.
* grapher fixupsTim Moore2009-07-281-1/+1
| | | | * grapher/grapher.cxx (main): Fix problems with call to execlp.
* Templatize GraphDataTim Moore2009-07-285-68/+143
| | | | | | | | | | | | | | | | * 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
* run stap from grapherTim Moore2009-07-281-2/+32
| | | | | * grapher/grapher.cxx (main): Start stap + script from program if supplied as an argument.
* Incorporate grapher widget in real applicationTim Moore2009-07-281-11/+78
| | | | | * grapher/grapher.cxx (GrapherWindow): New class. (main): Instantiate GrapherWindow.
* Add CSV syntax support to the grapherTim Moore2009-07-283-10/+78
| | | | | | * grapher/GraphData.hxx (CSVData): new class * grapher/GraphData.cxx (commaSplit): new function (ioCallback): handle CSV definition and data
* Refactor StapParser into its own filesTim Moore2009-07-285-90/+123
| | | | | | * grapher/StapParser.cxx: new file * grapher/StapParser.hxx: new file * grapher/grapher.cxx: Use external StapParser class.
* Tweaks to grapher axis drawingTim Moore2009-07-281-7/+15
| | | | | * grapher/GraphWidget.cxx (on_expose_event): Don't draw axis labels that would overlap others.
* PR10209: extend configury for --disable-translatorElliott Baron2009-06-051-4/+4
| | | | | | | | | | | | * 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.
* Suggest rpms to install using debuginfo-install.William Cohen2009-05-271-4/+7
| | | | | | | | | 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".
* Merge branch 'tapsets-cleanup'Josh Stone2009-05-151-12/+12
|\
| * Move dfwlpp into its own fileJosh Stone2009-05-121-12/+12
| | | | | | | | | | It's not a terribly clean split, but moving it helps reveals some of the knots that need to be untangled.
* | Initialize variables in GraphWidget::on_motion_notify_event().William Cohen2009-05-141-2/+2
|/
* Correct typo in BUILD_SERVER test in configure.ac.Dave Brolley2009-05-111-12/+12
|
* Check whether certutil as provided by nss-tools is installed.Mark Wielaard2009-05-081-0/+1
| | | | | | | | | | | * configure.ac: Add check for certuril, don't build nss stap server when not found. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * doc/Makefile.in: Likewise. * doc/SystemTap_Tapset_Reference/Makefile.in: Likewise. * grapher/Makefile.in: Likewise.
* Run autoreconfEugeniy Meshcheryakov2009-05-061-0/+1
|
* Run autoreconfEugeniy Meshcheryakov2009-05-051-13/+12
|
* Module signing and verification using a separate file for the module signature.Dave Brolley2009-05-041-10/+10
|
* Add grapher executable and doc generated files and dirs to .gitignore files.Mark Wielaard2009-04-261-0/+1
|