head	1.11;
access;
symbols
	v1_2_1:1.11
	oprofile-0_5_4-branch-sf-snapshot:1.1
	sf-snapshot:1.8
	oprofile-0_5_4-branch:1.1.0.2
	oprofile-0_5_4-branchpoint:1.1;
locks; strict;
comment	@# @;


1.11
date	2006.05.12.16.00.50;	author kseitz;	state Exp;
branches;
next	1.10;

1.10
date	2006.05.08.20.38.43;	author kseitz;	state Exp;
branches;
next	1.9;

1.9
date	2006.04.28.18.59.26;	author kseitz;	state Exp;
branches;
next	1.8;

1.8
date	2005.04.14.18.42.34;	author kseitz;	state Exp;
branches;
next	1.7;

1.7
date	2005.04.05.15.11.00;	author kseitz;	state Exp;
branches;
next	1.6;

1.6
date	2005.04.05.01.14.26;	author kseitz;	state Exp;
branches;
next	1.5;

1.5
date	2005.02.05.03.33.34;	author jhandcock;	state Exp;
branches;
next	1.4;

1.4
date	2005.02.05.02.10.17;	author jhandcock;	state Exp;
branches;
next	1.3;

1.3
date	2005.02.03.07.12.09;	author jhandcock;	state Exp;
branches;
next	1.2;

1.2
date	2004.10.13.07.24.35;	author jhandcock;	state Exp;
branches;
next	1.1;

1.1
date	2004.10.13.06.14.54;	author jhandcock;	state Exp;
branches;
next	;


desc
@@


1.11
log
@        * samplefile.h (samplefile): Remove unneccessary qualifier for
        constructor method.
@
text
@2006-05-12  Keith Seitz  <keiths@@redhat.com>

	* samplefile.h (samplefile): Remove unneccessary qualifier for
	constructor method.

2006-05-08  Keith Seitz  <keiths@@redhat.com>

	* procfileimage.cc (operator<<): When outputting an image
	with only dependencies, only output the first dependency's header. Then
	loop through the dependencies.

2006-04-28  Keith Seitz  <keiths@@redhat.com>

	* samplefile.h (get_name): Use is_dependency instead of has_samplefile
	when returnin the logical name.
	(_lib_image): Clarify comment.
	* samplefile.cc (_get_info_from_filename): Comment for "{kern}" or
	"{root}" is correct -- code was using "{kern}" and "{dep}", which is
	not correct.

2005-06-10  Keith Seitz  <keiths@@redhat.com>

	* opxml.cc (main): getopt_long_only returns an int, not a char.

