platform/upstream/sysprof.git
17 years agoUse PAGE_SIZE - 1 instead of 4096.
Soren Sandmann [Mon, 23 Oct 2006 13:02:40 +0000 (13:02 +0000)]
Use PAGE_SIZE - 1 instead of 4096.

2006-10-23  Soren Sandmann <sandmann@daimi.au.dk>

* module/sysprof-module.c (init_module): Use PAGE_SIZE - 1 instead
of 4096.

17 years agoCommunicate traces to userspace through shared memory instead of copying.
Soren Sandmann [Mon, 23 Oct 2006 03:46:25 +0000 (03:46 +0000)]
Communicate traces to userspace through shared memory instead of copying.

2006-10-22  Soren Sandmann <sandmann@daimi.au.dk>

Communicate traces to userspace through shared memory instead of
copying.

* module/sysprof-module.c: Store the traces in a SysprofMmapArea.
(sysprof_mmap): Implement this method.
(sysprof_nopage): Implement this.
(sysprof_read): Just reset the tail pointer and return zero.

* module/sysprof-module.h (struct SysprofMmapArea): New
structure.

* collector.c (collector_stop): Unmap the device
(in_dead_period): New function
(on_read): Read the traces out of mmap()ed area instead of reading
them. Call read() to prevent poll() from firing.
(struct Collector): New members map_area and current.

* Makefile.am (insert-module): Prefix modprobe with /sbin

* collector.c (open_fd): mmap() the sysprof device.

17 years agoSkip nodes that don't have a parent.
Soren Sandmann [Thu, 12 Oct 2006 03:45:21 +0000 (03:45 +0000)]
Skip nodes that don't have a parent.

2006-10-11  Soren Sandmann <sandmann@daimi.au.dk>

* profile.c (profile_list_callers): Skip nodes that don't have a
parent.

17 years agoMake this function return a list of immediate callers again.
Soren Sandmann [Wed, 11 Oct 2006 05:37:24 +0000 (05:37 +0000)]
Make this function return a list of immediate callers again.

2006-10-09  Soren Sandmann <sandmann@daimi.au.dk>

* profile.c (profile_list_callers): Make this function return a
list of immediate callers again.

* sysprof.c (build_gui): Change label back to "Callers"

* process.c (get_kernel_symbols): Only attempt to read the kernel
symbols once.

17 years ago+2006-10-09 Soren Sandmann <sandmann@redhat.com>
Søren Sandmann Pedersen [Tue, 10 Oct 2006 00:52:44 +0000 (00:52 +0000)]
+2006-10-09  Soren Sandmann <sandmann@redhat.com>
+
+       * binfile.c (bin_file_get_inode): Remove this function
+
+       * binfile.c (bin_file_check_inode): New function. Only print inode
+       warning once per BinFile.
+
+       * process.c (process_get_vdso_bytes): Remove debug spew
+

17 years agoNew function.
Soren Sandmann [Mon, 9 Oct 2006 21:32:24 +0000 (21:32 +0000)]
New function.

2006-10-09  Soren Sandmann  <ssp@localhost.localdomain>

* process.c (process_get_vdso_bytes): New function.

* elfparser.c (parser_new_from_data): export this function as
elf_parser_new_from_data().

* binfile.c (read_inode): Don't stat if filename is
'[vdso]'. Instead just return -1;
(bin_file_new): Use elf_parser_new_from_data() when the file is
[vdso].

* process.c (read_maps): Change the offset of the vdso map to 0
and the inode to -1.

* elfparser.c (elf_parser_lookup_symbol): Remove unused 'size'
variable.

* binfile.c (find_separate_debug_file): Deal with cycles in the
debuglink graph.

* configure.ac: Set version to 1.1.0. Print warning about HEAD.

17 years agoDon't include bfd.h
Soren Sandmann [Mon, 9 Oct 2006 02:25:46 +0000 (02:25 +0000)]
Don't include bfd.h

2006-10-08   Soren Sandmann <sandmann@daimi.au.dk>

* binfile.c: Don't include bfd.h

17 years agoNew function to support --version option
Soren Sandmann [Sun, 8 Oct 2006 22:05:47 +0000 (22:05 +0000)]
New function to support --version option

