uadk: support querying device bandwidth utilization#744
Merged
Liulongfang merged 4 commits intoLinaro:developfrom Jan 19, 2026
Merged
uadk: support querying device bandwidth utilization#744Liulongfang merged 4 commits intoLinaro:developfrom
Liulongfang merged 4 commits intoLinaro:developfrom
Conversation
added 4 commits
January 8, 2026 20:57
When looking up the corresponding driver by algorithm type, since the driver does not save the algorithm type, it cannot be directly obtained. Therefore, the algorithm type should be saved during algorithm registration. Signed-off-by: Weili Qian <qianweili@huawei.com>
uadk adds API to support obtaining the current bandwidth utilization of a device. When the device driver creates the "dev_usage" file, users can obtain the current bandwidth utilization of the specified algorithm on the device by passing in the device and algorithm name to be queried. Signed-off-by: Weili Qian <qianweili@huawei.com>
uadk supports obtaining the bandwidth utilization of specified devices and algorithms through user-space drivers. After hardware resources are initialized, the bandwidth utilization can be directly obtained through the hardware mmio space, replacing the method of reading sysfs files and reducing system calls. Signed-off-by: Weili Qian <qianweili@huawei.com>
Supports obtaining the device's bandwidth utilization. For usage details, refer to "uadk_tool dfx --help". Signed-off-by: Weili Qian <qianweili@huawei.com>
|
lgtm |
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.
uadk supports obtaining the bandwidth utilization of specified devices and algorithms.