Commit Graph

208 Commits

Author SHA1 Message Date
0a592c152a more ifdef's to make it work with Red Hat Enterprise Linux 4's 2.6.9-based
2006-02-17  Bastien Nocera  <hadess@hadess.net>

	* configure.ac:
	* module/sysprof-module.c: (timer_notify), (sysprof_open),
	(sysprof_release): more ifdef's to make it work with Red Hat
	Enterprise Linux 4's 2.6.9-based kernel
2006-02-17 15:44:55 +00:00
58a1cf37ef Remove ancestors pane in favor of radiobuttons in the right pane.
Sat Feb  4 23:53:05 2006  Søren Sandmann  <sandmann@redhat.com>

	* sysprof.glade: Remove ancestors pane in favor of radiobuttons in
	the right pane.

	* sysprof.c: Corresponding changes.

	* TODO: Updates
2006-02-05 04:54:04 +00:00
849975ec83 Updates
Wed Jan 25 11:24:04 2006  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Updates
2006-01-25 16:24:24 +00:00
bcf9dacd01 Updates
Mon Jan 16 11:12:13 2006  Søren Sandmann  <sandmann@redhat.com>

        * TODO: Updates
2006-01-16 16:12:44 +00:00
68827a7fbc Print out sysprof version at module load time.
Sun Jan 15 20:22:20 2006  Soeren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c (init_module): Print out sysprof version
	at module load time.
2006-01-16 01:22:27 +00:00
135ce0e2ea Updates
Sun Jan 15 00:24:02 2006  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: Updates

        * sysprof.c (build_gui): Rename 'callers' column 'ancestors'

        * profile.c (profile_list_callers): Make this function list all
        ancestors of the function. Also make it report correct numbers
        again.
2006-01-15 05:28:04 +00:00
98308836af Only build GUI when the necessary dependencies are found.
Sat Jan 14 18:24:43 2006  Soeren Sandmann  <sandmann@redhat.com>

        * configure.ac, Makefile.am: Only build GUI when the necessary
        dependencies are found.

        * sysprof.c (compute_text_width): Remove unused variable

        * profile.c (build_object_list): Follow next instead of siblings.
2006-01-14 23:26:34 +00:00
9125c4e644 updates
Fri Jan 13 23:11:33 2006  Søren Sandmann  <sandmann@redhat.com>

	* TODO: updates
2006-01-14 04:12:12 +00:00
2d525523f8 Initialize retval.
Fri Jan 13 22:59:48 2006  Soeren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c (sysprof_open): Initialize retval.

	* module/sysprof-module.c (sysprof_read): Copy contents of trace,
	not tail to the buffer.
2006-01-14 04:00:59 +00:00
c65bfcc114 Also make offset a gulong (Samuel Mimram)
Wed Jan 11 20:31:11 2006  Søren Sandmann  <sandmann@redhat.com>

       * process.c (read_maps): Also make offset a gulong (Samuel Mimram)
2006-01-12 01:32:06 +00:00
779b537f2b Remove debug spew.
Wed Jan 11 17:51:54 2006  Søren Sandmann  <sandmann@redhat.com>

	* collector.c: Remove debug spew.

	* TODO: updates
2006-01-11 22:53:08 +00:00
6d76b0c486 Remove START_OF_STACK check.
Mon Jan  9 09:58:25 2006  Soeren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c (timer_notify): Remove START_OF_STACK
	check.
2006-01-09 14:58:42 +00:00
5baa137e21 Use gulong for addresses. Bug reported by Martin Reddy.
Mon Jan  9 00:59:21 2006  Soeren Sandmann  <sandmann@redhat.com>

        * process.c (read_maps): Use gulong for addresses. Bug reported by
        Martin Reddy.
2006-01-09 05:59:44 +00:00
5a8582b041 Resurrect this function.
Sun Jan  8 03:22:22 2006  Soeren Sandmann  <sandmann@redhat.com>

	* process.c (process_flush_caches): Resurrect this function.

	* collector.c (collector_reset): Call it from here
2006-01-08 08:22:47 +00:00
0559ad82e7 update
Sun Jan  8 02:19:34 2006  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: update
2006-01-08 07:20:25 +00:00
f6d7a34ccf small updates cosmetic updates cosmetic updates
Thu Jan  5 17:52:10 2006  Søren Sandmann  <sandmann@redhat.com>

	* TODO: small updates
	* sysprof.c: cosmetic updates
	* module/sysprof-module.c: cosmetic updates
