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

Enums and flags #3

Open
amezin opened this issue Oct 8, 2019 · 1 comment
Open

Enums and flags #3

amezin opened this issue Oct 8, 2019 · 1 comment

Comments

@amezin
Copy link
Owner

amezin commented Oct 8, 2019

Some values are bitfields or enumerations (effectively, but all constants are defined as preprocessor definitions).

Scanning the code for bitwise ands/ors and comparisons of struct fields and these constants should give possible enum values or flags. Then raw ctypes structs (generated by ctypeslib) could be somehow decorated with this information (substitute the field in fields with new enum/flag field?)

@fred41
Copy link

fred41 commented Nov 12, 2019

Hello amezin,
just want to say many thanks for this incredible useful tool. I use it a lot while debugging amdgpu powerplay issues and optimizing performance/powerconsumption.
Keep up your great work!

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

No branches or pull requests

2 participants