Commit Graph

86 Commits

Author SHA1 Message Date
ba8f13a606 Fix crash pointed reported by Rudi Chiarito.
Sat Oct 29 14:43:00 2005  Søren Sandmann  <sandmann@redhat.com>

        Fix crash pointed reported by Rudi Chiarito.

        * stackstash.c (stack_stash_add_trace): Just return if
        n_addrs is 0.

        * sysprof.c (on_read): Only trace if n_addresses != 0.
2005-10-29 18:50:11 +00:00
d598799b23 updates
Sat Oct 29 14:29:55 2005  Søren Sandmann  <sandmann@redhat.com>

	* README, TODO: updates
2005-10-29 18:30:25 +00:00
3d43e894fd Add a warning about known bugs in the kernel module in this branch.
Fri Oct 14 11:44:43 2005  Søren Sandmann  <sandmann@redhat.com>

        * configure.ac: Add a warning about known bugs in the kernel
        module in this branch.

        * TODO: updates.
2005-10-14 15:45:48 +00:00
a49ae59709 Add back these constants, but this time make sure we won't divide by 0 or
Tue Oct 11 22:40:24 2005  Soeren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c (SAMPLES_PER_SECOND): Add back these
        constants, but this time make sure we won't divide by 0 or
        anything like that.
2005-10-12 02:40:29 +00:00
e5987543b0 Delete lots of commented-out code.
Mon Oct 10 22:49:03 2005  Soeren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c: Delete lots of commented-out code.
2005-10-11 02:48:46 +00:00
f910d769ed Add --disable-kernel-module option. Patch from Pascal Terjan.
Mon Oct 10 14:33:50 2005  Søren Sandmann  <sandmann@redhat.com>

	* configure.ac: Add --disable-kernel-module option. Patch from
	Pascal Terjan.
2005-10-10 18:35:00 +00:00
58073ffba8 Don't use INTERVAL or SAMPLES_PER_SECOND now that we use
Mon Oct 10 13:00:20 2005  Robert Love  <rml@novell.com>

        * module/sysprof-module.c: Don't use INTERVAL or SAMPLES_PER_SECOND
          now that we use register_timer_hook(), which hits off the timer
          interrupt at HZ freqency (1/250 second on x86).
2005-10-10 17:01:57 +00:00
e67d1b4856 Update
Sat Oct  1 01:21:57 2005  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: Update
2005-10-01 05:24:39 +00:00
f7e888e574 Revert accidental commit of stackstash reorganisation 2005-10-01 05:23:58 +00:00
cc1055d105 Update
Sat Oct  1 01:21:57 2005  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: Update
2005-10-01 05:21:25 +00:00
d63ec45acb Add my name to the copyright statement
Wed Sep 28 12:08:32 2005  Søren Sandmann  <sandmann@redhat.com>

        * sysprof-text.c: Add my name to the copyright statement
2005-09-28 16:10:39 +00:00
bce3b1fea6 If the address is 0x01, treat as kernel, regardless of whether we have a
Tue Sep 27 01:33:33 2005  Soeren Sandmann  <sandmann@redhat.com>

	* process.c (process_lookup_symbol): If the address is 0x01, treat
	as kernel, regardless of whether we have a map for that address or
	not.

	* module/sysprof-module.c (timer_notify): Take a stack trace of
	the current process, even when we are in kernel mode. This way we
	can assign kernel activity to individual user space stacktraces.

	* TODO: updates.
2005-09-27 05:35:19 +00:00
665d680c46 Bump version number to 1.1.0
Sat Sep 24 14:41:23 2005  Soeren Sandmann  <sandmann@redhat.com>

	* configure.ac: Bump version number to 1.1.0

	* signal-handler.c: Many, mostly cosmetic, cleanups

	* sysprof-text.c: uninstall signal handlers when exiting
