Commit graph

9 commits

Author SHA1 Message Date
Dewey Garrett
23dcacb35e latency-histogram: more info in error message
Expand error message to show bogus variance value.

Using a mis-configured (non-realtime?) kernel resulted
in error message that occurs for unrealistic negative variance
calculation.

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2016-10-05 15:20:47 -07:00
Dewey Garrett
74c09b68a7 latency-histogram: include min,max,stddev
Also:
  When a bin had only one count, it was not
  showing when using y axis logscale -- so alter
  bin value from 1 to 1.1 to appear as a pip
  above the yaxis 1E0 line.

  Rearrange documenting lines for better fit with --nobase

Suggested by Peter Wallace
Thanks to jepler for rtapi_math64 with rtapi_div_u64

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-22 07:16:25 -07:00
Dewey Garrett
cb7c1ee950 latency-histogram: show linuxcnc version
also update latency-histogram.png to show field names on top two lines

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-16 11:00:34 -07:00
Dewey Garrett
ffd212ccde Latency_Test.txt: describe other latency utils
latency-plot, latency-histogram

also: remove internal versioning in latency-histogram

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-14 17:01:08 -07:00
Sebastian Kuzminsky
37f73ab5f0 Merge origin/2.6 into 2.7 (using imerge) 2014-12-08 23:25:51 -07:00
Sebastian Kuzminsky
8172042d8c latency-histogram: clean up on ^C
Catch SIGINT (^C on the keyboard) and call the cleanup function to stop
realtime and unload kernel modules (instead of just exiting and leaving
things set up).

Since Tcl doesn't support signal handling natively we need to use Extended
Tcl, so depend on that...

Thanks to Peter Wallace for the bug report.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2014-12-08 20:08:45 -07:00
Dewey Garrett
3a0e07da83 Application menu fixes
Remove latency-plot as an Application menu item as it doesn't work for
a system which has _only_ a RIP build because the environment for
execution of commands from the Application menu is limited.
(unaware of linuxcnc RIP vars, for example, package require Hal fails)

Provide an alternative point-and-click access for latency-plot,
latency-histogram:
  Since demo scripts in configs/apps/ are invoked from the main script
  (scripts/linuxcnc) where more environemntal vars are available
  these programs are modifed to work for a system with only a RIP build.

also:
  For RIP only system: make configs/apps/xhc-hb04 demos work
  Renaming for variable EMC2_SCRIPT
  Improve pyvcp_demo exit handling
  linuxcnc_info use editor search
  app scripts: prepend auto_path (RIP, gui usage)

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-09-28 16:18:52 -07:00
Jeff Epler
3beb85d3b8 latency-histogram: Use getconf for ncpus
The old /proc-parsing code is wrong on ARM systems, for whatever reason.
This is right everywhere I checked.

getconf is in libc-bin, so it should be available on all Linux.  (In fact,
getconf is specified by POSIX, but _NPROCESSORS_ONLN is a Linux extension.
Still, this is no less portable than grepping /proc)
2014-08-05 11:46:58 -05:00
Dewey Garrett
ef7d8bf0d0 configs/apps: new directory and .demo support
A new file type (.demo) in the configs tree is supported by the linuxcnc
script and the configuration selector (pickconfig.tcl).  A .demo file
must be executable and is typically implemented as a shell script that
invokes an application with appropriate parameters.

This facility makes it possible to demonstrate apps related to linuxcnc
using pickconfig without starting linuxcnc or requiring a complete ini
file.

Thanks to Chris Morley for suggestion

Details:
    Modify pickconfig to support .demo files
       Use noforcecopy for .demo files which should not be copied to
       a user dir
    Provide .demo apps for halrun,info,parport,xhc-hb04
    Provide .demo apps for gladevcp,pyvcp
    New script: linuxcnc_var and removal of several scripts/*.in.
    Rename latency scripts for consistency (and reduce merge overwrites).
    Remove latencyplot from menu.
    Moved gladevcp demo apps from root/gladevcp to configs/apps/gladevcp
       The root/gladevcp/ examples were orphans and didn't work with
          the configuration selector
       Change .py files so persistent files are named .save instead of
          .ini to avoid conflict with .ini files which the configuration
          selector presumes are working configs.
       Rebranding in some py files
       Some clarifications within copied README files
       Consolidate by-widgets dir
    Update docs
       New doc for configuration selector (needs formatting)
       Update for configs tree rearrangement
    Rename 2 non working sim .ini files to .ini.notworking
2014-03-22 06:13:56 -07:00
Renamed from scripts/latencyhistogram.in (Browse further)