2006-10-08  Soren Sandmann <sandmann@redhat.com>

* sysprof.c (process_options): New function to support --version option

17 years agoAdd a cache of the text section.
Soren Sandmann [Sun, 8 Oct 2006 20:14:25 +0000 (20:14 +0000)]
Add a cache of the text section.

2006-10-08  Soren Sandmann  <sandmann@redhat.com>

* elfparser.c (struct ElfParser): Add a cache of the text section.

* binparser.c (struct BinParser): Add a cache of a bin record to
get rid of malloc()/free() overhead.

* elfparser.c (struct ElfSym): Cache the size of the symbol

17 years agoRemove now unused load-address heuristic
Soren Sandmann [Sun, 8 Oct 2006 18:50:10 +0000 (18:50 +0000)]
Remove now unused load-address heuristic

2006-10-08  Soren Sandmann <sandmann@redhat.com>

* elfparser.c: Remove now unused load-address heuristic

* comment out debug spew

17 years agoUse "SHT_DYNSYM" for ".dynsym".
Soren Sandmann [Sun, 8 Oct 2006 18:09:17 +0000 (18:09 +0000)]
Use "SHT_DYNSYM" for ".dynsym".

2006-10-08  Soren Sandmann <sandmann@redhat.com>

* elfparser.c (read_symbols): Use "SHT_DYNSYM" for ".dynsym".

17 years agoSupport _debuglink recursions.
Soren Sandmann [Sun, 8 Oct 2006 17:45:09 +0000 (17:45 +0000)]
Support _debuglink recursions.

2006-10-08  Soren Sandmann <sandmann@daimi.au.dk>

* binfile.c (find_separate_debug_file): Support _debuglink
recursions.

* elfparser.c: Check that the sections have valid types before
using them.

17 years agoDelete debug spew
Søren Sandmann Pedersen [Sun, 8 Oct 2006 04:07:18 +0000 (04:07 +0000)]
Delete debug spew

17 years agoDeal with address offsets. Address lookup is now:
Soren Sandmann [Sun, 8 Oct 2006 04:03:02 +0000 (04:03 +0000)]
Deal with address offsets. Address lookup is now:

2006-10-07  Soren Sandmann  <sandmann@daimi.au.dk>

Deal with address offsets. Address lookup is now:

- First convert the address to an offset into the file
- Then convert to an offset into the text segment
- Then add the load address of the text segment (found in the
debug binary)
- Then finally lookup the result in the symbol table.

* elfparser.c (elf_parser_get_text_offset): New function

* elfparser.c (elf_parser_lookup_symbol): Treat addresses as
offsets into the text segment.

* binfile.c (bin_file_new): Store the offset of the text section
of the actual binary (not the debug one)

(bin_file_lookup_symbol): Subtract text_offset before passing
address to elf parser.

* module/sysprof-module.c: Remove include of linux/config.h

17 years agoRemove old commented out code Add commented out code accessing entire
Soren Sandmann [Sat, 23 Sep 2006 03:09:24 +0000 (03:09 +0000)]
Remove old commented out code Add commented out code accessing entire

2006-08-27  Soren Sandmann <sandmann@redhat.com>

        * binparser.c: Remove old commented out code
        * module/sysprof-module.c: Add commented out code accessing entire
        stack.

2006-08-27  Soren Sandmann  <sandmann@redhat.com>

        * module/Makefile ($(MODULE).o): Add dependency on sysprof-module.h

        * elfparser.c (elf_parser_get_eh_frame): Add this function.
        Remove some commented out code.

17 years agoRevert accidental commit
Søren Sandmann Pedersen [Sat, 23 Sep 2006 00:57:20 +0000 (00:57 +0000)]
Revert accidental commit

17 years agoRemove old commented out code
Soren Sandmann [Sat, 23 Sep 2006 00:54:01 +0000 (00:54 +0000)]
Remove old commented out code

2006-08-27  Soren Sandmann <sandmann@redhat.com>

* binparser.c: Remove old commented out code

2006-08-27  Soren Sandmann  <sandmann@redhat.com>

* module/Makefile ($(MODULE).o): Add dependency on sysprof-module.h

* elfparser.c (elf_parser_get_eh_frame): Add this function.
Remove some commented out code.

