Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

px4_work_queue: command line status output and shutdown empty queues #12853

Merged
merged 8 commits into from
Oct 2, 2019

Conversation

dagar
Copy link
Member

@dagar dagar commented Aug 31, 2019

This PR updates the PX4 work queue to keep a list of attached WorkItems. This list is used to iterate all items to get an overall status of the work queues (tree view) and to stop any empty queues.

I've added a new work_queue systemcmd to get the status and potentially manually start/stop if we need it later (likely needs work).

image

@dagar dagar force-pushed the pr-wq_status branch 4 times, most recently from 81737ad to 32f2d22 Compare August 31, 2019 18:41
@dagar dagar changed the title WIP: work_queue status px4_work_queue: command line status output and shutdown empty queues Aug 31, 2019
@dagar dagar marked this pull request as ready for review August 31, 2019 19:32
@dagar dagar added this to the Release v1.10.0 milestone Aug 31, 2019
@dagar dagar requested review from julianoes and bkueng August 31, 2019 19:33
@dagar
Copy link
Member Author

dagar commented Aug 31, 2019

Adding this to the ulog additional data would be nice, but not immediately required.

I won't be offended if someone would like to improve on my printf tree here.

@dagar
Copy link
Member Author

dagar commented Aug 31, 2019

Removing the interval perf counters in each WorkItem driver/module saved a bit more than 1% cpu on an px4_fmu-v4 (generic quadcopter).

@dagar
Copy link
Member Author

dagar commented Aug 31, 2019

Limiting to ascii characters for better terminal portability.

image

image

@dagar
Copy link
Member Author

dagar commented Oct 1, 2019

Currently fitting in fmu-v2 flash again.

@dagar dagar requested a review from julianoes October 1, 2019 16:37
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@dagar dagar merged commit 26364d4 into master Oct 2, 2019
@dagar dagar deleted the pr-wq_status branch October 2, 2019 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants