platform/upstream/sysprof.git
18 years agoRemove unused pages_present() function
Soeren Sandmann [Wed, 23 Nov 2005 04:26:36 +0000 (04:26 +0000)]
Remove unused pages_present() function

Tue Nov 22 23:38:09 2005  Soeren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c: Remove unused pages_present() function

18 years agoMake configure work
Matthias Clasen [Fri, 18 Nov 2005 15:55:36 +0000 (15:55 +0000)]
Make configure work

18 years agoAdd some experimental (and unused) code to look up kernel symbols.
Soeren Sandmann [Mon, 14 Nov 2005 02:44:15 +0000 (02:44 +0000)]
Add some experimental (and unused) code to look up kernel symbols.

2005-11-13  Soeren Sandmann  <sandmann@redhat.com>

        * process.c: Add some experimental (and unused) code to look up
        kernel symbols.

18 years agoPut the vertical splitter at 3/8 * screen_width.
Soeren Sandmann [Sun, 13 Nov 2005 04:28:57 +0000 (04:28 +0000)]
Put the vertical splitter at 3/8 * screen_width.

Sat Nov 12 23:39:29 2005  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c (set_sizes): Put the vertical splitter at 3/8 *
        screen_width.

        * configure.ac: Disable warning.

18 years agogreat-sage-equal-to-heaven:~/vertigo/sysprof% head -13 ChangeLog
Søren Sandmann [Sun, 13 Nov 2005 00:46:08 +0000 (00:46 +0000)]
great-sage-equal-to-heaven:~/vertigo/sysprof% head -13 ChangeLog
Sat Nov 12 19:44:43 2005  Søren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c (read_frame): New function that uses
        copy_from_user_inatomic() as check_user_pages_readable() has
        disappeared in recent kernels.

        * module/sysprof-module.c (timer_notify): Use it here.

        * TODO: Updates

        * configure.ac: Change the wording of the CVS HEAD warning as this
        change seems to also have fixed the lockup with rawhide kernels.

18 years agoAdd new tree_view_foreach_visible() function.
Soeren Sandmann [Wed, 9 Nov 2005 05:39:25 +0000 (05:39 +0000)]
Add new tree_view_foreach_visible() function.

Wed Nov  9 00:24:11 2005  Soeren Sandmann  <sandmann@redhat.com>

        * treeviewutils.[ch]: Add new tree_view_foreach_visible()
        function.

        * sysprof.c: Add update_screenshot_window() function.

18 years agoAdd beginning of a screenshot window.
Soeren Sandmann [Tue, 8 Nov 2005 04:32:19 +0000 (04:32 +0000)]
Add beginning of a screenshot window.

Mon Nov  7 23:42:26 2005  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c: Add beginning of a screenshot
        window.

        * sysprof.glade: Add screenshot window plus menu items.

        * stackstash.c: Remove unused function stack_node_list_leaves()

        * xmlstore.c: Various crack

18 years agoTest for !prev instead of !next.
Soeren Sandmann [Mon, 7 Nov 2005 03:53:20 +0000 (03:53 +0000)]
Test for !prev instead of !next.

Sun Nov  6 23:03:49 2005  Soeren Sandmann  <sandmann@redhat.com>

        * profile.c (add_trace_to_tree): Test for !prev instead of !next.

18 years agoSun Nov 6 Soeren Sandmann <sandmann@redhat.com>
Søren Sandmann Pedersen [Mon, 7 Nov 2005 02:27:55 +0000 (02:27 +0000)]
Sun Nov 6 Soeren Sandmann <sandmann@redhat.com>

Sun Nov  6  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: updates

        * collector.c (on_read): Only call back when a new sample actually
        arrived.

        * collector.c (collector_stop): close the filedescriptor

        * sysprof.c (on_start_toggled): Change sense of test.

        * sysprof.c (ensure_profile): Stop the collector.

        * sysprof.c (on_reset_clicked): Stop the collector when state
        becomes INITIAL.

18 years agoMake these function call back with GLists rather than GSLists.
Soeren Sandmann [Sun, 6 Nov 2005 23:27:17 +0000 (23:27 +0000)]
Make these function call back with GLists rather than GSLists.

Sun Nov  6 18:31:23 2005  Soeren Sandmann  <sandmann@redhat.com>

        * stackstash.c (stack_stash_foreach):
        * stackstash.c (stack_node_foreach_trace): Make these function
        call back with GLists rather than GSLists.

        * profile.c (add_trace_to_tree): Iterate backwards instead of
        copying the list.

18 years agoTurn this function into a StackFunction.
Soeren Sandmann [Sun, 6 Nov 2005 22:10:30 +0000 (22:10 +0000)]
Turn this function into a StackFunction.

Sun Nov  6 17:06:52 2005  Soeren Sandmann  <sandmann@redhat.com>

        * profile.c (add_trace_to_tree): Turn this function into a
        StackFunction.

        * stackstash.c (stack_node_foreach_trace): Make this function take
        a StackFunction, and reimplement with do_callback().

18 years agoUse callbacks from stackstash.
Soeren Sandmann [Sat, 5 Nov 2005 22:57:09 +0000 (22:57 +0000)]
Use callbacks from stackstash.

Sat Nov  5 18:06:40 2005  Soeren Sandmann  <sandmann@redhat.com>

        * profile.c (profile_create_descendants): Use callbacks from
        stackstash.

        * stackstash.c (stack_node_foreach_trace): New function
        * stackstash.c (do_node_callback): New function

18 years agoDon't compute the total field.
Soeren Sandmann [Sat, 5 Nov 2005 17:28:22 +0000 (17:28 +0000)]
Don't compute the total field.

Sat Nov  5 12:39:33 2005  Soeren Sandmann  <sandmann@redhat.com>

        * profile.c (add_trace_to_tree): Don't compute the total field.

        * profile.h (struct ProfileDescendant): Remove 'total' field.

        * sysprof.c: Delete DESCENDANTS_TOTAL column and everything
        related to it.

        * profile.c: Remove commented out code

        * sfile.c (handle_text): Don't copy the text

18 years agoAdd copyright statement.
Soren Sandmann [Sat, 5 Nov 2005 04:58:16 +0000 (04:58 +0000)]
Add copyright statement.

2005-11-04  Soren Sandmann  <sandmann@redhat.com>

        * collector.[ch]: Add copyright statement.

        * collector.c (on_read): Handle time getting set backwards.

        * collector.c: Remove unused empty_filedescriptor() function.

18 years ago+2005-11-03 Soren Sandmann <sandmann@redhat.com>
Søren Sandmann Pedersen [Sat, 5 Nov 2005 00:49:34 +0000 (00:49 +0000)]
+2005-11-03  Soren Sandmann  <sandmann@redhat.com>
+
+       * configure.ac: Make the message about the kernel source package
+       more informative. Code from Kjetil Torgrim Homme.
+
+       * sysprof.c (on_start_toggled): Only delete the data if the
+       profiling can actually be started.
+

18 years agoUpdate GUI after showing error message.
Soeren Sandmann [Wed, 2 Nov 2005 05:10:13 +0000 (05:10 +0000)]
Update GUI after showing error message.

2005-11-01  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c (on_start_toggled): Update GUI after showing error
        message.

        * sysprof.glade: Rename File menu Profiler, move
        Start/Profile/Reset here, delete View menu.

18 years agoAdd "total" field.
Soeren Sandmann [Tue, 1 Nov 2005 04:37:16 +0000 (04:37 +0000)]
Add "total" field.

Mon Oct 31 23:41:33 2005  Soeren Sandmann  <sandmann@redhat.com>

        * stackstash.h (struct StackNode): Add "total" field.

        * stackstash.c (stack_stash_add_trace): Keep track of the
        aggregate size.

        * profile.c (profile_get_size): Sum the totals of the siblings
        instead of all the children.

        * profile.c (build_object_list): Correctly compute obj->self

        * profile.c (profile_load): Don't ignore the node->total field.

        * profile.c (serialize_call_tree): Save node->total instead of the
        computed total

        * profile.c (compute_total): Use n->total instead of computing it
        from scratch.

        * profile.c: Remove unused sum_children() function.

        * TODO: Updates

        * process.c (process_get_from_pid): Plug leak.