17 years agoFormatting fixes in header files
Søren Sandmann Pedersen [Sat, 26 Aug 2006 23:10:10 +0000 (23:10 +0000)]
Formatting fixes in header files

17 years agoUpdate to new API
Soren Sandmann [Sat, 26 Aug 2006 23:01:07 +0000 (23:01 +0000)]
Update to new API

2006-08-26  Soren Sandmann <sandmann@daimi.au.dk>

* elfparser.c: Update to new API

* binparser.h: Delete commented out declarations. Add new
functions.

* binparser.c: Delete ParserFrame, replace with one current
offset.
(convert_uint): Make static
(bin_parser_get_uint): Delete this function
(bin_parser_get_string): Change this function to use current
offset instead of frame offset.
(bin_parser_goto): New function
(bin_parser_align): New function
(bin_parser_get_uint32): New function
(bin_parser_begin): Delete this function
(bin_parser_end): Delete this function
(bin_parser_index): Delete this function
(bin_record_get_string_indirect): Make this function use _goto()
instead of _begin()/_end()
(bin_parser_get_offset): Make this function return current offset

17 years agoAdd new struct BinRecord. Comment out functions related to formats. Add
Soren Sandmann [Sat, 26 Aug 2006 22:44:12 +0000 (22:44 +0000)]
Add new struct BinRecord. Comment out functions related to formats. Add

2006-08-26  Soren Sandmann <sandmann@daimi.au.dk>

* binparser.[ch]: Add new struct BinRecord. Comment out functions
related to formats. Add new functions to get fields out of
BinRecords.

* elfparser.c: Update to new API.

17 years agoAdd new bin_record() functions Implement them.
Soren Sandmann [Sat, 26 Aug 2006 16:44:17 +0000 (16:44 +0000)]
Add new bin_record() functions Implement them.

2006-08-26  Soren Sandmann <sandmann@daimi.au.dk>

* binparser.h: Add new bin_record() functions
* binparser.c: Implement them.

17 years agoDemangle instead of strdup.
Soren Sandmann [Sat, 26 Aug 2006 16:27:00 +0000 (16:27 +0000)]
Demangle instead of strdup.

2006-08-22  Soren Sandmann <sandmann@daimi.au.dk>

* collector.c (unique_dup): Demangle instead of strdup.

17 years agoRename elf_sym_get_* to elf_parser_get_sym_* and make these functions take
Soren Sandmann [Tue, 22 Aug 2006 04:19:08 +0000 (04:19 +0000)]
Rename elf_sym_get_* to elf_parser_get_sym_* and make these functions take

2006-08-21  Soren Sandmann <sandmann@redhat.com>

* elfparser.[ch]
(elf_parser_get_sym_name): Rename elf_sym_get_* to
elf_parser_get_sym_* and make these functions take a parser.
(parser_from_sym): Delete this function.
(elf_parser_new): Don't add to all_elf_parsers
(elf_parser_free): Don't remove from all_elf_parsers
(elf_parser_new): Rename to parser_new_from_file()
(elf_parser_new_from_file): Rename to elf_parser_new

* binfile.c: Update for new elfparser API

* TODO: updates

17 years agoAdd ref_count and filename (bin_files): Add map from filenames to BinFiles
Soren Sandmann [Tue, 22 Aug 2006 03:26:57 +0000 (03:26 +0000)]
Add ref_count and filename (bin_files): Add map from filenames to BinFiles

2006-08-21  Soren Sandmann <sandmann@redhat.com>

* binfile.c (struct BinFile): Add ref_count and filename
(bin_files): Add map from filenames to BinFiles
(bin_file_new): First look for BinFile in the cache.
(bin_file_free): If refcount reaches 0, remove BinFile from cache.

* TODO: Updates

17 years agoPass map->bin_file to bin_symbol_get_name.
Soren Sandmann [Mon, 21 Aug 2006 06:00:57 +0000 (06:00 +0000)]
Pass map->bin_file to bin_symbol_get_name.

2006-08-21  Soren Sandmann <sandmann@redhat.com>

* process.c (process_lookup_symbol): Pass map->bin_file to
bin_symbol_get_name.

* binfile.h (bin_symbol_get_name): Add BinFile parameter

* elfparser.c (elf_demangle): Use options DMGL_PARAMS | DMGL_ANSI