2005-05-26  Jeremy Handcock  <handcock@@redhat.com>

	Eclipse.org Bugzilla #96849:
	* build.xml: Set failonerror="true" for all `exec' tasks.

2005-04-14  Keith Seitz  <keiths@@redhat.com>

	* Makefile: Don't link against elfutils.
	* build.xml: Likewise.
	
	* samplefile.h (get_name): Should return image name if we have
	a samplefile.

	* samplefile.cc (_get_info_from_filename): Fix typo "=" to
	"+=" for image name.

	* profileimage.cc (operator<<): Hack for --separate=none
	weirdness (see comments).
	(get_samples): Remove.
	* profileimage.h (get_samples): Remove.

	* oprofiledb.h (_is_kernel): New variable.
	* oprofiledb.cc (oprofile_db): Initialize _is_kernel;
	(_open_db): Note _is_kernel from the header.
	(_get_samples_callback): Pass _is_kernel to lookup_vma.
	* stable.h (lookup_vma): Add new is_kernel parameter. See comments.
	(_text_offset): New variable.
	* stable.cc (lookup_vma): Add is_kernel parameter. If from kernel,
	the vma is unchanged. If it is from user space, the vma must
	be adjusted by the start address and the offset to the first
	text section.
	(_open_bfd): Get rid of the ELF load address stuff. Don't seem to
	need it anymore.
	Loop through sections to find the offset to the first section
	marked as containing code.
	Note start address.

2005-04-05  Keith Seitz  <keiths@@redhat.com>

	* opinfo.h (get_cpu_frequency): Resurrect. It really is needed.
	* opinfo.cc (get_cpu_frequency): Likewise.
	(operator<<): Likewise.

2005-04-04  Keith Seitz  <keiths@@redhat.com>

	* oprofiledb.h (class oprofile_db): samples_odb_t is now called odb_t.
	odb_hash.h is now odb.h.
	* oprofiledb.cc (_open_db): Ditto the odb_t rename.
	(samples_odb_travel): Likewise.

2005-02-04  Jeremy Handcock  <handcock@@redhat.com>

	* imageheader.cc: Update license header.
	* imageheader.h: Likewise.
	* opinfo.cc: Likewise.
	* opinfo.h: Likewise.
	* oprofiledb.cc: Likewise.
	* oprofiledb.h: Likewise.
	* opxml.cc: Likewise.
	* oxmlstream.h: Likewise.
	* profileimage.cc: Likewise.
	* sample.cc: Likewise.
	* sample.h: Likewise.
	* samplefile.cc: Likewise.
	* samplefile.h: Likewise.
	* session.cc: Likewise.
	* session.h: Likewise.
	* sevent.cc: Likewise.
	* sevent.h: Likewise.
	* stable.cc: Likewise.
	* stable.h: Likewise.
	* symbol.cc: Likewise.
	* symble.h: Likewise.
	* xmlbuf.cc: Likewise.
	* xmlbuf.h: Likewise.
	* xmlfmt.cc: Likewise.
	* xmlfmt.h: Likewise.
	* xmltag.cc: Likewise.
	* xmltag.h: Likewise.

2005-02-04  Keith Seitz  <keiths@@redhat.com>

	* Makefile: Update dependencies and remove util.h and util.cc.
	* build.xml: Remove util.cc from build objects.
	* utl.h: Remove.
	* util.cc: Remove.
	* imageheader.h (imageheader): Take samplefile* parameter for constructor.
	(get_cpu_type): Rename to ...
	(get_cpu): ... this. Returns a string instead of OProfile's internal type.
	(get_event): Return string instead of u32.
	(get_count): Likewise.
	(get_unit_mask): Likewise.
	(get_cpu_speed): Remove dependency on OProfile internal data. For now,
	always returns zero until we can get a safer way to obtain this information.
	(_header): Remove variable.
	(_sfile): New variable.
	* imageheader.cc (imageheader): Now takes samplefile* as parameter.
	(operator<<): Use imageheader::get_cpu.
	* opinfo.h: Remove "optional" configury for older versions of OProfile. That
	dream is gone.
	(get_cpu_frequency): Remove. This would never make sense if we could do this
	analyze files from a remote system.
	* opinfo.cc: Remove "optional" configury, too.
	(get_cpu_frequency): Likewise.
	(operation<<): Make num-counters a single line. Now matches spec.
	Don't output old defaults or frequency.
	* oprofiledb.h (get_header): Remove.
	* oprofiledb.cc (get_header): Likewise.
	* profileimage.cc (get_count): Return samplefile::get_sample_count instead
	of get_count, which has been hijacked for another use.
	(get_header): Pass samplefile to imageheader.
	* samplefile.h (samplefile): Constructor now takes string filename.
	(has_samplefile): Get rid of _parsed_filename.
	(is_dependency): Likewise.
	(get_sample_count): "New" method.
	(get_sample_file_name): Get rid of _parsed_filename.
	(get_image): Likewise.
	(get_lib_image): Likewise.
	(get_name): Likewise.
	(get_event): Likewise.
	(get_count): HIJACKED! Returns the reset count used in the file. Use get_sample_count
	for previous behavior.
	(get_unit_mask): New method.
	(get_tgid): Likewise.
	(get_tid): Likewise.
	(get_cpu): Likewise.
	(get_callgraph): Likewise.
	(get_header): Remove.
	(get_sample_file_list): "New" static method. Used to be in util.cc.
	(event_for_filename): New static method.
	(_tokenize): New private method.
	(_get_info_from_filename): New private method.
	(_parsed_filename): Bye bye.
	(_filename, _image, _lib_image, _event, _count, _unit_mask, _tgid, _tid,
	_cpu, _callgraph): New variables.
	* samplefile.cc (samplefile): Now takes filename as parameter.
	Call _get_info_from_filename to initialize state.
	(_get_info_from_filename): New method.
	(event_for_filename): New method.
	(is_dependency): Move to header.
	(get_image): Ditto.
	(get_lib_image): Ditto.
	(get_name): Ditto.
	(get_count): Ditto -- and rename get_sample_count.
	(get_event): Ditto the move part.
	(get_header): Remove.
	(~samplefile): Whack all the _parsed_filename stuff.
	(get_sample_file_list): Make it part of this class and public.
	* session.h: Remove op_cpu_type.h.
	* session.cc (get_event): No more parsed_filename. Use samplefile::event_for_filename
	and pass the filename to samplefile.
	(get_events): Likewise.
	* sevent.h (sessionevent): Don't pass event name as reference.
	* sevent.cc (sessionevent): Likewise.
	Pass empty string to profileimage instead of NULL for "fake" images.
	* util.h: Remove.
	* util.cc: Likewise.

2005-01-26  Keith Seitz  <keiths@@redhat.com>

	* stable.cc (_open_bfd): Get rid of BFD for ELF file inspection.
	Use the gelf interface provided by libelf.
	* Makefile: Link against libelf.
	* build.xml: Likewise.
	* elf/internal.h: Remove.
	* elf/common.h: Remove.
	
2004-08-27  Keith Seitz  <keiths@@redhat.com>

	* Makefile: Update for OProfile-0.8.
	* build.xml: Likewise.
	* imageheader.cc: New file.
	* imageheader.h: New file.
	* oprofiledb.cc (_open_db): Remove err_msg. Return code of odb_open
	is now errno.
	(samples_odb_travel): New function.
	* oprofiledb.h: odb_hash.h is a system file.
	* opxml.cc (args_help): Use session and event names for gettting
	samples.
	(data_t): Remove definition.
	(eventlist_t): Remove global defintion.
	(event_sorter): Remove definition.
	(session_sorter): Rename to sevent_sorter. Update for sorting
	sessionevents.
	(samples): Remove counter argument. Use event name.
	Get sessionevent and output profileimages from that.
	(sessions):  Define local typedef for eventlist_t which contains
	sessionevents.
	Loop through all sessions and sessionevents, adding them to the list
	of known sessionevents, as necessary.
	Sort and output result.
	* profileimage.cc: New file.
	* profileimage.h: New file.
	* sample.cc (operator<<): Update comments about output.
	Remove unused code.
	* samplefile.cc (samplefile (int, string, string, bool)): Remove
	constructor.
	(samplefile (string)): Remove initializers.
	Remove basename/dir and counter junk.
	Parse the filename and store it.
	(samplefile (parsed_filename*)): New constructor.
	(~samplefile): Delete _parsed_filename, if allocated.
	(get_header): Use has_samplefile instead of _is_fake.
	(is_dependency): New method.
	(get_sample_file_name): Remove.
	(get_image): New method.
	(get_separate_sample_files): Remove.
	(get_lib_image): New method.
	(free_samplefiles): Remove.
	(get_name): New method.
	(get_count): Use has_samplefle instead of _is_fake.
	(has_samples): Remove.
	(get_event): New method.
	(is_separate_samplefile): Remove.
	(demangle_sample_filename): Remove.
	(get_parent_name): Remove.
	(get_samples): New method.
	(operator<<): Remove demangled name. Don't output dependencies here,
	it's now done in profileimage.
	* samplefile.h (demangle_sample_filename): Remove.
	(is_separate_sample_file): Remove.
	(get_parent_name): Remove.
	(samplefile (int, string, string, bool)): Remove constructor.
	(samplefile (parsed_filename*)): New constructor.
	(is_dependency): New method.
	(get_sample_file_name): Inline using parsed filename.
	(get_image): New method.
	(get_lib_image): New method.
	(get_name): New method.
	(get_header): Return opd_header instead of samplefile_header.
	(get_event): New method.
	(get_separate_sample_files): Remove.
	(has_samples): Remove.
	(free_samplefiles): Remove.
	(operator<<): Remove friend. Add to global scope.
	(_dir): Remove private data.
	(_basename): Likewise.
	(_ctr): Likewise.
	(_header): Likewise.
	(_parsed_filename): New private variable.
	* session.cc (get_samplefiles): Remove.
	(get_base_directory): New method.
	(get_event): CHANGED API USAGE. Now it searches for
	all sessionevents which collected the requested event name.
	(get_events): New method.
	(get_sessions): Remove special case for "default" session. OProfile-0.8
	now creates a real "current" session for this purpose.
	(operator<<): Remove.
	* session.h (get_samplefiles): Remove.
	(get_event): Rewrite. CHANGED API USAGE.
	(get_events): New method.
	(get_base_directory): New method.
	(operator<<): Remove.
	(session_counter): Remove.
	* sevent.cc: New file.
	* sevent.h: New file.
	* sfheader.cc: Remove.
	* sfheader.h: Remove.
	* stable.cc: Clean-up includes.
	(dump_table): Ifdef out.
	* stable.h (dump_table): Likewise.
	* util.cc (strip_counter_suffix): Remove.
	(separate_token): New extern declaration.
	(get_sample_file_list): Remove filter parameter.
	(parse_event_spec): New function.
	(reomve_base_dir): New function.
	(parse_filename): New function.
	* util.h (get_sample_file_list): Remove filter parameter.
	(parsed_filename): New datatype.
	(parse_filename): New function.
 
2004-08-10  Keith Seitz  <keiths@@redhat.com>

	* oprofiledb.cc (walk_samples): Call _close_db.
	(get_count): Use walk_samples.
	(get_header): Add important comment about _open-/_close_db.
	* samplefile.cc (samplefile): Initialize header to NULL. Delay
	processing of that until...
	(get_header): ... here.
	* samplefile.h (get_header): Remove inline definition.
	* stable.cc (read_symbols): Call _close_bfd.

2004-07-14  Keith Seitz  <keiths@@redhat.com>

	* build.xml: Use "basearch" instead of "arch" since this is
	already a pre-defined build variable in the pde builder scripts.

2004-04-05  Keith Seitz  <keiths@@redhat.com>

	From Tom Tromey  <tromey@@redhat.com>:
	* build.xml (destination): Use ${arch}.

2003-11-14  Keith Seitz  <keiths@@redhat.com>

	* sfheader.h (samplefile_header (const samplefile_header*)): New
	constructor.
	(~samplefile_header): New destructor.
	(_alloced): New private variable
	* sfheader.cc (samplefile_header (const samplefile_header*)): New
	constructor.
	(~sample_fileheader): New destructor.
	
	* session.cc (get_samplefiles): Use counter argument
	properly.
	Filter out separate sample files, but make sure that
	we make "fake" parents when necessary.
	(operator<<): Sample count should be long, not int.
	Add in separate samplfile counts, too.

	* samplefile.h (get_parent_name): New static method.
	(samplefile): Add "fake" parameter.
	(_is_fake): New private variable.
	* samplefile.cc (samplefile): Add fake parameter.
	Initialize _header to first separate sample file's header
	if this samplefile is fake.
	(~samplefile): Test if objects are non-NULL before deleting.
	(get_samples): Only look for samples in this file if it
	is not "fake".
	(get_count): If fake, return 0.
	(has_samples): If fake, return true.
	(get_parent_name): New method.

	* opxml.cc (args_help): Add counter argument for samples
	command.
	(class event_sorter): New class.
	(session_sorter::operator()): Change parameters to
	data_t types instead of sessions.
	(samples): Now take a mandatory counter number and
	optional session name.
	Pass counter number to session::get_samplefiles.
	(sessions): Instantiate event_sorter to insert events
	alphabetically.
	Convert map to store a list of counter and list of sessions
	indexed by event. Adjust output to use new map.

2003-10-24    <keiths@@valrhona.uglyboxes.com>

	* opxml.cc (sessions): Sort sessions before output. Just
	more convenient to do it here than in the Java UI.
	(session_sorter): New functor.

2003-10-24  Keith Seitz  <keiths@@redhat.com>

	* opxml.cc (args_help): Correct usage for debug-info option.
	(main): Use POSIXLY_CORRECT option to getopt_long_only.
	(check-events): Output correct argv's for options in error messages.
	error messages.
	Simplify get_integer error messages.
	(get_integer): On error return negative errno.

2003-10-20  Keith Seitz  <keiths@@redhat.com>

	* opinfo.h (get_cpu_frequency): New method.
	* opinfo.cc (get_cpu_frequency): New method.
	(operator<<(ostream&,opinfo&)): Output cpu frequency.

2003-10-15  Keith Seitz  <keiths@@redhat.com>

	* opinfo.h: New file.
	* opinfo.cc: New file.
	* oxmlstream.h: New file.
	* samplefile.h: New file.
	* samplefile.cc: New file.
	* session.h: New file.
	* session.cc: New file.
	* sfheader.h: New file.
	* sfheader.cc: New file.
	* util.h: New file.
	* util.cc: New file.
	* xmlbuf.h: New file.
	* xmlbuf.cc: New file.
	* xmlfmt.h: New file.
	* xmlfmt.cc: New file.
	* xmltag.h: New file.
	* xmltag.cc: New file.
	* Makefile: Update for new targets.
	* build.xml (oprofile-lib-srcs): Add util.cc.
	* oprofiledb.h: GNU-ify coding and naming of classes and variables.
	(has_samples(void)): New method.
	(has_samples(bool)): New method.
	(walk_samples): New method.
	(get_count): New method.
	(_has_samples_callback): New method.
	(_get_count_callback): New method.
	(_has_samples): New variable.
	(_callback): New variable.
	* oprofiledb.cc: GNU-ify coding and naming of classes and variables.
	(~oprofile_db): Don't free _filename: it's now a string.
	(walk_samples): New method.
	(get_samples): Use walk_samples.
	(has_samples): New method.
	(get_count): New method.
	(_has_samples_callback): New method.
	(_get_count_callback): New method.
	* opxml.cc: Rewrite.
	* sample.h: GNU-ify coding and naming of classes and variables.
	(count): Rename to ...
	(get_count): ... this for consistency.
	(get_symbol): Declare return value const.
	(operator<<): New function.
	* sample.cc: GNU-ify coding and naming of classes and variables.
	(operator<<): New function.
	* stable.h: GNU-ify coding and naming of classes and variables.
	(get_bfd_symbol_table): New method.
	* stable.cc: GNU-ify coding and naming of classes and variables.
	(read_symbols): Use size_t instead of int for vector size type.
	Remove unused variable "keep".
	* symbol.h: GNU-ify coding and naming of classes and variables.
	(operator<<): New function.
	* symbol.cc: GNU-ify coding and naming of classes and variables.
	(operator<<): New function.

2003-07-15  Keith Seitz  <keiths@@redhat.com>

	* opxml.cc (options): It's "check-events" not "check-event".
	(check_event): Rename to check_events.
	(main): Rename check_event.
	(check_events): Fix off-by-one error with argv. Event is in
	argv[2] not argv[1].
	Propogated to umask in argv[3].
	Output tag is "check-events" not "check-event".

2003-07-02  Keith Seitz  <keiths@@redhat.com>

	* oprofile.h: Remove.
	* opunitmask.h: Remove.

	Merge from branch:
	2003-06-30  Keith Seitz  <keiths@@redhat.com>
	* sample.h (NAME_FOR_SYMBOLLESS): Remove. No longer needed.
	(name): Return NULL when no symbol is associated with this sample.
	(demangled_name): Likewise.

	2003-06-27  Keith Seitz  <keiths@@redhat.com>
	* oprofile.cc: Remove.
	* opxml.cc: New file.
	* build.xml: Change from building liboprofile.so to opxml program.

2003-05-23  Keith Seitz  <keiths@@redhat.com>

	* oprofile.cc (op_events_desc.h): Don't include -- it's no longer
	in oprofile.
	(lookup_event_by_name): "New" function.
	(lookup_event_index): Removed.
	(Java_com_redhat_eclipse_oprofile_core_Oprofile__1get_1events): Use
	lookup_event_by_name.
	(Java_com_redhat_eclipse_oprofile_core_Oprofile_get_1event_1description): Ditto.
	(Java_com_redhat_eclipse_oprofile_core_Oprofile_get_1min_1count): Ditto.
	(Java_com_redhat_eclipse_oprofile_core_Oprofile_get_1unit_1mask_1info): Ditto.
	(Java_com_redhat_eclipse_oprofile_core_Oprofile_get_1event_1number): Ditto.
	
	* build.xml: Add oprofile's liboputil.a to extra-oprofile-libs.
	* Makefile (OPROFILE_LIBUTIL): Ditto.

2003-05-08  Keith Seitz  <keiths@@redhat.com>

	* build.xml (build): Add "other-libs" to final link.

2003-05-07  Keith Seitz  <keiths@@redhat.com>

	* build.xml (cleanup): Remove.
	(build): Use fileset of any objs in object directory to produce
	a list of target files to pass to linker. Apparently ANT cannot
	do this.
	Copy library file to destination instead of moving it.
	(clean): Remove the library from the installation directory, too.

2003-05-01  Keith Seitz  <keiths@@redhat.com>

	* build.xml: New file. This is the official way to build this
	library. You may find the Makefile easier for just day-to-day
	work, though.

2003-04-14  Keith Seitz  <keiths@@redhat.com>

	* Makefile (CHECK_DIR): New target to create output directory
	if it doesn't exist.

2003-04-04  Keith Seitz  <keiths@@redhat.com>

	* Makefile: New file.
	* oprofiledb.cc: New file.
	* oprofiledb.h: New file.
	* oprofile.h: New file.
	* oprofile.cc: New file.
	* opunitmask.h: New file.
	* sample.h: New file.
	* sample.cc: New file.
	* stable.h: New file.
	* stable.cc: New file.
	* symbol.h: New file.
	* symbol.cc: New file.
	* elf/common.h: New file.
	* elf/internal.h: New file.

@


1.10
log
@        * procfileimage.cc (operator<<): When outputting an image
        with only dependencies, only output the first dependency's header. Then
        loop through the dependencies.
@
text
@d1 5
@


1.9
log
@        * samplefile.h (get_name): Use is_dependency instead of has_samplefile
        when returnin the logical name.
        (_lib_image): Clarify comment.
        * samplefile.cc (_get_info_from_filename): Comment for "{kern}" or
        "{root}" is correct -- code was using "{kern}" and "{dep}", which is
        not correct.
@
text
@d1 6
@


1.8
log
@        * Makefile: Don't link against elfutils.
        * build.xml: Likewise.

        * samplefile.h (get_name): Should return image name if we have
        a samplefile.

        * samplefile.cc (_get_info_from_filename): Fix typo "=" to
        "+=" for image name.

        * profileimage.cc (operator<<): Hack for --separate=none
        weirdness (see comments).
        (get_samples): Remove.
        * profileimage.h (get_samples): Remove.

        * oprofiledb.h (_is_kernel): New variable.
        * oprofiledb.cc (oprofile_db): Initialize _is_kernel;
        (_open_db): Note _is_kernel from the header.
        (_get_samples_callback): Pass _is_kernel to lookup_vma.
        * stable.h (lookup_vma): Add new is_kernel parameter. See comments.
        (_text_offset): New variable.
        * stable.cc (lookup_vma): Add is_kernel parameter. If from kernel,
        the vma is unchanged. If it is from user space, the vma must
        be adjusted by the start address and the offset to the first
        text section.
        (_open_bfd): Get rid of the ELF load address stuff. Don't seem to
        need it anymore.
        Loop through sections to find the offset to the first section
        marked as containing code.
        Note start address.
@
text
@d1 18
@


1.7
log
@        * opinfo.h (get_cpu_frequency): Resurrect. It really is needed.
        * opinfo.cc (get_cpu_frequency): Likewise.
        (operator<<): Likewise.
@
text
@d1 32
@


1.6
log
@Update for Oprofile-0.8.1:

        * oprofiledb.h (class oprofile_db): samples_odb_t is now called odb_t.
        odb_hash.h is now odb.h.
        * oprofiledb.cc (_open_db): Ditto the odb_t rename.
        (samples_odb_travel): Likewise.
@
text
@d1 6
@


1.5
log
@	* imageheader.cc: Update license header.
	* imageheader.h: Likewise.
	* opinfo.cc: Likewise.
	* opinfo.h: Likewise.
	* oprofiledb.cc: Likewise.
	* oprofiledb.h: Likewise.
	* opxml.cc: Likewise.
	* oxmlstream.h: Likewise.
	* profileimage.cc: Likewise.
	* sample.cc: Likewise.
	* sample.h: Likewise.
	* samplefile.cc: Likewise.
	* samplefile.h: Likewise.
	* session.cc: Likewise.
	* session.h: Likewise.
	* sevent.cc: Likewise.
	* sevent.h: Likewise.
	* stable.cc: Likewise.
	* stable.h: Likewise.
	* symbol.cc: Likewise.
	* symble.h: Likewise.
	* xmlbuf.cc: Likewise.
	* xmlbuf.h: Likewise.
	* xmlfmt.cc: Likewise.
	* xmlfmt.h: Likewise.
	* xmltag.cc: Likewise.
	* xmltag.h: Likewise.
@
text
@d1 7
@


1.4
log
@	* Makefile: Update dependencies and remove util.h and util.cc.
	* build.xml: Remove util.cc from build objects.
	* utl.h: Remove.
	* util.cc: Remove.
	* imageheader.h (imageheader): Take samplefile* parameter for constructor.
	(get_cpu_type): Rename to ...
	(get_cpu): ... this. Returns a string instead of OProfile's internal type.
	(get_event): Return string instead of u32.
	(get_count): Likewise.
	(get_unit_mask): Likewise.
	(get_cpu_speed): Remove dependency on OProfile internal data. For now,
	always returns zero until we can get a safer way to obtain this information.
	(_header): Remove variable.
	(_sfile): New variable.
	* imageheader.cc (imageheader): Now takes samplefile* as parameter.
	(operator<<): Use imageheader::get_cpu.
	* opinfo.h: Remove "optional" configury for older versions of OProfile. That
	dream is gone.
	(get_cpu_frequency): Remove. This would never make sense if we could do this
	analyze files from a remote system.
	* opinfo.cc: Remove "optional" configury, too.
	(get_cpu_frequency): Likewise.
	(operation<<): Make num-counters a single line. Now matches spec.
	Don't output old defaults or frequency.
	* oprofiledb.h (get_header): Remove.
	* oprofiledb.cc (get_header): Likewise.
	* profileimage.cc (get_count): Return samplefile::get_sample_count instead
	of get_count, which has been hijacked for another use.
	(get_header): Pass samplefile to imageheader.
	* samplefile.h (samplefile): Constructor now takes string filename.
	(has_samplefile): Get rid of _parsed_filename.
	(is_dependency): Likewise.
	(get_sample_count): "New" method.
	(get_sample_file_name): Get rid of _parsed_filename.
	(get_image): Likewise.
	(get_lib_image): Likewise.
	(get_name): Likewise.
	(get_event): Likewise.
	(get_count): HIJACKED! Returns the reset count used in the file. Use get_sample_count
	for previous behavior.
	(get_unit_mask): New method.
	(get_tgid): Likewise.
	(get_tid): Likewise.
	(get_cpu): Likewise.
	(get_callgraph): Likewise.
	(get_header): Remove.
	(get_sample_file_list): "New" static method. Used to be in util.cc.
	(event_for_filename): New static method.
	(_tokenize): New private method.
	(_get_info_from_filename): New private method.
	(_parsed_filename): Bye bye.
	(_filename, _image, _lib_image, _event, _count, _unit_mask, _tgid, _tid,
	_cpu, _callgraph): New variables.
	* samplefile.cc (samplefile): Now takes filename as parameter.
	Call _get_info_from_filename to initialize state.
	(_get_info_from_filename): New method.
	(event_for_filename): New method.
	(is_dependency): Move to header.
	(get_image): Ditto.
	(get_lib_image): Ditto.
	(get_name): Ditto.
	(get_count): Ditto -- and rename get_sample_count.
	(get_event): Ditto the move part.
	(get_header): Remove.
	(~samplefile): Whack all the _parsed_filename stuff.
	(get_sample_file_list): Make it part of this class and public.
	* session.h: Remove op_cpu_type.h.
	* session.cc (get_event): No more parsed_filename. Use samplefile::event_for_filename
	and pass the filename to samplefile.
	(get_events): Likewise.
	* sevent.h (sessionevent): Don't pass event name as reference.
	* sevent.cc (sessionevent): Likewise.
	Pass empty string to profileimage instead of NULL for "fake" images.
	* util.h: Remove.
	* util.cc: Likewise.
@
text
@d1 30
@


1.3
log
@        * stable.cc (_open_bfd): Get rid of BFD for ELF file inspection.
        Use the gelf interface provided by libelf.
        * Makefile: Link against libelf.
        * build.xml: Likewise.
        * elf/internal.h: Remove.
        * elf/common.h: Remove.
@
text
@d1 78
@


1.2
log
@Add OProfile-0.8 patches
@
text
@d1 9
@


1.1
log
@Initial contribution
@
text
@d1 104
@