2005-09-24 18:42:24 +00:00
e2fb3b2985 New non-GUI version, written by Lorenzo Colitti, with some changes by me.
Sat Sep 24 00:01:42 2005  Soeren Sandmann  <sandmann@redhat.com>

	* Nakefile.am, sysprof-text.c: New non-GUI version, written
	by Lorenzo Colitti, with some changes by me.

	* signal-handler.[ch]: New files that provide a way to get UNIX
	signals into a glib main loop.

	* README: add Lorenzo to credits
2005-09-24 04:14:20 +00:00
03feea82e4 If the glade file doesn't exists pop up an alert suggesting running 'make
Fri Sep 23 20:46:40 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof.c (build_gui): If the glade file doesn't exists pop up
	an alert suggesting running 'make install'

	* sysprof.c: Remove some commented out code
2005-09-24 00:47:22 +00:00
9dddb6d160 Bump version numbers update Updates
Sat Sep 17 14:35:32 2005  Soeren Sandmann  <sandmann@redhat.com>

        * Bump version numbers
        * README: update
        * TODO: Updates
2005-09-17 18:35:44 +00:00
22d05ac014 Updates
Sun Sep  4 19:38:51 2005  Soeren Sandmann  <sandmann@redhat.com>

	* TODO: Updates
2005-09-04 23:38:40 +00:00
ee53bcffd4 Complain if we can't find /lib/modules/uname -r/build/Makefile.
Tue Aug 30 16:57:33 2005  Søren Sandmann  <sandmann@redhat.com>

	* configure.ac: Complain if we can't find /lib/modules/`uname
	-r`/build/Makefile.

	* process.c (process_lookup_symbol): Take an address of 0x1 to
	mean "in kernel".

	* module/sysprof-module.c (timer_notify): When reporting in-kernel
	time, give the current pid instead of -1.

	* TODO: updates
2005-08-30 20:58:18 +00:00
509d5f07ed Fix some warnings.
Mon Aug 15 20:39:11 2005  Soeren Sandmann  <sandmann@redhat.com>

        * binfile.c, process.c, profile.c: Fix some warnings.
2005-08-16 00:40:26 +00:00
fbc7b471d2 Add support for amd64/x86-64. Patch from Mike Frysinger.
Mon Aug  1 23:49:51 2005  Soeren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c (REG_INS_PTR): Add support for
        amd64/x86-64. Patch from Mike Frysinger.
2005-08-02 03:52:30 +00:00
775a1e3c5d Various minor clean-ups
Sun Jul 10 10:51:52 2005  Soeren Sandmann  <sandmann@redhat.com>

        * binfile.c: Various minor clean-ups
2005-07-10 14:52:41 +00:00
f3b78b7944 Cache BinFiles by filename.
Sat Jul  9 23:20:39 2005  Soeren Sandmann  <sandmann@redhat.com>

	* binfile.c (bin_file_new): Cache BinFiles by filename.

	* stackstash.c (stack_stash_free): Plug leak

	* process.c (process_free_maps): Plug leak

	* module/Makefile (install): Check that depmod exists before
	running it.
2005-07-10 03:28:35 +00:00
8e4696a4a1 Add version information
Sun Jun 19 15:39:50 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof.c (on_about_activated): Add version information

	* configure.ac: Bump version to 0.91

	* README: Updates
2005-06-19 19:43:02 +00:00
18abd9e1e6 Updates
Sat Jun 18 22:45:04 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Updates

	* configure.ac: Check for Linux 2.6.11

	* process.c (get_pidname): Present pid=-1 as [kernel].

	* module/sysprof-module.c: Use register_timer_hook() instead of
	a kernel timer. Set trace.pid to -1 if interrupt happens in
	kernel.
2005-06-19 02:46:19 +00:00
088a822edc Disable type-ahead search for all the tree views.
Sun Jun 12 20:30:37 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof.c (build_gui): Disable type-ahead search for all the
	tree views.

	* sysprof.c (on_object_selection_changed): Call it from here

	* sysprof.c (expand_descendants_tree): New function that
	determines what nodes to expand in the descendatns view.

	* TODO
2005-06-13 00:33:51 +00:00
82a87202c1 Updates
Sun Jun 12 13:37:15 2005  Soeren Sandmann  <sandmann@redhat.com>

	* TODO: Updates
2005-06-12 17:38:22 +00:00
a2499b571f +Thu Jun 9 13:28:33 2005 Søren Sandmann <sandmann@redhat.com>
+
+       * TODO: Updates
+
2005-06-10 01:11:53 +00:00
5cb9392775 Grab focus on the callers view, not the descendants view.
Thu May 26 01:10:45 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof.c (on_callers_row_activated): Grab focus on the callers
	view, not the descendants view.

	* sysprof.c (on_read): Add a short "dead" period after a reset,
	so that 'samples' will actually be 0 for a while.
2005-05-26 05:11:35 +00:00
13e4dfedc0 Remove comment about auto* stuff, add link to
Mon May 23 01:37:26 2005  Soeren Sandmann  <sandmann@redhat.com>

        * README: Remove comment about auto* stuff, add link to

                http://www.daimi.au.dk/~sandmann/sysprof/
2005-05-23 05:39:27 +00:00
7dc413cd9b Updates
Sun May 22 21:06:36 2005  Soeren Sandmann  <sandmann@redhat.com>

	* TODO: Updates
2005-05-23 01:07:48 +00:00
402ffc9e4a update
Sat May 21 20:58:59 2005  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: update

        * sysprof.c (on_menu_item_activated): New function.

        * sysprof.c (build_gui): Hook up menu items.

        * module/sysprof-module.c (init_module): Remove module_init/exit
        as they cause build failure on kernels < 2.6.11.
2005-05-22 01:01:20 +00:00
98fe6b572e +Sat May 21 00:59:38 2005 Søren Sandmann <sandmann@redhat.com>
+
+       * TODO: update
+
2005-05-21 04:59:57 +00:00
d9de1e5a36 Remove ref-counting since it didn't actually do any good.
Wed May 18 22:21:52 2005  Søren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c: Remove ref-counting since it didn't
        actually do any good.

        * sysprof.c (load_module): Use g_spawn_command_line_sync() instaed
        of system().
2005-05-19 02:27:18 +00:00
720e07109c First attempt at making module robust agains unloading when in use.
Sun May 15 11:56:30 2005  Søren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c: First attempt at making module robust
	agains unloading when in use.
2005-05-15 15:57:33 +00:00
023c75d71a Do more-or-less what the automake manual suggests about foreign
Sun May 15 10:24:09 2005  Soeren Sandmann  <sandmann@redhat.com>

	* Makefile.am, module/Makefile: Do more-or-less what the automake
	manual suggests about foreign subdirectories.
2005-05-15 14:25:02 +00:00
55fd84676f Update the title bar on load/save
Sat May 14 16:36:32 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof.c (set_application_title): Update the title bar on
	load/save

	* treeviewutils.c, sfile.c: Fix compiler warnings

	* Makefile.am: define PIXMAPDIR

Sat May 14 15:49:52 2005  Søren Sandmann  <sandmann@redhat.com>

	Auto*ify.

	* TODO: updates

	* AUTHORS, INSTALL, Makefile.am, NEWS, configure.ac: New files

	* module/Makefile: New file

	* module/sysprof-module.c, module/sysprof-module.h: Move these
	files to their own directy, as the kernel build system does not
	work very well with auto*.

	* sysprof.c, autogen.sh: Some auto* changes.
2005-05-14 20:38:03 +00:00
11c0561976 more updates
Sun May  8 16:31:32 2005  Søren Sandmann  <sandmann@redhat.com>

        * TODO: more updates

        * sysprof.c: Try loading the module before complaining
2005-05-08 20:34:04 +00:00
aaa38daad8 Restore lost wake_up().
Sun May  8 15:45:08 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof-module.c (do_generate): Restore lost wake_up().

	* sfile.c: Comment out use of bz2.

	* Makefile: Add an install target. Add GLADE_DIR and PIXMAP_DIR

	* sysprof.c (build_gui): use GLADE_DIR and PIXMAP_DIR here.

	* TODO: Updates.
2005-05-08 19:49:26 +00:00
c427b88352 Implement this function
Sat May  7 13:57:17 2005  Søren Sandmann  <sandmann@redhat.com>

	* sfile.c (sfile_output_free): Implement this function

	* sfile.c (sfile_input_free): Implement this function
2005-05-07 17:57:59 +00:00
582efc99b2 Another desparate hack to try and prevent the oops.
Fri May  6 23:38:48 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof-module.c (do_generate): Another desparate hack to try
	and prevent the oops.
2005-05-07 14:59:45 +00:00
6906804784 Use getpagesize()
Sat Apr 30 16:57:23 2005  Soeren Sandmann  <sandmann@redhat.com>

	* process.c (PAGE_SIZE): Use getpagesize()

	* TODO: More updates
2005-04-30 20:59:01 +00:00
914d8bf668 Updates
Sat Apr 30 15:44:12 2005  Søren Sandmann  <sandmann@redhat.com>

        * TODO: Updates

        * sysprof-module.c (get_regs): Change the way we get registers for
        a task so that it works with 2.6.11
2005-04-30 19:50:29 +00:00
cd07b6f274 Updates
Sat Apr 23 19:17:18 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Updates
2005-04-23 23:20:06 +00:00
984c6e1710 Store a pointer to the root of the call tree
Sat Apr 23 19:12:52 2005  Søren Sandmann  <sandmann@redhat.com>

	* profile.c: Store a pointer to the root of the call tree

	* profile.c (profile_load): Call sfile_input_free()

	* sfile.c (sformat_free): Implement this function
2005-04-23 23:18:42 +00:00
8424be6024 Check pointer types
Sat Apr 23 18:38:46 2005  Søren Sandmann  <sandmann@redhat.com>

	* sfile.c (post_process_read_instructions): Check pointer types

	* sfile.c (post_process_instructions_recurse): Delete this unused function
2005-04-23 22:47:35 +00:00
753eb9378b New function to check if the page is readable before reading. Noop on
Sat Apr 23 17:49:33 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof-module.c (page_readable): New function to check if the
	page is readable before reading. Noop on kernel <= 2.6.11

	* sysprof-module.c (get_mm, put_mm): New functions to confine
	#ifdefs.
2005-04-23 21:53:16 +00:00
7b67e2c6b9 On >= 2.6.11 check that the pages are present and readable before reading
Fri Apr 22 00:09:16 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof-module.c (read_user_space): On >= 2.6.11 check that the
	pages are present and readable before reading them.
2005-04-22 04:14:37 +00:00
61430f6b96 Add simple check target that runs a sanity check of the build environment.
Tue Apr 19 23:26:45 2005  Kristian Høgsberg  <krh@bitplanet.net>

        * Makefile (check): Add simple check target that runs a sanity
        check of the build environment.
2005-04-19 03:50:28 +00:00
c824b74b9d Factor out some stuff in their own functions.
Sun Apr 17 00:20:41 2005  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c (on_open_clicked): Factor out some stuff in their own
        functions.

        * sysprof.c (load_file): Idle handler to load files given on the
        command line.

        * sysprof.c (main): If a filename is passed on the command line,
        load it in an idle handler.
2005-04-17 06:03:38 +00:00
023ce06615 Read a whole page at a time.
Sat Apr 16 19:51:48 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof-module.c (read_user_space): Read a whole page at a time.
2005-04-16 23:57:00 +00:00