18 years agofree the profile objects.
Søren Sandmann [Tue, 1 Nov 2005 02:37:09 +0000 (02:37 +0000)]
free the profile objects.

Mon Oct 31 21:36:37 2005  Søren Sandmann  <sandmann@redhat.com>

        * sysprof.c (fill_main_list): free the profile objects.

        * sysprof.c (struct Application): Remove unused variable.

18 years agoUpdate TODO
Søren Sandmann Pedersen [Mon, 31 Oct 2005 15:21:26 +0000 (15:21 +0000)]
Update TODO

18 years agoUse APPLICATION_NAME macro
Soeren Sandmann [Mon, 31 Oct 2005 05:20:37 +0000 (05:20 +0000)]
Use APPLICATION_NAME macro

Mon Oct 31 00:22:58 2005  Soeren Sandmann  <sandmann@redhat.com>

* sysprof.c (set_application_title): Use APPLICATION_NAME macro

* sysprof.c (load_file): Don't leak the FileOpenData

* TODO: updates

18 years agoTODO
Søren Sandmann Pedersen [Mon, 31 Oct 2005 04:20:25 +0000 (04:20 +0000)]
TODO

18 years agoDon't link sysprof-text to gtk+.
Soren Sandmann [Sun, 30 Oct 2005 20:57:25 +0000 (20:57 +0000)]
Don't link sysprof-text to gtk+.

2005-10-30  Soren Sandmann <sandmann@redhat.com>

* configure.ac, Makefile.am: Don't link sysprof-text to gtk+.

18 years agoMerge stackstash-reorg branch into HEAD
Soren Sandmann [Sun, 30 Oct 2005 20:14:31 +0000 (20:14 +0000)]
Merge stackstash-reorg branch into HEAD

2005-10-30  Soren Sandmann <sandmann@redhat.com>

* Merge stackstash-reorg branch into HEAD

18 years agotweak configure.ac message
Søren Sandmann Pedersen [Sat, 29 Oct 2005 19:01:45 +0000 (19:01 +0000)]
tweak configure.ac message

18 years agoFix crash pointed reported by Rudi Chiarito.
Søren Sandmann [Sat, 29 Oct 2005 18:50:11 +0000 (18:50 +0000)]
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.

18 years agoupdates
Søren Sandmann [Sat, 29 Oct 2005 18:30:25 +0000 (18:30 +0000)]
updates

Sat Oct 29 14:29:55 2005  Søren Sandmann  <sandmann@redhat.com>

* README, TODO: updates

18 years agoAdd a warning about known bugs in the kernel module in this branch.
Søren Sandmann [Fri, 14 Oct 2005 15:45:48 +0000 (15:45 +0000)]
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.

18 years agoAdd back these constants, but this time make sure we won't divide by 0 or
Soeren Sandmann [Wed, 12 Oct 2005 02:40:29 +0000 (02:40 +0000)]
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.

18 years agoDelete lots of commented-out code.
Soeren Sandmann [Tue, 11 Oct 2005 02:48:46 +0000 (02:48 +0000)]
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.

18 years agoAdd --disable-kernel-module option. Patch from Pascal Terjan.
Søren Sandmann [Mon, 10 Oct 2005 18:35:00 +0000 (18:35 +0000)]
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.

18 years agoDon't use INTERVAL or SAMPLES_PER_SECOND now that we use
Robert Love [Mon, 10 Oct 2005 17:01:57 +0000 (17:01 +0000)]
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).

18 years agofile profiler.c was initially added on branch stackstash-reorg.
Søren Sandmann Pedersen [Sat, 1 Oct 2005 21:05:48 +0000 (21:05 +0000)]
file profiler.c was initially added on branch stackstash-reorg.

18 years agofile profiler.h was initially added on branch stackstash-reorg.
Søren Sandmann Pedersen [Sat, 1 Oct 2005 21:05:48 +0000 (21:05 +0000)]
file profiler.h was initially added on branch stackstash-reorg.

18 years agofile helper.c was initially added on branch stackstash-reorg.
Søren Sandmann Pedersen [Sat, 1 Oct 2005 05:32:07 +0000 (05:32 +0000)]
file helper.c was initially added on branch stackstash-reorg.

