KEMBAR78
logging: add more settings to vm create begin / end events. by benhillis · Pull Request #13412 · microsoft/WSL · GitHub
Skip to content

Conversation

@benhillis
Copy link
Member

@benhillis benhillis commented Aug 20, 2025

While looking at some trace data I realized there are some additional VM settings that could be added to improve our diagnostic story. This PR adds the following to the createvm begin / end events:

  • EnableDebugShell
  • KernelModulesList
  • MaximumMemorySizeBytes
  • MaximumProcessorCount

@Copilot Copilot AI review requested due to automatic review settings August 20, 2025 22:27
@benhillis benhillis requested a review from a team as a code owner August 20, 2025 22:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@benhillis benhillis requested a review from Copilot August 20, 2025 23:53
Copilot

This comment was marked as outdated.

@benhillis benhillis force-pushed the user/benhill/log_max_processor_count branch from 0832c39 to 00157f5 Compare August 21, 2025 15:33
@benhillis benhillis changed the title minor: log the maximum processor count in vm create / end logging: add more settings to vm create begin / end events. Aug 21, 2025
@benhillis benhillis requested a review from Copilot August 21, 2025 16:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances VM creation event logging by adding four additional configuration settings to the trace data for better diagnostics. The changes include adding EnableDebugShell, KernelModulesList, MaximumMemorySizeBytes, and MaximumProcessorCount to the telemetry output.

  • Updated the CONFIG_TELEMETRY macro to include the new logging fields
  • Added a new T_STRING_VECTOR macro for logging vector collections as comma-separated strings
  • Fixed naming consistency for LoadKernelModulesPresence variable

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/windows/common/WslCoreConfig.h Updated telemetry macros and CONFIG_TELEMETRY definition to include new fields, fixed variable naming
src/windows/common/WslCoreConfig.cpp Updated variable references to match naming fix and made MaximumProcessorCount a stored field

@benhillis benhillis force-pushed the user/benhill/log_max_processor_count branch from faa12c5 to f7bc9fa Compare August 25, 2025 16:32
{
if (!e.empty())
{
kernelModules.emplace_back(e);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: we could maintain the std::move here to avoid copying e

@benhillis benhillis force-pushed the user/benhill/log_max_processor_count branch from f7bc9fa to 5663d3a Compare September 8, 2025 17:45
@benhillis benhillis merged commit 36c077b into master Sep 8, 2025
6 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.

2 participants