2006-01-05 22:52:59 +00:00
3c8bde00b4 Remove left over debug print out and add support for multiple clients
2005-12-20  Kristian Høgsberg  <krh@redhat.com>

        * module/sysprof-module.c: Remove left over debug print out and
        add support for multiple clients (readers).
2005-12-20 22:45:34 +00:00
acc0ee9ec9 Remove left over debug print out.
2005-12-20  Kristian Høgsberg  <krh@redhat.com>

        * module/sysprof-module.c (sysprof_read): Remove left over debug
        print out.
2005-12-20 21:30:07 +00:00
c5172c58e6 Updates
Tue Dec 20 16:03:29 2005  Soeren Sandmann  <sandmann@redhat.com>

	* TODO: Updates

	* sysprof-text.c (main): Make it try and load the module before
	complaining.
2005-12-20 20:51:39 +00:00
ad5ffd749b Dist and install udev rule.
2005-12-20  Kristian Høgsberg  <krh@redhat.com>

        * Makefile.am: Dist and install udev rule.

        * collector.c: (open_fd):
        * sysprof-text.c: (no_module):
        * sysprof.c: (on_start_toggled): Update device filename.

        * 60-sysprof.rules: New udev rule file to set permissions for
        sysprof char device.

        * module/sysprof-module.c: Switch kernel module to use a misc char
        device instead.  Start and stop the timer on device open and
        close instead of module load and unload.
2005-12-20 17:55:03 +00:00
c1f411c356 Add backslashes, pointed out by Ralph Siemsen.
Tue Dec 20 12:19:34 2005  Søren Sandmann  <sandmann@redhat.com>

	* configure.ac: Add backslashes, pointed out by Ralph Siemsen.
2005-12-20 17:20:10 +00:00
02242d500b Make the tree tree-shapeed.
Mon Dec 19 17:39:09 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof.c (add_text): Make the tree tree-shapeed.
2005-12-19 22:39:34 +00:00
6d7d972654 file announce-1.0.1 was initially added on branch sysprof-1-0. 2005-12-19 21:43:58 +00:00
1fe1419ef3 *** empty log message *** 2005-12-19 20:29:57 +00:00
a829366b72 A few formatting fixes. Hopefully make it work with x86-64.
Mon Dec 19 15:15:48 2005  Søren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c (timer_notify): A few formatting
	fixes. Hopefully make it work with x86-64.
2005-12-19 20:24:18 +00:00
35de8d36a0 New function. Update screenshot window when rows are expanded and
2005-11-29  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c (on_descendants_row_expanded_or_collapsed): New
        function. Update screenshot window when rows are expanded and
        collapsed.
2005-11-30 07:12:32 +00:00
8b66aa02f8 *** empty log message *** 2005-11-25 03:43:24 +00:00
96188f3c99 Update the screenshot window.
2005-11-23  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof.c (update_screenshot_window): Update the screenshot
	window.
2005-11-24 04:53:19 +00:00
22d15cd2cc Various cleanups
Wed Nov 23 00:44:34 2005  Soeren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c: Various cleanups

        * TODO: updates
2005-11-23 05:33:12 +00:00
ecfcee7ab1 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
2005-11-23 04:26:36 +00:00
6797b3ef04 Make configure work 2005-11-18 15:55:36 +00:00
7414ddd5db 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.
2005-11-14 02:44:15 +00:00
b6e9105cd2 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.
2005-11-13 04:28:57 +00:00
3a306d20d0 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.
2005-11-13 00:46:08 +00:00
c3ce4ef8c5 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.
2005-11-09 05:39:25 +00:00
00244118a2 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
2005-11-08 04:32:19 +00:00
1bf3734fdb 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.
2005-11-07 03:53:20 +00:00
fe5dd1e1fa 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.
2005-11-07 02:27:55 +00:00
64b2627c4a 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.
2005-11-06 23:27:17 +00:00
c1bfbbf9b8 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().
2005-11-06 22:10:30 +00:00
c0aed2a4de 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
2005-11-05 22:57:09 +00:00
1f5b6ff38c 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
2005-11-05 17:28:22 +00:00
cf761a2a70 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.
2005-11-05 04:58:16 +00:00
5bddcf4af9 +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.
+
2005-11-05 00:49:34 +00:00
4f270a0f48 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.
2005-11-02 05:10:13 +00:00
c778a1b1ec 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.
2005-11-01 04:37:16 +00:00
81ad181667 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.
2005-11-01 02:37:09 +00:00
fe134ed8a2 Update TODO 2005-10-31 15:21:26 +00:00
ec8798a8b1 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
2005-10-31 05:20:37 +00:00
c34a9b862f TODO 2005-10-31 04:20:25 +00:00