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

Bluetooth: BAP: Shell: Improve recv statistics #59386

Merged
merged 2 commits into from
Jun 30, 2023

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Jun 19, 2023

Add more information when we print the recv every 100th packet, and remove all per-recv printing.

This also resets all information on stream start. This does, however, no properly support multiple streams.

@larsgk
Copy link
Contributor

larsgk commented Jun 27, 2023

We should keep track of all the places that needs to be changed for multi stream support ;)

larsgk
larsgk previously approved these changes Jun 27, 2023
lost_pkts++;
}

/* TODO: Make it possible to only print every X packets, and make X settable by the shell */
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like a good idea to make it configurable. Also it seems like a fairly small change. Could this be added in the PR? otherwise LGTM

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it makes sense to add to this PR :)

@Thalley
Copy link
Collaborator Author

Thalley commented Jun 27, 2023

We should keep track of all the places that needs to be changed for multi stream support ;)

Yeah, it's getting increasingly difficult :)

Add more information when we print the recv every 100th
packet, and remove all per-recv printing.

This also resets all information on stream start. This does,
however, no properly support multiple streams.

Signed-off-by: Emil Gydesen <[email protected]>
The internval of how often we report
receive stats can now be configured via the cmd_recv_stats
command.

Signed-off-by: Emil Gydesen <[email protected]>
@carlescufi carlescufi merged commit c6632d6 into zephyrproject-rtos:main Jun 30, 2023
17 checks passed
@Thalley Thalley deleted the bap_recv_stats branch June 30, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants