Commit Graph

152 Commits

Author SHA1 Message Date
2bc2e3658d Add beginning of an ELF parser.
2006-08-15  Soren Sandmann  <sandmann@redhat.com>

	Add beginning of an ELF parser.

	* binparser.[ch]: New files
	* elfparser.[ch]: New files
	* testelf.c: New file
	* Makefile.am (testelf_SOURCES): Add new testelf program.
2006-08-16 03:31:10 +00:00
c2f754dfb6 Make n_samples per-cpu. Add an atomic variable in_timer_notify and use it
Sat Aug 12 16:13:05 2006  Søren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c: Make n_samples per-cpu. Add an atomic
	variable in_timer_notify and use it to lock out simultaneous timer
	interrupts.

	* stackstash.c (decorate_node): Make decorate_node() static

	* TODO
2006-08-12 20:15:52 +00:00
060fd343a8 Updates
Fri Aug 11 11:41:15 2006  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Updates
2006-08-11 15:41:46 +00:00
2bc1d6f280 Incomplete ChangeLog entry 2006-08-09 03:06:04 +00:00
f06e272ea7 Make the load_file() idle low priority to avoid weird toolbar flash.
2006-08-08  Soren Sandmann  <ssp@localhost.localdomain>

	* sysprof.c (main): Make the load_file() idle low priority to
	avoid weird toolbar flash.

	* TODO: updates.
2006-08-09 03:05:34 +00:00
23d3a36a4a small cleanup 2006-07-31 18:52:12 +00:00
d43cdf3c14 Add a destroy notifier to StackStash
2006-07-31  Soren Sandmann <sandmann@redhat.com>

	* stackstash.[ch]: Add a destroy notifier to StackStash

	* collector.c (collector_create_profile): Pass g_free as destroy
	notifier.

	* collector.c (collector_reset): Pass NULL as destroy notifier

	* profile.c (profile_load): Pass g_free here.

	* profile.c (struct Profile): Remove unused "Node" typedef

	* collector.c (resolve_symbols): Free the array here.

	* TODO: various updates.
2006-07-31 04:50:34 +00:00
5efd06051c Simplify this file a bit, and make it not rely on atomic pointer writes.
2006-07-30  Soren Sandmann <sandmann@redhat.com>

	* signal-handler.c: Simplify this file a bit, and make it not rely
	on atomic pointer writes.
2006-07-31 02:12:23 +00:00
144e440ff2 we need at least glib 2.6.0 for the gstdio.h functions
2006-07-18  Bastien Nocera  <hadess@hadess.net>

	* configure.ac: we need at least glib 2.6.0 for the gstdio.h functions
2006-07-18 16:32:05 +00:00
24ed3d06ca Updates
2006-06-05  Soren Sandmann <sandmann@redhat.com>

	* TODO: Updates
2006-06-05 22:38:30 +00:00
e97dcc792a updates Various formatting fixes.
Sat Apr 22 15:08:01 2006  Soeren Sandmann  <sandmann@redhat.com>

	* TODO: updates
	* profile.c, sfile.c, sformat.c: Various formatting fixes.
2006-04-22 19:08:23 +00:00
6c36cd060c updates
Wed Apr  5 11:26:30 2006  Søren Sandmann  <sandmann@redhat.com>

        * TODO: updates
2006-04-05 15:26:47 +00:00
9e612d798a Updates.
Mon Mar 27 23:04:30 2006  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: Updates.

        * sfile.c (handle_{begin,end}_element): Don't generate begin/end
        instructions for value elements.

        * sfile.c (build_instructions): Remove debugging spew.
2006-03-28 04:08:14 +00:00
6534ca13c0 New files containing a simplified and sanitized version of the state
Mon Mar 27 21:44:04 2006  Soeren Sandmann  <sandmann@redhat.com>

        * sformat.[ch]: New files containing a simplified and sanitized
        version of the state machine and type system from sfile.c.

        * sfile.c: Move the state machine and type management to separate
        files. Make the amount of memory used during loading and saving
        less obscene.

        * stackstash.c (stack_stash_new_from_root): Make this function
        store the root again.
2006-03-28 03:02:21 +00:00
3c5240c7ef updates
Mon Mar 27 09:55:01 2006  Søren Sandmann  <sandmann@redhat.com>

        * TODO: updates
2006-03-27 14:57:14 +00:00
9859854cc1 updates
2006-03-11 Soren Sandmann <sandmann@redhat.com>

	* TODO: updates

	* stackstash.[ch]: Make stackstash refcounted

	* collector.c, profile.c: Update for refcounted stackstash, plug
	leak.

	* collector.c (open_fd): Remove FIXME comment
2006-03-12 04:00:23 +00:00
849efc820d Do proper error-handling.
2006-03-05 Soeren Sandmann <sandmann@redhat.com>

        * sysprof-text.c, collector.c, sysprof.c: Do proper
        error-handling.
2006-03-05 21:11:07 +00:00
ebb7728768 Check that the inodes match.
Fri Mar  3 22:28:03 2006  Soeren Sandmann  <sandmann@redhat.com>

        * process.c (process_lookup_symbol): Check that the inodes match.

        * binfile.c (read_symbols): Read the inode of the file

        * binfile.c (read_symbols): Close the bfd if the symbol table
        could not be read.
2006-03-04 03:28:26 +00:00
0d6d997f4a Handle NULL models.
Thu Mar  2 22:54:37 2006  Soeren Sandmann  <sandmann@redhat.com>

        * treeviewutils.c (tree_view_foreach_visible): Handle NULL models.

        * sysprof.glade, sysprof.c: Revert back to three pane layout.
2006-03-03 03:55:04 +00:00
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
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
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