Bug 2105814

Summary: [s390x] memstrack does not tracking memory allocation details related to modules.
Product: Red Hat Enterprise Linux 9 Reporter: rcheerla
Component: memstrackAssignee: ltao
Status: CLOSED ERRATA QA Contact: Li Wang <liwan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.1CC: chuhu, liwan
Target Milestone: rcKeywords: Reproducer, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: memstrack-0.2.4-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:35:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description rcheerla 2022-07-10 18:21:21 UTC
Description of problem: On s389x arch, memstrack tool failed to track the memory allocation details of modules. 


Version-Release number of selected component (if applicable):

Kernel version : 5.14.0-125.kpq0.el9.s390x
memstrack      : memstrack-0.2.3-2.el9.s390x


How reproducible: Always.


Steps to Reproduce:

1. Run below command on rhel9 s390x system.
   $ memstrack --notui --report module_summary,module_top,task_top --output report_result.txt
   $ modprobe ext4   <-- run it from another terminal 

Actual results:

cat report_result.txt
~~~~~~~~~~~~~~~~~~~~~~~~~~

======== Report format module_summary: ========
Module  using 0.0MB (0 pages), peak allocation 0.0MB (0 pages)
Module vfio_iommu_type1 using 0.0MB (0 pages), peak allocation 0.0MB (0 pages)
Module xfs using 0.0MB (0 pages), peak allocation 0.0MB (0 pages)
======== Report format module_summary END ========

======== Report format module_top: ========
Top stack usage of module :
  (null) Pages: 0 (peak: 0)
Top stack usage of module vfio_iommu_type1:
  (null) Pages: 0 (peak: 0)
Top stack usage of module xfs:
  (null) Pages: 0 (peak: 0)
======== Report format module_top END ========

======== Report format task_top: ========
======== Report format task_top END ========

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expected results:

It should track and display the stack information. 

Additional info: It is working find in x86_64 and ppc64le arch.

Comment 8 errata-xmlrpc 2022-11-15 10:35:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (memstrack bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8199