Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KSystemStats
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • KSystemStats
  • Merge requests
  • !42

cpu: Account for offline processors when adding CPU objects

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Arjen Hiemstra requested to merge work/ahiemstra/offlinecpu into master Sep 29, 2022
  • Overview 2
  • Commits 1
  • Pipelines 4
  • Changes 4

Processors can be marked as offline. In that case, they will not be reported by /proc/cpuinfo . However, the processor ID in /proc/stat will account for the missing processor. In that case, we end up trying to perform an out of bounds read on the vector of CPU objects.

To account for missing processors, store the CPU objects in a hash rather than a vector so that we can store them based on the actual processor ID. In addition, rework the naming so we report a more proper core name if cores are offline.

BUG: 459130

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/ahiemstra/offlinecpu