aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* test_klippy: Add option to not remove temporary filesKevin O'Connor2018-06-301-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add support for testing klippy with multi-mcu configsKevin O'Connor2018-06-291-11/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add a build test case for the PRUKevin O'Connor2018-06-281-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Build pru gcc in travis-ci scripts and then cache it for later useKevin O'Connor2018-06-281-4/+26
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Collect travis build files travis build specific directoriesKevin O'Connor2018-06-282-10/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add a whitespace check to the travis buildKevin O'Connor2018-06-282-0/+74
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add installation script for CentOS (#367)pyr0ball2018-06-191-0/+101
| | | | | | The purpose of this PR is to add an installation script to klipper for use on Centos. Several packages names are different from debian based installs, and the system service is handled via systemd rather than LSB. Signed-off-by: Alan Weinstock <pyroballpcs@gmail.com>
* test: Try to cache gcc arm download during travis-ci buildsKevin O'Connor2018-06-181-2/+10
| | | | | | | The gcc arm download sometimes fails - try to cache it within the travis-ci system to prevent that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test_klippy: Default to only showing log information on an errorKevin O'Connor2018-06-171-11/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add additional explicit dependencies to install-octopi.shKevin O'Connor2018-06-171-1/+2
| | | | | | | | Add virtualenv, build-essential, gcc-arm-none-eabi, and binutils-arm-none-eabi packages - just in case they aren't already installed. Reported by @AxMod3DPrint. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test_klippy: Use verbose output when running klippyKevin O'Connor2018-06-171-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add basic klippy regression testsKevin O'Connor2018-06-162-2/+139
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Detect clock field even if it is last field on lineKevin O'Connor2018-06-131-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add python-dev dependency to install-octopi.shKevin O'Connor2018-06-091-1/+1
| | | | | | | The python-dev package is usually already installed, but there's no harm in stating it explicitly. Reported by @yschroeder. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Make check for stats prefixes more robustKevin O'Connor2018-05-232-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add stm32flash to octopi-install.sh package listKevin O'Connor2018-04-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepstats: Add documentation clarificationKevin O'Connor2018-03-231-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Use git describe --alwaysKevin O'Connor2018-02-261-1/+1
| | | | | | | | Add --always flag to "git describe" command to get a build identifier even if one checks out the repo with a depth parameter that prunes out the last tagged version. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add travis_fold markers to build outputKevin O'Connor2018-02-261-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Update travis build to include a basic klippy host testKevin O'Connor2018-02-262-0/+73
| | | | | | | | | | | | | | | | | Move the travis installation steps from the travis-build.sh script to a new script (scripts/travis-install.sh). Move the travis-build.sh script to the scripts/ directory as well. The data dictionaries built in the compile tests are useful during host software testing, so run all the compile tests sequentially in a single VM and save the data dictionaries after each build. Also, build all the config files found in the test/configs/ directory. Create the python virtualenv environment during the install phase and invoke the klippy.py host software in the build phase to perform a basic host software sanity check. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Support selecting an mcu to graph from the command-lineKevin O'Connor2018-02-191-13/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Set size on frequency graphKevin O'Connor2018-02-181-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avrsim: Rework pacing mechanismKevin O'Connor2018-02-051-13/+11
| | | | | | Rework the pacing mechanism to make it more stable. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix multi-mcu parsing with reordered statsKevin O'Connor2018-02-031-1/+7
| | | | | | | | The mcu stats (that contain a prefix) may occur before some other stats - make sure to only apply the stats prefix to those stats that need it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix for print_stall detectionKevin O'Connor2018-01-281-5/+5
| | | | | | | The print_stall logic could cause large portions of the graph to show up as 100% host utilized. Rework the logic to avoid that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Fix error in config file name printKevin O'Connor2018-01-281-1/+1
| | | | | | Fix typo causing an error during the printing of the config file name. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Better handle the case of a missing config sectionKevin O'Connor2018-01-211-4/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Use alpha transparency when plotting the statsKevin O'Connor2018-01-141-9/+7
| | | | | | | | | | | | | Use an alpha transparency on each of the stats, so that it is possible to see how the values overlap. Also, always enable the "awake time" stat - just use a lower alpha transparency for it. Also, explicitly set the graph size as some version of matplotlib have a different default. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix filtering of normal buffer_time runoff statsKevin O'Connor2018-01-141-19/+25
| | | | | | | Update the mechanism to filter out cases where buffer_time is below MAXBUFFER so that it works with the statistics currently generated. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Fix parsing of "is_shutdown" messagesKevin O'Connor2018-01-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Add support for extracting shutdown info on multiple mcusKevin O'Connor2018-01-021-38/+70
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Add support for generating a graph of mcu frequencyKevin O'Connor2017-12-301-4/+53
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Use a smaller font in the graph legendKevin O'Connor2017-12-301-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix case where an Xwindows display may not be availableKevin O'Connor2017-12-301-5/+6
| | | | | | | Matplotlib will try to open a display by default - tell it not to do that so that it can run in batch mode on headless machines. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Fix handling of messages with retransmitsKevin O'Connor2017-12-291-1/+2
| | | | | | | Properly handle the case where the original sequence number of a message is not known. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* build: Add gcc and binutils version to mcu data dictionaryKevin O'Connor2017-12-211-6/+43
| | | | | | | | Store the gcc and binutils versions used in the compilation of the firmware in the firmware data dictionary. Forward that information to the log so it is available during debugging. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Update file commentKevin O'Connor2017-12-181-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Rename extractconfig.py to logextract.py and add shutdown parsingKevin O'Connor2017-12-162-56/+259
| | | | | | | | | Add initial support for extracting out shutdown information from a klippy.log file. The shutdown dump will be reordered into the sequence that they occurred, and timestamps/sequence numbers in the mcu message dump will be expanded. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extractconfig: Add helper script that extracts config files from a logKevin O'Connor2017-12-061-0/+56
| | | | | | | Add a helper script that can read a klippy.log file and extract the printer.cfg files from it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix graphing scriptKevin O'Connor2017-10-291-4/+6
| | | | | | | | Update the graphstats.py graphing script so that it works with recent stats changes - the stats can now contain groups that end with a ':' and the print_time is no longer reset to zero on a new print. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Force load the ADC module during PRU startupKevin O'Connor2017-10-181-0/+3
| | | | | | | | Make sure the ADC module gets loaded during startup - it's normally loaded by the cape manager eeprom, but there's no harm in requesting it explicitly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Update start script to always unbind the PRU before binding itKevin O'Connor2017-10-051-1/+4
| | | | | | | | It appears some versions of Debian will load the PRU with firmware on boot, so make sure to always deactivate the PRU before attempting to activate it with new firmware. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Update installation and flash scriptsKevin O'Connor2017-09-204-29/+122
| | | | | | | | | Update the scripts used to install and "flash" the pru micro-controller code. Also, add a "flash" script for the linux micro-controller code. This makes it easier to install Klipper on a Beaglebone board that uses a Replicape. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Increase maximum expected task durationKevin O'Connor2017-08-091-1/+2
| | | | | | | | | Now that tasks are only run when needed it's common for there to be a larger variation in task execution time. When graphing load, consider a 99-percentile task duration of 2.5ms to be 100% loaded (up from 1ms). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix so that older files (predating mcu_awake) still workKevin O'Connor2017-07-211-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Support graphing "mcu_awake" statisticKevin O'Connor2017-07-191-2/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Add documentation and install scripts for running on the PRUKevin O'Connor2017-07-052-0/+101
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: Add support for "make flash" ruleKevin O'Connor2017-07-051-0/+30
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sched: Pass shutdown reason code via longjmp() parameterKevin O'Connor2017-07-041-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Export static_strings from mcu to host as a dictionaryKevin O'Connor2017-07-021-1/+2
| | | | | | Export the static strings as a dictionary instead of as a list. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>