* TODO: Updates

* binfile.c: Rewrite this file to use ElfParser instead of libbfd.

* configure.ac: Drop dependencies on libbfd and libiberty.

17 years agoUpdate
Soren Sandmann [Mon, 21 Aug 2006 05:00:53 +0000 (05:00 +0000)]
Update

2006-08-21  Soren Sandmann <sandmann@redhat.com>

* TODO: Update

* elfparser.c (elf_parser_lookup_symbol): Change sense of size
check.

17 years agoInitialize crc to 0xffffffff and invert it before returning.
Soren Sandmann [Mon, 21 Aug 2006 04:12:12 +0000 (04:12 +0000)]
Initialize crc to 0xffffffff and invert it before returning.

2006-08-20  Soren Sandmann <sandmann@redhat.com>

* elfparser.c (elf_parser_get_crc32): Initialize crc to 0xffffffff
and invert it before returning.

* elfparser.h: Declare elf_parser_get_debug_link()

17 years agoComment out debug spew. (elf_parser_lookup_symbol): Add check that address
Soren Sandmann [Mon, 21 Aug 2006 03:34:44 +0000 (03:34 +0000)]
Comment out debug spew. (elf_parser_lookup_symbol): Add check that address

2006-08-20  Soren Sandmann  <sandmann@daimi.au.dk>

* elfparser.c (elf_parser_get_load_address): Comment out debug spew.
(elf_parser_lookup_symbol): Add check that address is actually
within the bounds of the found function.

17 years agoMake process_lookup_symbol() return a string. Delete
Soren Sandmann [Mon, 21 Aug 2006 02:33:38 +0000 (02:33 +0000)]
Make process_lookup_symbol() return a string. Delete

2006-08-20  Soren Sandmann  <sandmann@daimi.au.dk>

* process.h: Make process_lookup_symbol() return a string. Delete
process_lookup_symbol_with_filename().

* process.c (struct Process): Make "undefined" a string
(lookup_kernel_symbol): Return a string
(process_lookup_symbol): Return a string, not a symbol

* collector.c (unique_dup): Take a string instead of a
Symbol.
(lookup_symbol): Make sym a string instead of a Symbol.

* binfile.c (bin_symbol_get_name): New function.

* binfile.[ch] (struct BinSymbol): Rename Symbol to BinSymbol and
make it an opaque structure.

* binfile.[ch]: Remove unused symbol operations

17 years agoNew function
Soren Sandmann [Mon, 21 Aug 2006 01:30:54 +0000 (01:30 +0000)]
New function

2006-08-20  Soren Sandmann <sandmann@daimi.au.dk>

* elfparser.c (elf_parser_new_from_file): New function

17 years agoNew function
Soren Sandmann [Mon, 21 Aug 2006 00:18:10 +0000 (00:18 +0000)]
New function

2006-08-20   Soren Sandmann <sandmann@daimi.au.dk>

* elfparser.c (elf_parser_get_debug_link): New function

* elfparser.c: Delete SymbolTable typedef

* binparser.[ch] (bin_parser_get_data): New function
(bin_parser_get_length): New function

* elfparser.[ch] (elf_parser_get_crc32): New function

* TODO: Updates

* elfparser.c (elf_parser_lookup_symbol): Offset passed in
addresses by the load address.

* elfparser.c (elf_parser_get_load_address): New function to
compute the load address of the beginning of the file.

17 years agoRead the name out of the file instead of out of the struct.
Soren Sandmann [Sun, 20 Aug 2006 06:26:54 +0000 (06:26 +0000)]
Read the name out of the file instead of out of the struct.

2006-08-20  Soren Sandmann  <sandmann@redhat.com>

* elfparser.c (elf_sym_get_name): Read the name out of the file
instead of out of the struct.

* elfparser.c (struct ElfSym): Store an offset instead of the
name.

* elfparser.c (all_elf_parsers): Keep track of all elf parsers
created.

17 years agoNew file, made out of files from libiberty in binutils.
Soren Sandmann [Sun, 20 Aug 2006 04:32:12 +0000 (04:32 +0000)]
New file, made out of files from libiberty in binutils.

2006-08-20  Soren Sandmann  <sandmann@redhat.com>

