Re: [patch] Real-Time Preemption, -RT-2.6.9-mm1-V0

From: Rui Nuno Capela
Date: Tue Oct 26 2004 - 05:41:53 EST


Denis Vlasenko wrote:
>
> <shameless plug>
> Maybe this program will be useful. It is designed to give you
> overall system statistics without the need to scan entire /proc/NNN
> forest. Together with nice -20, it will hopefully not stall.
>
> Compiled with dietlibc. If you will have trouble compiling it,
> binary is attached too.
>
> Latest version is 0.9 but it seems I forgot it in my home box :(
</shameless plug>

Thanks for nmeter. I have changed a couple of little bits to build with
gcc-3.4 here (see diff attached).

Indeed, it says 0.7 as its version string. What's up on 0.9?
--
rncbc aka Rui Nuno Capela
rncbc@xxxxxxxxx

--- nmeter.c.orig 2004-10-26 10:01:00.579922368 +0100
+++ nmeter.c 2004-10-26 09:59:48.525876248 +0100
@@ -59,15 +59,15 @@
char outbuf[4096];
char *cur_outbuf = outbuf;

-extern inline void reset_outbuf() {
+inline void reset_outbuf() {
cur_outbuf = outbuf;
}

-extern inline int outbuf_count() {
+inline int outbuf_count() {
return cur_outbuf-outbuf;
}

-extern inline void print_outbuf() {
+inline void print_outbuf() {
if(cur_outbuf>outbuf) {
write(1, outbuf, cur_outbuf-outbuf);
cur_outbuf = outbuf;