This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r190762 - in /branches/google/main: ChangeLog.g...
- From: tejohnson at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 28 Aug 2012 21:39:05 -0000
- Subject: r190762 - in /branches/google/main: ChangeLog.g...
Author: tejohnson
Date: Tue Aug 28 21:39:04 2012
New Revision: 190762
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190762
Log:
This patch reduces the size bloat of .gcda files by adding a string table struct
that only prints out the filename information once instead of replicating it
across multiple pmu entries.
2012-08-28 Chris Manghane <cmang@google.com>
* libgcc/pmu-profile.c
(gcov_write_load_latency_infos): Removed unused function.
(gcov_write_branch_mispredict_infos): Ditto.
(destroy_load_latency_infos): Removed static keyword.
(init_pmu_branch_mispredict): Ditto.
(gcov_write_ll_line): Ditto, plus replaced filename field with filetag.
(gcov_write_branch_mispredict_line): Ditto.
(gcov_write_string_table_entry): New function.
(gcov_write_tool_header): Removed static keyword.
* gcc/gcov.c
(release_structures): Removed filename field from PMU structures.
(filter_pmu_data_lines): Added PMU string table support.
(process_pmu_profile): Ditto.
* gcc/gcov-io.c
(gcov_read_pmu_load_latency_info): Replaced filename field with filetag.
(gcov_read_pmu_branch_mispredict_info): Ditto.
(gcov_read_pmu_string_table_entry): New Function.
(print_load_latency_line): Replaced filename field with filetag.
(print_branch_mispredict_line): Ditto.
(print_string_table_entry): New function.
* gcc/gcov-io.h
(GCOV_TAG_PMU_LOAD_LATENCY_LENGTH): Replaced filename field with filetag
(GCOV_TAG_PMU_BRANCH_MISPREDICT_LENGTH): Ditto.
(GCOV_TAG_PMU_STRING_TABLE_ENTRY): Added new tag.
(GCOV_TAG_PMU_STRING_TABLE_ENTRY_LENGTH): Ditto.
(gcov_pmu_load_latency_info): Replaced filename field with filetag.
(gcov_pmu_branch_mispredict_info): Ditto.
(gcov_pmu_string_table_entry): New struct.
(gcov_pmu_string_table): New struct.
(gcov_write_ll_line): Moved pmu writing utilities to global header.
(gcov_write_branch_mispredict_line): Ditto.
(gcov_write_string_table_entry): Ditto.
(gcov_write_tool_header): Ditto.
* gcc/gcov-dump.c
(tag_pmu_load_latency_info): Removed PMU filename field.
(tag_pmu_branch_mispredict_info): Ditto.
(tag_pmu_string_table_entry): New function.
Modified:
branches/google/main/ChangeLog.google-main
branches/google/main/gcc/gcov-dump.c
branches/google/main/gcc/gcov-io.c
branches/google/main/gcc/gcov-io.h
branches/google/main/gcc/gcov.c
branches/google/main/libgcc/pmu-profile.c