* Makefile.am, demangle.c: New file, made out of files from
libiberty in binutils.

* binfile.c: Use the new sysprof_cplus_demangle() function

* elfparser.[ch]: Add code to lookup symbols. Add demangling
function

* testelf.c: Various tests

17 years agoMany cleanups.
Soren Sandmann [Sat, 19 Aug 2006 23:56:18 +0000 (23:56 +0000)]
Many cleanups.

2006-08-19  Soren Sandmann  <sandmann@redhat.com>

* elfparser.c: Many cleanups.

17 years agoPass the correct pointer.
Søren Sandmann [Wed, 16 Aug 2006 17:25:03 +0000 (17:25 +0000)]
Pass the correct pointer.

2006-08-16  Søren Sandmann  <ssp@localhost.localdomain>

* elfparser.c (check_symbol): Pass the correct pointer.

17 years agoReally add this file.
Soren Sandmann [Wed, 16 Aug 2006 17:21:54 +0000 (17:21 +0000)]
Really add this file.

2006-08-16  Soren Sandmann  <sandmann@redhat.com>

* testelf.c: Really add this file.

17 years agoAdd beginning of an ELF parser.
Soren Sandmann [Wed, 16 Aug 2006 03:31:10 +0000 (03:31 +0000)]
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.

17 years agoSome formatting fixes.
Søren Sandmann [Sat, 12 Aug 2006 20:40:58 +0000 (20:40 +0000)]
Some formatting fixes.

Sat Aug 12 16:40:38 2006  Søren Sandmann  <sandmann@redhat.com>

* module/sysprof-module.c: Some formatting fixes.

17 years agoMake n_samples per-cpu. Add an atomic variable in_timer_notify and use it
Søren Sandmann [Sat, 12 Aug 2006 20:15:52 +0000 (20:15 +0000)]
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

17 years agoUpdates
Søren Sandmann [Fri, 11 Aug 2006 15:41:46 +0000 (15:41 +0000)]
Updates

Fri Aug 11 11:41:15 2006  Søren Sandmann  <sandmann@redhat.com>

* TODO: Updates

17 years agoIncomplete ChangeLog entry
Søren Sandmann Pedersen [Wed, 9 Aug 2006 03:06:04 +0000 (03:06 +0000)]
Incomplete ChangeLog entry

17 years agoMake the load_file() idle low priority to avoid weird toolbar flash.
Soren Sandmann [Wed, 9 Aug 2006 03:05:34 +0000 (03:05 +0000)]
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.

18 years agosmall cleanup
Paolo Borelli [Mon, 31 Jul 2006 18:52:12 +0000 (18:52 +0000)]
small cleanup

18 years agoAdd a destroy notifier to StackStash
Soren Sandmann [Mon, 31 Jul 2006 04:50:34 +0000 (04:50 +0000)]
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.

18 years agoSimplify this file a bit, and make it not rely on atomic pointer writes.
Soren Sandmann [Mon, 31 Jul 2006 02:12:23 +0000 (02:12 +0000)]
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.

18 years agowe need at least glib 2.6.0 for the gstdio.h functions
Bastien Nocera [Tue, 18 Jul 2006 16:32:05 +0000 (16:32 +0000)]
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

18 years agoUpdate TODO
Søren Sandmann Pedersen [Fri, 9 Jun 2006 21:55:45 +0000 (21:55 +0000)]
Update TODO

18 years agofile announce-1.0.3 was initially added on branch sysprof-1-0.
Søren Sandmann Pedersen [Fri, 9 Jun 2006 03:08:38 +0000 (03:08 +0000)]
file announce-1.0.3 was initially added on branch sysprof-1-0.

18 years agoUpdate TODO
Søren Sandmann Pedersen [Wed, 7 Jun 2006 16:18:44 +0000 (16:18 +0000)]
Update TODO

18 years agoUpdates
Soren Sandmann [Mon, 5 Jun 2006 22:38:30 +0000 (22:38 +0000)]
Updates

2006-06-05  Soren Sandmann <sandmann@redhat.com>

* TODO: Updates

18 years agoupdates Various formatting fixes.
Soeren Sandmann [Sat, 22 Apr 2006 19:08:23 +0000 (19:08 +0000)]
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.

