Adding change log entries for r190952:
authorTeresa Johnson <tejohnson@gcc.gnu.org>
Tue, 4 Sep 2012 21:20:30 +0000 (21:20 +0000)
committerTeresa Johnson <tejohnson@gcc.gnu.org>
Tue, 4 Sep 2012 21:20:30 +0000 (21:20 +0000)
Enhances the gcov program summary by adding a histogram of arc counter
entries. This is used to compute working set information in the compiler
for use by optimizations that need information on hot vs cold counter
values or the rough working set size in terms of the number of counters.
Each working set data point is the minimum counter value and number of
counters required to reach a given percentage of the cumulative counter
sum across the profiled execution (sum_all in the program summary).

2012-09-04  Teresa Johnson  <tejohnson@google.com>

* libgcc/libgcov.c (struct gcov_summary_buffer): New structure.
(gcov_histogram_insert): New function.
(gcov_compute_histogram): Ditto.
(gcov_exit): Invoke gcov_compute_histogram, and perform merging of
histograms during summary merging.
* gcc/gcov-io.c (gcov_write_summary): Write out non-zero histogram
entries to function summary along with an occupancy bit vector.
(gcov_read_summary): Read in the histogram entries.
(gcov_histo_index): New function.
(void gcov_histogram_merge): Ditto.
* gcc/gcov-io.h (gcov_type_unsigned): New type.
(struct gcov_bucket_type): Ditto.
(struct gcov_ctr_summary): Include histogram.
(GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
(GCOV_HISTOGRAM_SIZE): New macro.
(GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
* gcc/profile.c (NUM_GCOV_WORKING_SETS): Ditto.
(gcov_working_sets): New global variable.
(compute_working_sets): New function.
(find_working_set): Ditto.
(get_exec_counts): Invoke compute_working_sets.
* gcc/coverage.c (read_counts_file): Merge histograms, and
fix bug with accessing summary info for non-summable counters.
* gcc/basic-block.h (gcov_type_unsigned): New type.
(struct gcov_working_set_info): Ditto.
(find_working_set): Declare.
* gcc/gcov-dump.c (tag_summary): Dump out histogram.

From-SVN: r190953

gcc/ChangeLog
libgcc/ChangeLog

index d0c7a73..834fa34 100644 (file)
@@ -1,3 +1,28 @@
+2012-09-04  Teresa Johnson  <tejohnson@google.com>
+
+       * gcov-io.c (gcov_write_summary): Write out non-zero histogram
+       entries to function summary along with an occupancy bit vector.
+       (gcov_read_summary): Read in the histogram entries.
+       (gcov_histo_index): New function.
+       (void gcov_histogram_merge): Ditto.
+       * gcov-io.h (gcov_type_unsigned): New type.
+       (struct gcov_bucket_type): Ditto.
+       (struct gcov_ctr_summary): Include histogram.
+       (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
+       (GCOV_HISTOGRAM_SIZE): New macro.
+       (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
+       * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
+       (gcov_working_sets): New global variable.
+       (compute_working_sets): New function.
+       (find_working_set): Ditto.
+       (get_exec_counts): Invoke compute_working_sets.
+       * coverage.c (read_counts_file): Merge histograms, and
+       fix bug with accessing summary info for non-summable counters.
+       * basic-block.h (gcov_type_unsigned): New type.
+       (struct gcov_working_set_info): Ditto.
+       (find_working_set): Declare.
+       * gcov-dump.c (tag_summary): Dump out histogram.
+
 2012-09-04  Diego Novillo  <dnovillo@google.com>
 
        PR bootstrap/54484
index 463b872..ed5b2af 100644 (file)
@@ -1,3 +1,11 @@
+2012-09-04  Teresa Johnson  <tejohnson@google.com>
+
+       * libgcov.c (struct gcov_summary_buffer): New structure.
+       (gcov_histogram_insert): New function.
+       (gcov_compute_histogram): Ditto.
+       (gcov_exit): Invoke gcov_compute_histogram, and perform merging of
+       histograms during summary merging.
+
 2012-09-01  Mark Kettenis  <kettenis@openbsd.org>
 
        * config.host (x86_64-*-openbsd*): New target.