18 years agofile helper.h was initially added on branch stackstash-reorg.
Søren Sandmann Pedersen [Sat, 1 Oct 2005 05:32:07 +0000 (05:32 +0000)]
file helper.h was initially added on branch stackstash-reorg.

18 years agoUpdate
Soeren Sandmann [Sat, 1 Oct 2005 05:24:39 +0000 (05:24 +0000)]
Update

Sat Oct  1 01:21:57 2005  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: Update

18 years agoRevert accidental commit of stackstash reorganisation
Søren Sandmann Pedersen [Sat, 1 Oct 2005 05:23:58 +0000 (05:23 +0000)]
Revert accidental commit of stackstash reorganisation

18 years agoUpdate
Soeren Sandmann [Sat, 1 Oct 2005 05:21:25 +0000 (05:21 +0000)]
Update

Sat Oct  1 01:21:57 2005  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: Update

18 years agoUpdate TODO
Søren Sandmann Pedersen [Thu, 29 Sep 2005 02:16:31 +0000 (02:16 +0000)]
Update TODO

18 years agoUpdate TODO
Søren Sandmann Pedersen [Wed, 28 Sep 2005 18:39:25 +0000 (18:39 +0000)]
Update TODO

18 years agoAdd my name to the copyright statement
Søren Sandmann [Wed, 28 Sep 2005 16:10:39 +0000 (16:10 +0000)]
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

18 years agoIf the address is 0x01, treat as kernel, regardless of whether we have a
Soeren Sandmann [Tue, 27 Sep 2005 05:35:19 +0000 (05:35 +0000)]
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.

18 years agoBump version number to 1.1.0
Soeren Sandmann [Sat, 24 Sep 2005 18:42:24 +0000 (18:42 +0000)]
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

18 years agoNew non-GUI version, written by Lorenzo Colitti, with some changes by me.
Soeren Sandmann [Sat, 24 Sep 2005 04:14:20 +0000 (04:14 +0000)]
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

18 years agoIf the glade file doesn't exists pop up an alert suggesting running 'make
Soeren Sandmann [Sat, 24 Sep 2005 00:47:22 +0000 (00:47 +0000)]
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

18 years agoAdd 1.0 announcement sysprof-1-0-branchpoint sysprof-1.0.branchpoint
Søren Sandmann Pedersen [Sat, 17 Sep 2005 20:42:56 +0000 (20:42 +0000)]
Add 1.0 announcement

18 years agoTODO updates
Søren Sandmann Pedersen [Sat, 17 Sep 2005 19:41:04 +0000 (19:41 +0000)]
TODO updates

18 years agoBump version numbers update Updates
Soeren Sandmann [Sat, 17 Sep 2005 18:35:44 +0000 (18:35 +0000)]
Bump version numbers update Updates

Sat Sep 17 14:35:32 2005  Soeren Sandmann  <sandmann@redhat.com>

        * Bump version numbers
        * README: update
        * TODO: Updates

18 years ago*** empty log message ***
Søren Sandmann Pedersen [Sun, 4 Sep 2005 23:40:53 +0000 (23:40 +0000)]
*** empty log message ***

18 years agoUpdates
Soeren Sandmann [Sun, 4 Sep 2005 23:38:40 +0000 (23:38 +0000)]
Updates

Sun Sep  4 19:38:51 2005  Soeren Sandmann  <sandmann@redhat.com>

* TODO: Updates

18 years agoComplain if we can't find /lib/modules/`uname -r`/build/Makefile.
Søren Sandmann [Tue, 30 Aug 2005 20:58:18 +0000 (20:58 +0000)]
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

18 years agoFix some warnings.
Soeren Sandmann [Tue, 16 Aug 2005 00:40:26 +0000 (00:40 +0000)]
Fix some warnings.

Mon Aug 15 20:39:11 2005  Soeren Sandmann  <sandmann@redhat.com>

        * binfile.c, process.c, profile.c: Fix some warnings.

19 years agoAdd support for amd64/x86-64. Patch from Mike Frysinger.
Soeren Sandmann [Tue, 2 Aug 2005 03:52:30 +0000 (03:52 +0000)]
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.

