Hi there,
I was trying to use kernprof but unfortunately encountered a big problem
when I tried to patch the kernel in Redhat 8.0(Kernel version is
2.4.18-14). I attached the output above. The patch will stop everytime
at the point "File to patch" appears.
Any idea is greatly appreciated!
Thanks
yixin
1 out of 5 hunks FAILED -- saving rejects to file
arch/i386/kernel/apic.c.rej
patching file arch/i386/kernel/i386_ksyms.c
Hunk #1 succeeded at 172 (offset 8 lines).
patching file arch/i386/kernel/i8259.c
patching file arch/i386/kernel/irq.c
Hunk #1 succeeded at 1122 (offset 10 lines).
patching file arch/i386/kernel/semaphore.c
Hunk #2 FAILED at 183.
Hunk #3 succeeded at 199 (offset 4 lines).
Hunk #4 FAILED at 211.
Hunk #5 FAILED at 233.
Hunk #6 succeeded at 267 (offset 16 lines).
3 out of 6 hunks FAILED -- saving rejects to file
arch/i386/kernel/semaphore.c.rej
patching file arch/i386/kernel/smpboot.c
Hunk #1 succeeded at 971 (offset 4 lines).
Hunk #2 succeeded at 993 (offset 3 lines).
Hunk #3 succeeded at 1201 (offset 3 lines).
patching file arch/i386/kernel/time.c
Hunk #3 FAILED at 414.
1 out of 3 hunks FAILED -- saving rejects to file
arch/i386/kernel/time.c.rej
patching file arch/i386/lib/Makefile
patching file arch/i386/lib/mcount.S
can't find file to patch at input line 608
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -X /build4/hawkes/Build/ignore.dirs -Naur
linux-2.4.18/arch/ia64/config.in linux-2.4.18-profile/arch/ia64/config.in
|--- linux-2.4.18/arch/ia64/config.in Fri Nov 9 14:26:17 2001
|+++ linux-2.4.18-profile/arch/ia64/config.in Tue Feb 26 18:05:11 2002
--------------------------
File to patch:
|