Commit Graph

111 Commits

Author SHA1 Message Date
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
71db050480 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.
2005-05-14 19:53:53 +00:00
e6b3ae64bd *** empty log message *** 2005-05-10 13:07:20 +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
2b0ca11c6c +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.
+
2005-04-16 21:08:44 +00:00
06023f625e Add backtrace for kernel oops.
Sat Apr 16 01:54:18 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Add backtrace for kernel oops.
2005-04-16 05:58:40 +00:00
a3b1e000e6 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.
2005-04-15 20:38:58 +00:00
846cfa22b9 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
2005-04-09 21:51:28 +00:00
b3c466debf Remove debug spew
Sat Apr  9 17:04:50 2005  Søren Sandmann  <sandmann@redhat.com>

	* Makefile: Remove debug spew

	* *: Add copyright notices
2005-04-09 21:17:24 +00:00
9ea5bacadc More updates
Fri Apr  8 21:30:02 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: More updates
2005-04-09 01:32:17 +00:00
334f883d77 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
2005-04-09 00:51:25 +00:00
bda89efc68 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.
2005-04-06 03:04:34 +00:00
88c3bbb880 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
2005-04-06 00:16:12 +00:00
700cf9c967 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
2005-04-05 18:37:13 +00:00
4a4a5fc5ca 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
2005-04-04 06:19:16 +00:00
9bddb58d92 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.
2005-04-04 03:53:32 +00:00
6c408203c2 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
2005-04-03 22:06:00 +00:00
bef6878e61 Remove stray %
Thu Mar 31 23:09:09 2005  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c (build_gui): Remove stray %
2005-04-03 03:36:59 +00:00
5f280920c5 Right justify numbers
Thu Mar 31 21:18:13 2005  Søren Sandmann  <sandmann@redhat.com>

        * treeviewutils.c (add_double_format_column): Right justify numbers

        * sysprof.c (build_gui): Add a space after the numbers

        * sysprof.c (on_callers_row_activated): Focus object view

        * sysprof.c (on_descendants_row_activated): Focus new descendants
        tree.
2005-04-01 02:28:50 +00:00
39162c394a Walk all threads, not just all processes.
Thu Mar 31 19:51:51 2005  Søren Sandmann  <sandmann@redhat.com>

        * sysprof-module.c (do_generate): Walk all threads, not just all
        processes.

        * TODO: Add disk profiling ideas
2005-04-01 00:58:48 +00:00
d33a9703a0 Make this function work
Thu Mar 31 00:19:47 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof.c (set_busy): Make this function work

	* sysprof.c (on_profile_toggled): Use it here

	* sysprof.c (on_object_selection_changed): And here

	* profile.c (add_trace_to_tree): Use GPtrArrays instead of
	GHashTable and GList.
2005-03-31 05:21:58 +00:00
c2dc2c3680 updates
Mon Mar 28 11:09:02 2005  Soeren Sandmann  <sandmann@redhat.com>

	* TODO: updates
2005-03-28 16:10:01 +00:00
398603a85d Show the right number of samples afte Open; remove shadows from menu bars
Sat Mar 26 19:26:52 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof.c: Show the right number of samples afte Open; remove
	shadows from menu bars and toolbars; some other tweaks.
2005-03-27 00:31:01 +00:00
cc25479579 Updates
Sat Mar 26 11:26:00 2005  Soeren Sandmann  <sandmann@redhat.com>

	* TODO: Updates

	* sfile.c (add_string): Use g_markup_escape_text() to escape the
	string before adding it to the file.

	* sysprof.c (empty_file_descriptor): New function to make sure
	samples generated before profiling started are ignored.
	(set_busy): New commented out function to set a busy cursor.
2005-03-26 16:34:11 +00:00
1787419687 Comment out sensitivity of reset button.
Fri Mar 25 21:31:08 2005  Søren Sandmann  <sandmann@redhat.com>

       * sysprof.c (update_sensitivity): Comment out sensitivity of reset button.
