From 8e4696a4a1703a7ccc1297c51849e02bb73ba34b Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann?= Date: Sun, 19 Jun 2005 19:43:02 +0000 Subject: [PATCH] Add version information MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sun Jun 19 15:39:50 2005 Søren Sandmann * sysprof.c (on_about_activated): Add version information * configure.ac: Bump version to 0.91 * README: Updates --- ChangeLog | 10 ++++++++ README | 67 ++++++++++++++++++++++++++++++++++++++----------- TODO | 6 ++--- configure.ac | 2 +- module/sysprof-module.c | 2 +- sysprof.c | 1 + 6 files changed, 69 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61ed202..60b495e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Sun Jun 19 15:42:34 2005 Søren Sandmann + + * module/sysprof-module.c (SAMPLES_PER_SECOND): Set to 200. + + * sysprof.c (on_about_activated): Add version information + + * configure.ac: Bump version to 0.91 + + * README: Updates + Sat Jun 18 22:45:04 2005 Søren Sandmann * TODO: Updates diff --git a/README b/README index 95b1b1a..a52b77c 100644 --- a/README +++ b/README @@ -1,33 +1,70 @@ -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". +Sysprof is a sampling profiler that uses a kernel module to generate +stacktraces which are then interpreted by the userspace program +"sysprof". -See http://www.daimi.au.dk/~sandmann/sysprof/ for more information +See the Sysprof homepage: -- You need gtk+ 2.6.0 or better. + http://www.daimi.au.dk/~sandmann/sysprof/ -- You need at least Linux 2.6.11 +for more information -- 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 different compiler. +Please mail bug reports to - In that case, "insmod sysprof-module.ko" will produce this + Soren Sandmann (sandmann@daimi.au.dk) + +Also information about whether it works or doesn't work on your distribution +would be appreciated. + + + + +Requirements: + +- A Linux kernel version 2.6.11 or newer is required. + Unlike Sysprof 0.9, version 0.91 should work fine on SMP systems. + +- GTK+ 2.6.0 or newer is required + + + +Compiling: + +- Sysprof must be compiled with the same compiler that compiled the + kernel it is going to be used with. Usually this is just the the + system compiler, but if you have upgraded your kernel it is + possible that the new kernel was compiled with a different compiler + + In that case, "modprobe sysprof-module" will produce this error message: insmod: error inserting './sysprof-module.o': -1 Invalid module format + + +Debugging symbols + - The programs you want to profile should have debugging symbols, or you won't get much usable information. On a Fedora Core system, - installing the relevant -debuginfo packages should do the trick. + installing the relevant -debuginfo package should be sufficient. + -- To get usable data on the X server: +- X server. + + The X server as shipped by most distributions uses its own home-rolled + module loading system and Sysprof has no way to deal with that, so if you + run sysprof with your normal X serverr you won't get any information about + how time is spent inside the X server. + + To fix this you have to compile your own X server: (1) Compile the X server to use ".so" modules: - Uncomment the line "MakeDllModules Yes" in - xc/config/cf/xorgsite.def + xc/config/cf/xorgsite.def. + + If you are compiling the CVS version of the X server + (the one that will eventually become 7.0), then this is + already the default. - "make World" @@ -49,6 +86,8 @@ See http://www.daimi.au.dk/~sandmann/sysprof/ for more information you why, but then I'd have to kill you. + + Credits: Diana Fong for the icon Kristian Høgsberg for the first port to the 2.6 kernel. diff --git a/TODO b/TODO index 000261c..27fb7b7 100644 --- a/TODO +++ b/TODO @@ -4,9 +4,6 @@ Before 1.0: - Find out what distributions it actually works on (ask for sucess/failure-stories in 0.9.x releases) - - Check the kernel we are building against, if it is SMP or - less than 2.6.11, print a warning and suggest upgrading. - - After 1.0: - Announce on news.gnome.org - Announce on Gnomefiles @@ -361,6 +358,9 @@ Later: DONE: +* Check the kernel we are building against, if it is SMP or + less than 2.6.11, print a warning and suggest upgrading. + * Timer interrupt based * Interface diff --git a/configure.ac b/configure.ac index bca61a9..1382145 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ(2.54) -AC_INIT([sysprof], [0.9]) +AC_INIT([sysprof], [0.91]) AC_CONFIG_SRCDIR(sysprof.glade) AM_INIT_AUTOMAKE(no-define) diff --git a/module/sysprof-module.c b/module/sysprof-module.c index 09fb8d7..3a6525f 100644 --- a/module/sysprof-module.c +++ b/module/sysprof-module.c @@ -42,7 +42,7 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR("Soeren Sandmann (sandmann@daimi.au.dk)"); -#define SAMPLES_PER_SECOND (256) +#define SAMPLES_PER_SECOND (200) #define INTERVAL (HZ / SAMPLES_PER_SECOND) #define N_TRACES 256 diff --git a/sysprof.c b/sysprof.c index 4ca3332..f7cc3af 100644 --- a/sysprof.c +++ b/sysprof.c @@ -873,6 +873,7 @@ on_about_activated (GtkWidget *widget, gpointer data) "logo", app->icon, "name", APPLICATION_NAME, "copyright", "Copyright 2004-2005, S"OSLASH"ren Sandmann", + "version", PACKAGE_VERSION, NULL); } -- 2.7.4