18 years agoupdates
Søren Sandmann [Wed, 5 Apr 2006 15:26:47 +0000 (15:26 +0000)]
updates

Wed Apr  5 11:26:30 2006  Søren Sandmann  <sandmann@redhat.com>

        * TODO: updates

18 years agoUpdates.
Soeren Sandmann [Tue, 28 Mar 2006 04:08:14 +0000 (04:08 +0000)]
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.

18 years agoNew files containing a simplified and sanitized version of the state
Soeren Sandmann [Tue, 28 Mar 2006 03:02:21 +0000 (03:02 +0000)]
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.

18 years agoupdates
Søren Sandmann [Mon, 27 Mar 2006 14:57:14 +0000 (14:57 +0000)]
updates

Mon Mar 27 09:55:01 2006  Søren Sandmann  <sandmann@redhat.com>

        * TODO: updates

18 years agoupdates
Soren Sandmann [Sun, 12 Mar 2006 04:00:23 +0000 (04:00 +0000)]
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

18 years agoDo proper error-handling.
Soeren Sandmann [Sun, 5 Mar 2006 21:11:07 +0000 (21:11 +0000)]
Do proper error-handling.

2006-03-05 Soeren Sandmann <sandmann@redhat.com>

        * sysprof-text.c, collector.c, sysprof.c: Do proper
        error-handling.

18 years agoCheck that the inodes match.
Soeren Sandmann [Sat, 4 Mar 2006 03:28:26 +0000 (03:28 +0000)]
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.

18 years agoHandle NULL models.
Soeren Sandmann [Fri, 3 Mar 2006 03:55:04 +0000 (03:55 +0000)]
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.

18 years agoClear screenshot window when start is toggled.
Soeren Sandmann [Fri, 24 Feb 2006 07:10:42 +0000 (07:10 +0000)]
Clear screenshot window when start is toggled.

Fri Feb 24 02:09:33 2006  Soeren Sandmann  <sandmann@redhat.com>

        * sysprof.c (on_start_toggled): Clear screenshot window when start
        is toggled.

        * TODO: Add some notes about stack handling on the x86

18 years agofile announce-1.0.2 was initially added on branch sysprof-1-0.
Søren Sandmann Pedersen [Fri, 24 Feb 2006 02:38:31 +0000 (02:38 +0000)]
file announce-1.0.2 was initially added on branch sysprof-1-0.

18 years agoUpdate TODO
Søren Sandmann Pedersen [Mon, 20 Feb 2006 05:06:50 +0000 (05:06 +0000)]
Update TODO

18 years agomore ifdef's to make it work with Red Hat Enterprise Linux 4's 2.6.9-based
Bastien Nocera [Fri, 17 Feb 2006 15:44:55 +0000 (15:44 +0000)]
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

18 years agoRemove ancestors pane in favor of radiobuttons in the right pane.
Søren Sandmann [Sun, 5 Feb 2006 04:54:04 +0000 (04:54 +0000)]
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

18 years agoUpdates
Søren Sandmann [Wed, 25 Jan 2006 16:24:24 +0000 (16:24 +0000)]
Updates

Wed Jan 25 11:24:04 2006  Søren Sandmann  <sandmann@redhat.com>

* TODO: Updates

18 years agoUpdates
Søren Sandmann [Mon, 16 Jan 2006 16:12:44 +0000 (16:12 +0000)]
Updates

Mon Jan 16 11:12:13 2006  Søren Sandmann  <sandmann@redhat.com>

        * TODO: Updates

18 years agoPrint out sysprof version at module load time.
Soeren Sandmann [Mon, 16 Jan 2006 01:22:27 +0000 (01:22 +0000)]
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.

18 years agoUpdates
Soeren Sandmann [Sun, 15 Jan 2006 05:28:04 +0000 (05:28 +0000)]
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.

18 years agoOnly build GUI when the necessary dependencies are found.
Soeren Sandmann [Sat, 14 Jan 2006 23:26:34 +0000 (23:26 +0000)]
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.

18 years agoupdates
Søren Sandmann [Sat, 14 Jan 2006 04:12:12 +0000 (04:12 +0000)]
updates

Fri Jan 13 23:11:33 2006  Søren Sandmann  <sandmann@redhat.com>

* TODO: updates