2005-03-26 02:35:56 +00:00
e9bd305866 Return NULL if nothing is selected.
Fri Mar 25 21:25:31 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof.c (get_current_object): Return NULL if nothing is
	selected.
2005-03-26 02:28:32 +00:00
27934e057c Remove hard-coded toolbar property 2005-03-26 02:16:25 +00:00
360efcf2cd *** empty log message *** 2005-03-26 02:12:01 +00:00
d4ea20318d More updates
Fri Mar 25 20:54:08 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: More updates
2005-03-26 01:55:49 +00:00
34ec80c9f4 Require gtk+ 2.6
Fri Mar 25 20:25:44 2005  Søren Sandmann  <sandmann@redhat.com>

	* README: Require gtk+ 2.6

	* treeviewutils.c (add_plain_text_column): Ellipsisize text columns.
2005-03-26 01:27:35 +00:00
0901851c45 Remove "loading and saving"
Fri Mar 25 19:39:24 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Remove "loading and saving"

	* sysprof.glade: Add ellipsises to Open and Save menu items.

	* sysprof.c (overwrite_file): Add this function, cutted-and-pasted
	from evince.

	* sysprof.c (on_save_as_clicked, on_open_clicked): Use
	GtkFileChoosers to pick the names.

	* sysprof.c: Various GUI updates.
2005-03-26 01:19:07 +00:00
50c62b0804 Various GUI updates
Thu Mar 24 19:09:33 2005  Søren Sandmann  <sandmann@redhat.com>

	* sysprof.c: Various GUI updates

	* TODO: update

	* sfile.[ch] (sformat_new_optional): Add some notes about an
	"optional" construction.
2005-03-25 00:12:37 +00:00
2af6447238 Primitive loading and saving.
Wed Mar 23 00:04:07 2005  Soeren Sandmann  <sandmann@redhat.com>

	Primitive loading and saving.

	* sysprof.c (on_open_clicked): Hook up loading.

	* sfile.c: Add a copy of g_file_replace() from glib CVS HEAD.

	* sfile.c (add_string): Escape and quote the string

	* sfile.c (sfile_load): Initialize current_instruction and
	instructions_by_location

	* sfile.c (post_process_instructions_recurse): Handle NULL
	pointers properly.

	* sfile.c (handle_begin_element, handle_end_element, handle_text):
	Move error handling here from state_transition_begin/text/end.

	* sfile.c (handle_text): Discard whitespace-only strings

	* sfile.c (sfile_get_pointer, sfile_get_integer,
	sfile_get_string): expect both begin, value, and end transitions.

	* sfile.c (hook_up_pointers): Only treat instructions as pointer
	values when they are. Handle NULL targets properly.

	* sfile.c (get_number): Fix a few read-freed-data bugs

	* profile.c (profile_load): Call sfile_end_get() for the profile;
	build the nodes_by_objects hash table. Build the call tree.

	* profile.c (create_format): Don't store next pointer, but do
	store total, self and toplevel.

	* profile.c (make_hash_table): New function to build
	nodes_by_object hashtable from loaded data
2005-03-23 05:05:57 +00:00
64a1ac6355 Fix small bug in add_timeout() More descriptive tree labels update
Sat Mar 12 11:05:19 2005  Soeren Sandmann  <sandmann@redhat.com>

	* sysprof-module.c: Fix small bug in add_timeout()
	* sysprof.c (build_gui): More descriptive tree labels
	* TODO: update
2005-03-12 16:05:58 +00:00
e0a2d061c6 s/Cummulative/Cumulative/. Pointed out by Ian McIntosh.
Thu Mar 10 16:37:52 2005  Søren Sandmann  <sandmann@redhat.com>

        * sysprof.c (build_gui): s/Cummulative/Cumulative/. Pointed out by
        Ian McIntosh.
2005-03-10 21:39:01 +00:00