lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.63.0610270440500.21448@honbori.ifi.uio.no>
Date:	Fri, 27 Oct 2006 05:18:17 +0200 (CEST)
From:	Martin Tostrup Setek <martitse@...dent.matnat.uio.no>
To:	nagar@...son.ibm.com
cc:	linux-kernel@...r.kernel.org
Subject: [PATCH: 2.6.18.1] delayacct: cpu_count in taskstats updated correctly

from: Martin T. Setek <martitse@....uio.no>

cpu_count in struct taskstats should be the same as the corresponding 
(third) value found in /proc/<pid>/schedstat
Signed-off-by: <martitse@....uio.no>
---
Index: linux-2.6.18.1/kernel/delayacct.c
===================================================================
--- linux-2.6.18.1.orig/kernel/delayacct.c
+++ linux-2.6.18.1/kernel/delayacct.c
@@ -124,7 +124,7 @@ int __delayacct_add_tsk(struct taskstats
  	t2 = tsk->sched_info.run_delay;
  	t3 = tsk->sched_info.cpu_time;

-	d->cpu_count += t1;
+	d->cpu_count = t1;

  	jiffies_to_timespec(t2, &ts);
  	tmp = (s64)d->cpu_delay_total + timespec_to_ns(&ts);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