Repository navigation
Conversation
CONFIG_EMB_WORKQ_STATS (off by default) completes KRN-WQ-011. emb_workq_get_stats() reports, per queue, the worst submit-to-start latency, the longest handler with its function and the deepest backlog. emb_workq_reset_stats() restarts the maxima. Both are thread and ISR safe, O(1), with API IDs 143 and 144. Times are kernel-clock ticks. Each work item gains a submit timestamp. A resubmission while the handler runs starts the latency of the run it queues, and flush markers are not counted. native-timeslice now also builds the option and runs the new conformance case, which was also checked under QEMU Cortex-M4 with the option set. A65 records the contract. Signed-off-by: teo1747 <motsoujunior17@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contains #42 and #43 as its base: merge them first, after which this diff shows only the statistics.
Completes KRN-WQ-011, whose trace records already existed (A52) but whose statistics did not.
CONFIG_EMB_WORKQ_STATSis off by default.emb_workq_get_stats()fillsemb_workq_stats_t:emb_workq_reset_stats()restarts the maxima; the pending maximum restarts from the items queued now.thread isrand O(1), with new API IDs 143 and 144 (registry regenerated).Evidence
workq_stats_record_depth_latency_and_longest_handler.native-timeslice, which now also builds this option.EMB_SET=EMB_WORKQ_STATS=y, where real-time slack applies.Docs
KRN-WQ-011, SPEC-006 §7, STATUS, CHANGELOG, the configuration guide and the tasks guide.