19 years agoVarious minor clean-ups sysprof-0.91
Soeren Sandmann [Sun, 10 Jul 2005 14:52:41 +0000 (14:52 +0000)]
Various minor clean-ups

Sun Jul 10 10:51:52 2005  Soeren Sandmann  <sandmann@redhat.com>

        * binfile.c: Various minor clean-ups

19 years agoCache BinFiles by filename.
Soeren Sandmann [Sun, 10 Jul 2005 03:28:35 +0000 (03:28 +0000)]
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.

19 years agoUpdate TODO
Søren Sandmann Pedersen [Fri, 8 Jul 2005 02:08:02 +0000 (02:08 +0000)]
Update TODO

19 years agoAdd version information
Søren Sandmann [Sun, 19 Jun 2005 19:43:02 +0000 (19:43 +0000)]
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

19 years agoUpdates
Søren Sandmann [Sun, 19 Jun 2005 02:46:19 +0000 (02:46 +0000)]
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.

19 years ago*** empty log message ***
Søren Sandmann Pedersen [Mon, 13 Jun 2005 00:34:11 +0000 (00:34 +0000)]
*** empty log message ***

19 years agoDisable type-ahead search for all the tree views.
Soeren Sandmann [Mon, 13 Jun 2005 00:33:51 +0000 (00:33 +0000)]
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

19 years agoUpdates
Soeren Sandmann [Sun, 12 Jun 2005 17:38:22 +0000 (17:38 +0000)]
Updates

Sun Jun 12 13:37:15 2005  Soeren Sandmann  <sandmann@redhat.com>

* TODO: Updates

19 years ago+Thu Jun 9 13:28:33 2005 Søren Sandmann <sandmann@redhat.com>
Søren Sandmann Pedersen [Fri, 10 Jun 2005 01:11:53 +0000 (01:11 +0000)]
+Thu Jun  9 13:28:33 2005  Søren Sandmann  <sandmann@redhat.com>
+
+       * TODO: Updates
+

19 years agoGrab focus on the callers view, not the descendants view.
Soeren Sandmann [Thu, 26 May 2005 05:11:35 +0000 (05:11 +0000)]
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.

19 years agoRemove comment about auto* stuff, add link to
Soeren Sandmann [Mon, 23 May 2005 05:39:27 +0000 (05:39 +0000)]
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/

19 years agoUpdates sysprof-0.9
Soeren Sandmann [Mon, 23 May 2005 01:07:48 +0000 (01:07 +0000)]
Updates

Sun May 22 21:06:36 2005  Soeren Sandmann  <sandmann@redhat.com>

* TODO: Updates

19 years agoupdate
Soeren Sandmann [Sun, 22 May 2005 01:01:20 +0000 (01:01 +0000)]
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.

19 years ago+Sat May 21 00:59:38 2005 Søren Sandmann <sandmann@redhat.com>
Søren Sandmann Pedersen [Sat, 21 May 2005 04:59:57 +0000 (04:59 +0000)]
+Sat May 21 00:59:38 2005  Søren Sandmann  <sandmann@redhat.com>
+
+       * TODO: update
+

19 years agoRemove ref-counting since it didn't actually do any good.
Søren Sandmann [Thu, 19 May 2005 02:27:18 +0000 (02:27 +0000)]
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().

19 years agoFirst attempt at making module robust agains unloading when in use.
Søren Sandmann [Sun, 15 May 2005 15:57:33 +0000 (15:57 +0000)]
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.

19 years agoDo more-or-less what the automake manual suggests about foreign
Soeren Sandmann [Sun, 15 May 2005 14:25:02 +0000 (14:25 +0000)]
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.

19 years agoUpdate the title bar on load/save
Søren Sandmann [Sat, 14 May 2005 20:38:03 +0000 (20:38 +0000)]
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.

19 years agoAuto*ify.
Søren Sandmann [Sat, 14 May 2005 19:53:53 +0000 (19:53 +0000)]
Auto*ify.

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.

19 years ago*** empty log message ***
Søren Sandmann Pedersen [Tue, 10 May 2005 13:07:20 +0000 (13:07 +0000)]
*** empty log message ***

