Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 974073 - SAP 7.0: sblim-cmpi-base: wrong UserModeTime and KernelModeTime
SAP 7.0: sblim-cmpi-base: wrong UserModeTime and KernelModeTime
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sblim-cmpi-base (Show other bugs)
x86_64 Linux
high Severity high
: rc
: 7.0
Assigned To: Vitezslav Crhonek
Robin Hack
: FutureFeature
Depends On: 974071
Blocks: 1018952 1050219
  Show dependency treegraph
Reported: 2013-06-13 07:44 EDT by Henning Sackewitz
Modified: 2016-09-09 01:26 EDT (History)
7 users (show)

See Also:
Fixed In Version: sblim-cmpi-base-1.6.2-7.el7
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 974071
Last Closed: 2014-06-13 08:41:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Henning Sackewitz 2013-06-13 07:44:30 EDT
+++ 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.


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

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 2 Frank Danapfel 2014-01-08 02:37:28 EST
Removed RFE from title since this is really a bugfix and not a feature request
Comment 4 Ludek Smid 2014-06-13 08:41:36 EDT
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.
Comment 5 Alois Mahdal 2016-09-09 01:26:23 EDT
"Fixed In Version" field was clearly wrong (fedora build for a RHEL7 bug).  I'm assuming the version @rhack reviewed it with (I think "best guess" is better than invalid value for this field).

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