px4_work_queue: command line status output and shutdown empty queues

* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items
 * WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
This commit is contained in:
Daniel Agar
2019-10-02 12:23:17 -04:00
committed by GitHub
parent cc1d86bc0b
commit 26364d44c9
167 changed files with 582 additions and 274 deletions
+10
View File
@@ -291,6 +291,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "top once"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// ensure buzzer is disabled for the next test
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set CBRK_BUZZER 782097"' // disable buzzer
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "param set LED_RGB_MAXBRT 0"' // disable rgbled
@@ -351,6 +352,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
@@ -420,6 +422,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
@@ -490,6 +493,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
@@ -561,6 +565,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
@@ -632,6 +637,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// critmon
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "critmon_start; sleep 5; critmon_stop"'
// run tests
@@ -709,6 +715,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// irqinfo
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "irqinfo"'
// run tests
@@ -771,6 +778,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "top once"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
// sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`' // TODO: currently unusably slow
// ensure buzzer is disabled for the next test
@@ -847,6 +855,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-SEGGER_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-SEGGER_*`'
// ensure buzzer is disabled for the next test
@@ -916,6 +925,7 @@ pipeline {
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb status"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "uorb top -1"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "ver all"'
sh './Tools/HIL/run_nsh_cmd.py --device `find /dev/serial -name *usb-FTDI_*` --cmd "work_queue status"'
// run tests
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`'
// ensure buzzer is disabled for the next test
+2 -2
View File
@@ -148,8 +148,8 @@ if [[ $INSTALL_NUTTX == "true" ]]; then
# add user to dialout group (serial port access)
sudo usermod -a -G dialout $USER
# Remove modem manager (interferes with PX4 serial port/USB serial usage).
# Remove modem manager (interferes with PX4 serial port/USB serial usage).
sudo apt-get remove modemmanager -y
# arm-none-eabi-gcc
+1
View File
@@ -70,6 +70,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -97,6 +97,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -111,6 +111,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+1
View File
@@ -111,6 +111,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -55,5 +55,6 @@ px4_add_board(
param
top
ver
work_queue
)
+1
View File
@@ -102,6 +102,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -102,6 +102,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -67,6 +67,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -65,6 +65,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -66,5 +66,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
)
+1
View File
@@ -74,6 +74,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -72,6 +72,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -69,5 +69,6 @@ px4_add_board(
topic_listener
usb_connected
ver
work_queue
)
+1
View File
@@ -81,6 +81,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+1
View File
@@ -85,6 +85,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+1
View File
@@ -106,6 +106,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -101,6 +101,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -93,6 +93,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+2
View File
@@ -59,4 +59,6 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
)
+1
View File
@@ -52,5 +52,6 @@ px4_add_board(
reboot
top
ver
work_queue
)
+1
View File
@@ -55,5 +55,6 @@ px4_add_board(
param
top
ver
work_queue
)
+1
View File
@@ -109,6 +109,7 @@ px4_add_board(
tune_control
#usb_connected
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+2
View File
@@ -81,4 +81,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
)
+1
View File
@@ -104,6 +104,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+2
View File
@@ -80,4 +80,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
)
+2
View File
@@ -72,4 +72,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
)
+1
View File
@@ -104,6 +104,7 @@ px4_add_board(
#topic_listener
tune_control
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+1
View File
@@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -109,6 +109,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+1
View File
@@ -96,6 +96,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -99,6 +99,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -96,6 +96,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+1
View File
@@ -108,6 +108,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -108,6 +108,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+2
View File
@@ -84,4 +84,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
)
+1
View File
@@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+2
View File
@@ -92,4 +92,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
)
+2
View File
@@ -85,4 +85,6 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
)
+1
View File
@@ -108,6 +108,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -109,6 +109,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
#bottle_drop # OBC challenge
+1
View File
@@ -110,6 +110,7 @@ px4_add_board(
tune_control
usb_connected
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -66,6 +66,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -65,6 +65,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -69,6 +69,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge
+1
View File
@@ -70,6 +70,7 @@ px4_add_board(
topic_listener
tune_control
ver
work_queue
EXAMPLES
bottle_drop # OBC challenge

Some files were not shown because too many files have changed in this diff Show More