19 years agomore updates
Søren Sandmann [Sun, 8 May 2005 20:34:04 +0000 (20:34 +0000)]
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

19 years agoRestore lost wake_up().
Søren Sandmann [Sun, 8 May 2005 19:49:26 +0000 (19:49 +0000)]
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.

19 years agoImplement this function
Søren Sandmann [Sat, 7 May 2005 17:57:59 +0000 (17:57 +0000)]
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

19 years agoAnother desparate hack to try and prevent the oops.
Søren Sandmann [Sat, 7 May 2005 14:59:45 +0000 (14:59 +0000)]
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.

19 years agoUse getpagesize()
Soeren Sandmann [Sat, 30 Apr 2005 20:59:01 +0000 (20:59 +0000)]
Use getpagesize()

Sat Apr 30 16:57:23 2005  Soeren Sandmann  <sandmann@redhat.com>

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

* TODO: More updates

19 years agoUpdates
Søren Sandmann [Sat, 30 Apr 2005 19:50:29 +0000 (19:50 +0000)]
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

19 years agoUpdates
Søren Sandmann [Sat, 23 Apr 2005 23:20:06 +0000 (23:20 +0000)]
Updates

Sat Apr 23 19:17:18 2005  Søren Sandmann  <sandmann@redhat.com>

* TODO: Updates

19 years agoStore a pointer to the root of the call tree
Søren Sandmann [Sat, 23 Apr 2005 23:18:42 +0000 (23:18 +0000)]
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

19 years agoCheck pointer types
Søren Sandmann [Sat, 23 Apr 2005 22:47:35 +0000 (22:47 +0000)]
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

19 years agoNew function to check if the page is readable before reading. Noop on
Søren Sandmann [Sat, 23 Apr 2005 21:53:16 +0000 (21:53 +0000)]
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.

19 years agoOn >= 2.6.11 check that the pages are present and readable before reading
Soeren Sandmann [Fri, 22 Apr 2005 04:14:37 +0000 (04:14 +0000)]
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.

19 years agoAdd simple check target that runs a sanity check of the build environment.
Kristian Høgsberg [Tue, 19 Apr 2005 03:50:28 +0000 (03:50 +0000)]
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.

19 years agoFactor out some stuff in their own functions.
Soeren Sandmann [Sun, 17 Apr 2005 06:03:38 +0000 (06:03 +0000)]
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.

19 years agoRead a whole page at a time.
Soeren Sandmann [Sat, 16 Apr 2005 23:57:00 +0000 (23:57 +0000)]
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.

19 years ago+Sat Apr 16 14:15:55 2005 Soeren Sandmann <sandmann@redhat.com>
Søren Sandmann Pedersen [Sat, 16 Apr 2005 21:08:44 +0000 (21:08 +0000)]
+Sat Apr 16 14:15:55 2005  Soeren Sandmann  <sandmann@redhat.com>
+
+       * TODO: Update
+
+       * sysprof-module.c (x_access_process_vm): On kernel 2.6.9 and
+       later use get_task_mm()/mmput() instead of directly accessing
+       task->mm.
+

19 years agoAdd backtrace for kernel oops.
Søren Sandmann [Sat, 16 Apr 2005 05:58:40 +0000 (05:58 +0000)]
Add backtrace for kernel oops.

Sat Apr 16 01:54:18 2005  Søren Sandmann  <sandmann@redhat.com>

* TODO: Add backtrace for kernel oops.

19 years agoupdates
Soeren Sandmann [Fri, 15 Apr 2005 20:38:58 +0000 (20:38 +0000)]
updates

Fri Apr 15 16:37:45 2005  Soeren Sandmann  <sandmann@redhat.com>

* TODO: updates

* sysprof.c (sorry): If you hit profile when the module isn't
loaded, pop up an annoying dialog.

* sysprof-module.c: Clean-ups, remove various unused abstractions.

19 years agoAdd a copy of the GPL
Søren Sandmann [Sat, 9 Apr 2005 21:51:28 +0000 (21:51 +0000)]
Add a copy of the GPL

Sat Apr  9 17:49:13 2005  Søren Sandmann  <sandmann@redhat.com>

        * COPYING: Add a copy of the GPL

