Skip to content

Conversation

@nealsid
Copy link
Contributor

@nealsid nealsid commented Sep 7, 2022

…etime of a function that needs it

  • Do not use volatile for variables that will not be modified in a way the compiler cannot detect

  • Make the buffer used for topologyEntry structures allocated and freed when topology is being built, rather than being allocated for the lifetime of the driver load

  • Change macOS TopologyEntry struct to use int rather than uint, which is consistent with the other platforms in this project, as well as macOS's functions.

  • Instead of detecting at run time how big of a buffer we will need when issuing a sysctl, always use 4 bytes, which is specified in the docs and examples in kernel source code (see /usr/include/sys/sysctl.h)

…etime of a function that needs it

- Do not use volatile for variables that will not be modified in a way the compiler cannot detect

- Make the buffer used for topologyEntry structures allocated and freed when topology is being built, rather than being allocated for the lifetime of the driver load

- Change macOS TopologyEntry struct to use int rather than uint, which is consistent with the other platforms in this project, as well as macOS's functions.

- Instead of detecting at run time how big of a buffer we will need when issuing a sysctl, always use 4 bytes, which is specified in the docs and examples in kernel source code (see /usr/include/sys/sysctl.h)
Copy link
Contributor

@opcm opcm left a comment

Choose a reason for hiding this comment

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

thanks!

@opcm opcm merged commit adce380 into intel:master Sep 8, 2022
@nealsid nealsid deleted the client-build-and-topology-structure-mismatch-build-topology-stack-allocation branch September 10, 2022 20:10
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.

2 participants