lkml.org 
[lkml]   [2004]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: latency.c [was: Re: 2.6.9-rc1-mm1]
Date
On Wednesday 08 of September 2004 10:12, Rick Lindsley wrote:
> I've fiddled a bit with both the latency.c programs. I've added some
> options to them etc. In particular, now you can specify a program
> to run and monitor instead of a pid, which is handy if you need to
> monitor processes that exit quickly. Everything is documented in
> the sources (attached). I thought you might find this useful. :-)
>
> Thank you much! yes, that will make it more useful. I'll add it to my
> backlog and see if I can't get it out to the web page this week.

Great! There is a missing #include in my sources which produces a misleading
warning. Also, I think that the hint about latency.c working only with
versions 4 and 5 of schedstat is no longer valid. :-)

Please, apply:

--- old/latency-v10.c 2004-09-08 13:48:37.176519744 +0200
+++ latency-v10.c 2004-09-08 13:55:01.956024368 +0200
@@ -7,9 +7,6 @@
* it on a kernel that does not have the schedstat patch compiled in
* will cause it to happily produce bizarre results.
*
- * Note too that this is known to work only with versions 4 and 5
- * of the schedstat patch, for similar reasons.
- *
* This currently monitors only one pid at a time but could easily
* be modified to do more.
*/
@@ -28,6 +25,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
+#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <string.h>
Greets,
RJW

--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.093 / U:0.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site