18 years agoInitialize retval.
Soeren Sandmann [Sat, 14 Jan 2006 04:00:59 +0000 (04:00 +0000)]
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.

18 years agoAlso make offset a gulong (Samuel Mimram)
Søren Sandmann [Thu, 12 Jan 2006 01:32:06 +0000 (01:32 +0000)]
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)

18 years agoRemove debug spew.
Søren Sandmann [Wed, 11 Jan 2006 22:53:08 +0000 (22:53 +0000)]
Remove debug spew.

Wed Jan 11 17:51:54 2006  Søren Sandmann  <sandmann@redhat.com>

* collector.c: Remove debug spew.

* TODO: updates

18 years agoRemove START_OF_STACK check.
Soeren Sandmann [Mon, 9 Jan 2006 14:58:42 +0000 (14:58 +0000)]
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.

18 years agoUse gulong for addresses. Bug reported by Martin Reddy.
Soeren Sandmann [Mon, 9 Jan 2006 05:59:44 +0000 (05:59 +0000)]
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.

18 years agoResurrect this function.
Soeren Sandmann [Sun, 8 Jan 2006 08:22:47 +0000 (08:22 +0000)]
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

18 years agoupdate
Soeren Sandmann [Sun, 8 Jan 2006 07:20:25 +0000 (07:20 +0000)]
update

Sun Jan  8 02:19:34 2006  Soeren Sandmann  <sandmann@redhat.com>

        * TODO: update

18 years agosmall updates cosmetic updates cosmetic updates
Søren Sandmann [Thu, 5 Jan 2006 22:52:59 +0000 (22:52 +0000)]
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

18 years agoRemove left over debug print out and add support for multiple clients
Kristian Høgsberg [Tue, 20 Dec 2005 22:45:34 +0000 (22:45 +0000)]
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).

18 years agoRemove left over debug print out.
Kristian Høgsberg [Tue, 20 Dec 2005 21:30:07 +0000 (21:30 +0000)]
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.

18 years agoUpdates
Soeren Sandmann [Tue, 20 Dec 2005 20:51:39 +0000 (20:51 +0000)]
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.

18 years agoDist and install udev rule.
Kristian Høgsberg [Tue, 20 Dec 2005 17:55:03 +0000 (17:55 +0000)]
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.

18 years agoAdd backslashes, pointed out by Ralph Siemsen.
Søren Sandmann [Tue, 20 Dec 2005 17:20:10 +0000 (17:20 +0000)]
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.

18 years agoMake the tree tree-shapeed.
Søren Sandmann [Mon, 19 Dec 2005 22:39:34 +0000 (22:39 +0000)]
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.

18 years agofile announce-1.0.1 was initially added on branch sysprof-1-0.
Søren Sandmann Pedersen [Mon, 19 Dec 2005 21:43:58 +0000 (21:43 +0000)]
file announce-1.0.1 was initially added on branch sysprof-1-0.

18 years ago*** empty log message ***
Søren Sandmann Pedersen [Mon, 19 Dec 2005 20:29:57 +0000 (20:29 +0000)]
*** empty log message ***

18 years agoA few formatting fixes. Hopefully make it work with x86-64.
Søren Sandmann [Mon, 19 Dec 2005 20:24:18 +0000 (20:24 +0000)]
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.

18 years agoNew function. Update screenshot window when rows are expanded and
Soeren Sandmann [Wed, 30 Nov 2005 07:12:32 +0000 (07:12 +0000)]
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.

18 years ago*** empty log message ***
Søren Sandmann Pedersen [Fri, 25 Nov 2005 03:43:24 +0000 (03:43 +0000)]
*** empty log message ***

18 years agoUpdate the screenshot window.
Soeren Sandmann [Thu, 24 Nov 2005 04:53:19 +0000 (04:53 +0000)]
Update the screenshot window.

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

* sysprof.c (update_screenshot_window): Update the screenshot
window.

18 years agoVarious cleanups
Soeren Sandmann [Wed, 23 Nov 2005 05:33:12 +0000 (05:33 +0000)]
Various cleanups

Wed Nov 23 00:44:34 2005  Soeren Sandmann  <sandmann@redhat.com>

        * module/sysprof-module.c: Various cleanups

        * TODO: updates

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.