19 years agoRemove debug spew
Søren Sandmann [Sat, 9 Apr 2005 21:17:24 +0000 (21:17 +0000)]
Remove debug spew

Sat Apr  9 17:04:50 2005  Søren Sandmann  <sandmann@redhat.com>

* Makefile: Remove debug spew

* *: Add copyright notices

19 years agoMore updates
Søren Sandmann [Sat, 9 Apr 2005 01:32:17 +0000 (01:32 +0000)]
More updates

Fri Apr  8 21:30:02 2005  Søren Sandmann  <sandmann@redhat.com>

* TODO: More updates

19 years agoLoad the icon, hook up "about" activation.
Søren Sandmann [Sat, 9 Apr 2005 00:51:25 +0000 (00:51 +0000)]
Load the icon, hook up "about" activation.

Fri Apr  8 20:48:58 2005  Søren Sandmann  <sandmann@redhat.com>

* sysprof.c (build_gui): Load the icon, hook up "about"
activation.

* sysprof.c (on_about_activated): New function. Show an about
dialog.

* sysprof.c (struct Application): Add an icon field

* TODO: Updates

* sysprof-icon.png: Icon, drawn by Diana Fong

19 years agoPut back the weird loop, and stop pretending I understand this. This time
Søren Sandmann [Wed, 6 Apr 2005 03:04:34 +0000 (03:04 +0000)]
Put back the weird loop, and stop pretending I understand this. This time

Tue Apr  5 23:01:02 2005  Søren Sandmann  <sandmann@redhat.com>

* binfile.c (read_symbols): Put back the weird loop, and stop
pretending I understand this. This time use SEC_ALLOC instead of
SEC_LOAD.

19 years agoAdd commented out debug spew.
Søren Sandmann [Wed, 6 Apr 2005 00:16:12 +0000 (00:16 +0000)]
Add commented out debug spew.

Tue Apr  5 20:13:44 2005  Søren Sandmann  <sandmann@redhat.com>

* process.c (process_ensure_map): Add commented out debug spew.

* process.c (process_lookup_symbol): Remove all should_offset()
function and all references to it.

* binfile.c (bin_file_lookup_symbol): Document that address must
be in file coordinates.

* binfile.c (read_symbols): Remove misguided code that tried to
guess the load address of the file. Instead, do all computations
in "file coordinates". Also fix a memory leak. Add commented out
debug spew.

* binfile.c (separate_debug_file_exists): Fix signedness

19 years agoMake it compile with kernel 2.6.11
Søren Sandmann [Tue, 5 Apr 2005 18:37:13 +0000 (18:37 +0000)]
Make it compile with kernel 2.6.11

Tue Apr  5 14:34:43 2005  Søren Sandmann  <sandmann@redhat.com>

* sysprof-module.c (x_access_process_vm): Make it compile with
kernel 2.6.11

* TODO: updates

19 years agoBusy cursors in many more places.
Soeren Sandmann [Mon, 4 Apr 2005 06:19:16 +0000 (06:19 +0000)]
Busy cursors in many more places.

Mon Apr  4 00:57:11 2005  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c: Busy cursors in many more places.

        * TODO: updates

19 years agoRe-schedule the timeout here instead of in on_timer().
Soeren Sandmann [Mon, 4 Apr 2005 03:53:32 +0000 (03:53 +0000)]
Re-schedule the timeout here instead of in on_timer().

Sun Apr  3 23:28:45 2005  Soeren Sandmann  <sandmann@redhat.com>

* sysprof-module.c (do_generate): Re-schedule the timeout here
instead of in on_timer().

* sysprof-module.c (on_timer): Only block tasks in the
TASK_RUNNING state.

19 years agoPut current process to sleep.
Soeren Sandmann [Sun, 3 Apr 2005 22:06:00 +0000 (22:06 +0000)]
Put current process to sleep.

Sun Apr  3 17:03:33 2005  Soeren Sandmann  <sandmann@redhat.com>

* sysprof-module.c (queue_generate_stack_trace): Put current
process to sleep.

* sysprof-module.c (do_generate): Wake up the traced process