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

Fixes for recently merged helpers #79

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

brenns10
Copy link
Member

@brenns10 brenns10 commented Apr 2, 2024

The virtutil module contained some test failures:

  • UEK4 does not contain the cpuhp_state variable, handle it gracefully
  • UEK6 CTF seems to omit the type for one variable, causing a KeyError. This is definitely a CTF bug (and from my initial investigation, appears to be a bug in CTF generation not the drgn CTF code). Work around it here to ensure tests pass.

The net module was missing some changes that had been applied as part of the code review, introduce them here.

brenns10 added 2 commits April 2, 2024 10:44
The cpuhp_state variable doesn't exist in UEK4 - this is fine, just
ignore it. Strangely, dump_stack_arch_desc_str doesn't seem to exist on
UEK6 CTF vmcores. This is almost certainly a CTF generation issue, since
it is present on UEK7 and UEK5 vmcores. Fortunately, the type is
simple (char[128]) and unlikely to change. For now, it can be hard
coded.

Signed-off-by: Stephen Brennan <[email protected]>
This patch was provided by Praveen to fix an issue in the "net" module.
It is lightly edited to fix formatting issues detected by pre-commit.

Signed-off-by: Stephen Brennan <[email protected]>
Authored-by: Praveen Kumar Kannoju <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 2, 2024
biger410
biger410 previously approved these changes Apr 2, 2024
Copy link
Member

@biger410 biger410 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

When 5-level paging is enabled, VMALLOC_SIZE_TB is much larger (see
pgtable_64_types.h as cited in the code). This fixes test failures with
CTF on live kernels (since this is the only way that we can compare
against the real /proc/meminfo).

Sadly, Gitlab is not currently running live CTF tests, so I only found
this during RPM release prep for drgn. CTF testing is definitely
possible for the heavy VM tests, all that is necessary is to get it up
and running. This helps reveal the need for it.

Signed-off-by: Stephen Brennan <[email protected]>
@brenns10
Copy link
Member Author

brenns10 commented Apr 2, 2024

Added one more fix for VmallocTotal with 5-level paging.

@brenns10 brenns10 merged commit 201b689 into oracle-samples:main Apr 2, 2024
5 checks passed
@brenns10 brenns10 deleted the fix_tests branch April 3, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants