aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/tools/mpm_shell.py
Commit message (Collapse)AuthorAgeFilesLines
* MPM: add ability to run scripts to MPM shellLars Amsel2020-02-071-34/+83
| | | | | | | | | | | | | | | MPM shell now supports script execution. It utilizes the cmdqueue of Pythons cmd.Cmd class for this. The script to execute is a text file containing the commands one per line. The output decoration of MPM shell changed. Commands are decorated with ">" whereas responses use "<" at line start. Multiline responses are decorated in each line. Cleanup overwritten methods of cmd.Cmd to allow proper shutdow in interactive as well as in scripted mode. Improved pylint score.
* mpm: include the failed mpm_shell commandbidavis2020-01-061-1/+1
| | | | This commit changes an mpm_shell error message to include the command that failed when the mpm_shell does not have the claim token.
* mpm_shell: Multiprocessing instead of threading for claimer loopAlex Williams2018-12-171-53/+86
| | | | | | If we use threading, the claimer loop's thread won't get scheduled in a timely manner on n3xx. Using multiprocessing frees the claimer loop from using the same GIL and gives back timely reclaim calls.
* mpm: Update all license headersMartin Braun2018-02-191-2/+2
| | | | | - Fix typo in company name (missing 'a') - Updated SPDX license identifier to version 3.0
* mpm: Changed mpm_shell to support scripted useDerek Kozel2018-01-241-14/+16
|
* mpm: Harmonize all license headerMartin Braun2017-12-221-14/+3
| | | | Now uses SPDX headers everywhere.
* mpm: Add 'hijack' mode to mpm_shellMartin Braun2017-12-221-1/+42
|
* mpm: RPC methods now tell us if they need a claimMartin Braun2017-12-221-10/+24
| | | | | | On the RPC server side, we keep track of which methods require a claim token. MPM shell uses this info to automatically add claim tokens when required.
* mpm: Added mpm_shell.pyMartin Braun2017-12-221-0/+355
Was actually the old rpc_shell.py, was renamed and heavily refactored. Now includes claim logic and other fancy features.