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

i2c_driver should use a counted ringbuf #1660

Merged
merged 2 commits into from
Mar 15, 2024
Merged

i2c_driver should use a counted ringbuf #1660

merged 2 commits into from
Mar 15, 2024

Conversation

bcantrill
Copy link
Collaborator

No description provided.

Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

Looks good to me!

We might want to add #[count(children)] to Trace::RepeatedStart so that true and false entries are counted separately?

@bcantrill
Copy link
Collaborator Author

Looks good to me!

We might want to add #[count(children)] to Trace::RepeatedStart so that true and false entries are counted separately?

We can spare the 4 bytes! cargo xtask sizes before (for Gimlet):

i2c_driver           flash   16152   16384   16384
                     ram     4048    4096    4096

And after the count(children) for Trace::RepeatedStart:

i2c_driver           flash   16228   16384   16384
                     ram     4052    4096    4096

@bcantrill bcantrill marked this pull request as ready for review March 15, 2024 20:01
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

Looks good to me!

"ringbuf-disabled",
]

ringbuf-disabled = ["ringbuf/disabled", "ringbuf/counters-disabled"]
panic-messages = ["userlib/panic-messages"]
no-ipc-counters = ["idol/no-counters"]
Copy link
Member

Choose a reason for hiding this comment

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

It occurs to me that, since some of the target features disable ringbufs and counters, we should maybe just have the features for those targets also disable IPC counters, rather than explicitly setting the no-ipc-counters feature in the app.toml for those targets...but that's something to do separately.

@bcantrill bcantrill merged commit ff97115 into master Mar 15, 2024
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants