pt-summary errors out with "STATUS_THP_SYSTEM: unbound variable"

Description

In lib/bash/report_system_info.sh

Variable STATUS_THP_SYSTEM is only set when file /sys/kernel/mm/transparent_hugepage/enabled exists. So on those system (e.g. Xen hypervisor kernels) that doesn’t have this file, it errors out with STATUS_THP_SYSTEM: unbound variable (because set -u is set)

Environment

None

Activity

Aaditya Dubey August 6, 2024 at 2:41 PM

Hi

Thank you for the report and contribution.

Jason Ng August 5, 2024 at 7:23 PM

Jason Ng August 5, 2024 at 7:08 PM

Example output:

Done

Details

Assignee

Reporter

Priority

Affects versions

Fix versions

Needs QA

Created August 5, 2024 at 7:05 PM
Updated December 23, 2024 at 1:24 PM
Resolved December 19, 2024 at 2:37 PM