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 kernel mode multi-threaded test #3560

Merged
merged 1 commit into from
May 29, 2024

Conversation

dv-msft
Copy link
Collaborator

@dv-msft dv-msft commented May 20, 2024

Description

This PR fixes bugs in the existing kernel-mode multi-threaded stress test. Specifically:

  1. Ensure that the NetEbpfExt extension is restarted only if specified on the command line.
  2. Ensure that native programs are consistently marked as such.
  3. Ensure successful generation and loading of unique native program files where required.

Testing

Tested locally and via CI/CD runs on a private self-hosted runner.

Documentation

No doc changes.

Installation

No installer impact.

Fixes #3453

@dv-msft dv-msft changed the title (DRAFT PR - NOT FOR REVIEW) - Fixes for kernel mode multi-threaded tests Fixes for kernel mode multi-threaded test May 24, 2024
@dv-msft dv-msft marked this pull request as ready for review May 24, 2024 00:16
tests/stress/km/stress_tests_km.cpp Outdated Show resolved Hide resolved
tests/stress/km/stress_tests_km.cpp Outdated Show resolved Hide resolved
if (test_control_info.use_unique_native_programs && context_entry.role == thread_role_type::CREATOR) {

// Create unique native programs for 'creator' threads only.
_make_unique_file_copy(program_attribs.native_file_name, (compartment_id - 1));
context_entry.is_native_program = true;
context_entry.file_name =
Copy link
Member

Choose a reason for hiding this comment

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

Some reason why you aren't using the std::filesytem classes for paths etc?

@dv-msft dv-msft added this pull request to the merge queue May 29, 2024
Merged via the queue into microsoft:main with commit effcfdb May 29, 2024
84 of 86 checks passed
@dv-msft dv-msft deleted the 3453-km-mt-stress-fix branch May 29, 2024 17:33
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.

Workflow failed - km_mt_stress_tests
3 participants