Bug 974075 - SAP 5.10: sblim-cmpi-base: wrong UserModeTime and KernelModeTime
Summary: SAP 5.10: sblim-cmpi-base: wrong UserModeTime and KernelModeTime
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sblim
Version: 5.10
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 5.11
Assignee: Vitezslav Crhonek
QA Contact: Alois Mahdal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-13 11:45 UTC by Henning Sackewitz
Modified: 2016-08-08 13:15 UTC (History)
9 users (show)

Fixed In Version: sblim-1-50.el5
Doc Type: Bug Fix
Doc Text:
Clone Of: 974071
Environment:
Last Closed: 2014-09-16 00:31:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1201 0 normal SHIPPED_LIVE sblim bug fix update 2014-09-16 04:17:00 UTC

Description Henning Sackewitz 2013-06-13 11:45:27 UTC
+++ This bug was initially created as a clone of Bug #974071 +++

The values for UserModeTime and KernelModeTime in CIM class Linux_UnixProcess are incorrectly calculated.

OSBase_UnixProcess.c:

231 if ( (fpstat=fopen(cmd,"r")) != NULL ) {
232 fscanf(fpstat,"%s %s %s %s %s %s %s %s %s %s %s %s %s %s "
233 "%lld %lld %s %s %s %s %s %ld",
234 &umtime,&kmtime,&ctime );
235 fclose(fpstat);
236 (sptr)->kmtime = kmtime10;
237 (sptr)->umtime = umtime*10;

The code is scanning fields 15 and 16 from /proc/[pid]/stat but it should use fields 14 and 15 on current Linux kernels as documented in
/usr/src/linux/Documentation/filesystems/proc.txt.

As a result, KernelModeTime is used for UserModeTime, and Child User Time for KernelModeTime.

See https://sourceforge.net/p/sblim/bugs/2644/ for upstream bug fix.

Comment 1 Frank Danapfel 2014-01-08 07:34:00 UTC
Removed RFE from title since this is really a bugfix and not a feature request

Comment 2 Luca Miccini 2014-01-28 15:34:03 UTC
On behalf of SAP LinuxLab I confirm that there will be the necessary commitment to test the new packages.  
Luca Miccini
Red Hat partner TAM @ SAP LinuxLAB

Comment 5 RHEL Program Management 2014-01-29 12:08:47 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 11 errata-xmlrpc 2014-09-16 00:31:07 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2014-1201.html


Note You need to log in before you can comment on or make changes to this bug.