kernel profiling in 2.1 ?

Thomas Bogendoerfer (tsbogend@alpha.franken.de)
Sun, 17 May 1998 13:21:47 +0200


I'm trying to find out, why every 2.1.x x > 72 kernel feels sluggish on
my Alpha Noname. To get an idea where the problem could be, I enabled
kernel profiling. But after fixing one bug in the kernel and serveral
bugs in readprofile I've noticed that /proc/profile contains only zeroes
besides the step value. After grepping through the kernel source it looks
to me like there ins't any kernel profiling in 2.1.101. Is this true or
did I miss something ?

Thomas.

PS: Here is a fix for the one kernel bug:

Index: root.c
===================================================================
RCS file: /usr/src/cvs/linux/fs/proc/root.c,v
retrieving revision 1.1.1.32
diff -u -r1.1.1.32 root.c
--- root.c 1998/05/11 19:05:15 1.1.1.32
+++ root.c 1998/05/17 10:13:31
@@ -684,7 +684,7 @@

if (prof_shift) {
proc_register(&proc_root, &proc_root_profile);
- proc_root_profile.size = (1+prof_len) * sizeof(unsigned long);
+ proc_root_profile.size = (1+prof_len) * sizeof(unsigned int);
}

proc_tty_init();

-- 
See, you not only have to be a good coder to create a system like Linux,
you have to be a sneaky bastard too ;-)
                   [Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu