From 60b9741658f42736f100c592eaeb7c18ac3fdadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann?= Date: Mon, 7 Mar 2005 19:52:47 +0000 Subject: [PATCH] Add note that you need to compile the module with the same compiler that MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mon Mar 7 14:47:09 2005 Søren Sandmann * README: Add note that you need to compile the module with the same compiler that compiled the kernel. --- ChangeLog | 5 +++++ README | 17 +++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3a5e9d9..faa3c767 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 7 14:47:09 2005 Søren Sandmann + + * README: Add note that you need to compile the module with + the same compiler that compiled the kernel. + Sun Mar 6 22:56:21 2005 Soeren Sandmann * sfile.c: Generate id's for objects and pointers. diff --git a/README b/README index a061b75f..cb6429f5 100644 --- a/README +++ b/README @@ -1,14 +1,23 @@ -This is a sampling profiler that uses a kernel module, sysprof-module, +Sysprof is a sampling profiler that uses a kernel module, sysprof-module.ko, to generate stacktraces which are then interpreted by the userspace program "sysprof". - There is no auto* stuff. Just type "make" and hope for the best -- You need gtk+ 2.4.0 or better. If you are using gtk+ 2.5 or newer +- You need gtk+ 2.4.0 or better. If you are using gtk+ 2.6 or newer you also need libglade cvs HEAD. -- You need a 2.6 kernel. On SMP kernels the module seems to crash the system - from time to time, so you might want to stick with UP kernels. +- You need a 2.6 kernel. On SMP kernels the module produces unreliable data. + +- The module must be compiled with the same compiler that compiled the + kernel it is going to be used with. For most systems that is just + the system compiler, but if you have upgraded your kernel it is + possible the one was compiled with a difference compiler. + + In that case, "insmod sysprof-module.ko" will produce this + error message: + + insmod: error inserting './sysprof-module.o': -1 Invalid module format - The programs you want to profile should have debugging symbols, or you won't get much usable information. On a Fedora Core system,