Skip to content
Snippets Groups Projects
  1. Aug 15, 2016
  2. Aug 09, 2016
    • Martin Liska's avatar
      Fix typo in gcov.texi · e0c8eebf
      Martin Liska authored
      	* doc/gcov.texi: Change _gcov_dump to __gcov_dump and
      	_gcov_reset to __gcov_reset.
      	* doc/gcov-tool.texi: Fix typo.
      	* libgcov-util.c: Fix typo and GNU coding style.
      
      From-SVN: r239307
      e0c8eebf
  3. Jan 04, 2016
  4. May 12, 2015
  5. Feb 27, 2015
    • Kai Tietz's avatar
      re PR libgcc/65038 ([regression 5] Unable to find ftw.h for libgcov-util.c) · 0e4a0def
      Kai Tietz authored
              PR target/65038
              * config.in: Regenerated.
              * configure: Likewise.
              * configure.ac (AC_HEADER_STDC): Added explicit.
              (AC_CHECK_HEADERS): Check for default headers  plus
              for ftw.h header.
              * libgcov-util.c (gcov_read_profile_dir): Disable use
              of ftw-function, if header is not found.
              (ftw_read_file): Likewise.
      
      From-SVN: r221059
      0e4a0def
    • Kai Tietz's avatar
      Revert change · 0824d924
      Kai Tietz authored
      From-SVN: r221058
      0824d924
    • Kai Tietz's avatar
      re PR libgcc/65038 ([regression 5] Unable to find ftw.h for libgcov-util.c) · a2a5609b
      Kai Tietz authored
      	PR target/65038
      	* config.in: Regenerated.
      	* configure: Likewise.
      	* configure.ac (AC_HEADER_STDC): Add explicit.
      	(AC_CHECK_HEADERS): Check for default headers
      	plus for ftw.h one.
      	* libgcov-util.c (gcov_read_profile_dir): Disable use
      	of ftw-function, if header not found.
      	(ftw_read_file): Don't translate if ftw header isn't
      	present.
      
      From-SVN: r221055
      a2a5609b
  6. Jan 05, 2015
  7. Oct 08, 2014
    • Rong Xu's avatar
      Add overlap functionality to gcov-tool. · 9b84e7a8
      Rong Xu authored
      2014-10-08  Rong Xu  <xur@google.com>
      
      	* gcc/gcov-tool.c (profile_overlap): New driver function
              to compute profile overlap. 
      	(print_overlap_usage_message): New.
      	(overlap_usage): New.
      	(do_overlap): New.
      	(print_usage): Add calls to overlap function.
      	(main): Ditto.
      	* libgcc/libgcov-util.c (read_gcda_file): Fix format.
      	(find_match_gcov_info): Ditto.
      	(calculate_2_entries): New.
      	(compute_one_gcov): Ditto.
      	(gcov_info_count_all_cold): Ditto.
      	(gcov_info_count_all_zero): Ditto.
      	(extract_file_basename): Ditto.
      	(get_file_basename): Ditto.
      	(set_flag): Ditto.
      	(matched_gcov_info): Ditto.
      	(calculate_overlap): Ditto.
      	(gcov_profile_overlap): Ditto.
      	* libgcc/libgcov-driver.c (compute_summary): Make
              it avavilable for external calls.
      	* gcc/doc/gcov-tool.texi: Add documentation.
      
      From-SVN: r216015
      9b84e7a8
  8. Oct 07, 2014
    • Rong Xu's avatar
      Makefile.in: Fix dependence. · afe0c5ee
      Rong Xu authored
      2014-10-06  Rong Xu  <xur@google.com>
      
      	* gcc/Makefile.in: Fix dependence.
      	* gcc/gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
              indirect call topn profiler.
      	* gcc/gcov-io.h: Ditto.
      	* libgcc/Makefile.in: Ditto.
      	* libgcc/libgcov-driver.c (gcov_sort_n_vals): New utility function.
      	(gcov_sort_icall_topn_counter): Ditto.
      	(gcov_sort_topn_counter_arrays): Ditto.
      	(dump_one_gcov): Sort indirect_call topn counters.
      	* libgcc/libgcov-merge.c (__gcov_merge_icall_topn): New merge
              function.
      	* libgcc/libgcov-profiler.c (__gcov_topn_value_profiler_body): New
              utility function.
      	(__gcov_indirect_call_topn_profiler): New profiler function.
      	* libgcc/libgcov-util.c (__gcov_icall_topn_counter_op): New.
      	* libgcc/libgcov.h: New decls.
      
      From-SVN: r215962
      afe0c5ee
  9. Jul 27, 2014
    • Nathan Sidwell's avatar
      libgcov-driver.c (struct gcov_filename_aux): Rename ... · 6dc33097
      Nathan Sidwell authored
      	* libgcov-driver.c (struct gcov_filename_aux): Rename ...
      	(struct gcov_filename): ... here.  Include buffer and max length
      	fields.
      	(gcov_max_filename): Remove.
      	(gi_filename): Remove.
      	(gcov_exit_compute_summary): Compute max filename here.
      	(gcov_exit_merge_gcda): Add filename parm, adjust.
      	(gcov_exit_merge_summary): Likewise.
      	(gcov_exit_dump_gcov): Adjust for struct gcov_filename changes.
      	(gcov_exit): Likewise.
      	(__gcov_init): Don't calculate max length here.
      	* libgcov_util.c (max_filename_len): Remove.
      	(read_gcda_file): Don't calculate max length here.
      	(gcov_read_profile_dir): Don't propagate here.
      	* libgcov-driver-system.c (alloc_filename_struct): Adjust for
      	struct gcov_filename changes.
      	(gcov_exit_open_gcda_file): Likewise.
      
      From-SVN: r213092
      6dc33097
  10. Jul 11, 2014
    • Rong Xu's avatar
      libgcov-util.c (gcov_max_filename): Fix declartion. · d5313205
      Rong Xu authored
      2014-07-11  Rong Xu  <xur@google.com>
      
      	* libgcov-util.c (gcov_max_filename): Fix declartion.
      
      From-SVN: r212463
      d5313205
    • Rong Xu's avatar
      Add gcov-tool: an offline gcda profile processing tool Support. · c77556a5
      Rong Xu authored
      2014-07-10  Rong Xu  <xur@google.com>
      
      	Add gcov-tool: an offline gcda profile processing tool
      	Support.
      	* gcc/gcov-io.c (gcov_position): Make avaialble to gcov-tool.
      	(gcov_is_error): Ditto.
      	(gcov_read_string): Ditto.
      	(gcov_read_sync): Ditto.
      	* gcc/gcov-io.h: Move counter defines to gcov-counter.def.
      	* gcc/gcov-dump.c (tag_counters): Use gcov-counter.def.
      	* gcc/coverage.c: Ditto.
      	* gcc/gcov-tool.c: Offline gcda profile processing tool.
              (unlink_gcda_file): Remove one gcda file.
      	(unlink_profile_dir): Remove gcda files from the profile path.
      	(gcov_output_files): Output gcda files to an output dir.
      	(profile_merge): Merge two profiles in directory.
      	(print_merge_usage_message): Print merge usage.
      	(merge_usage): Print merge usage and exit.
      	(do_merge): Driver for profile merge sub-command.
      	(profile_rewrite): Rewrite profile.
      	(print_rewrite_usage_message): Print rewrite usage.
      	(rewrite_usage): Print rewrite usage and exit.
      	(do_rewrite): Driver for profile rewrite sub-command.
      	(print_usage): Print gcov-info usage and exit.
      	(print_version): Print gcov-info version.
      	(process_args): Process arguments.
      	(main): Main routine for gcov-tool.
      	* gcc/Makefile.in: Build and install gcov-tool.
      	* gcc/gcov-counter.def: New file split from gcov-io.h.
      	* libgcc/libgcov-driver.c (gcov_max_filename): Make available
              to gcov-tool.
      	* libgcc/libgcov-merge.c (__gcov_merge_add): Replace
              gcov_read_counter() with a Macro.
      	(__gcov_merge_ior): Ditto.
      	(__gcov_merge_time_profile): Ditto.
      	(__gcov_merge_single): Ditto.
      	(__gcov_merge_delta): Ditto.
      	* libgcc/libgcov-util.c (void gcov_set_verbose): Set the verbose flag
              in the utility functions.
      	(set_fn_ctrs): Utility function for reading gcda files to in-memory
              gcov_list object link lists.
      	(tag_function): Ditto.
      	(tag_blocks): Ditto.
      	(tag_arcs): Ditto.
      	(tag_lines): Ditto.
      	(tag_counters): Ditto.
      	(tag_summary): Ditto.
      	(read_gcda_finalize): Ditto.
      	(read_gcda_file): Ditto.
      	(ftw_read_file): Ditto.
      	(read_profile_dir_init): Ditto.
      	(gcov_read_profile_dir): Ditto.
      	(gcov_read_counter_mem): Ditto.
      	(gcov_get_merge_weight): Ditto.
      	(merge_wrapper): A wrapper function that calls merging handler.
      	(gcov_merge): Merge two gcov_info objects with weights.
      	(find_match_gcov_info): Find the matched gcov_info in the list.
      	(gcov_profile_merge): Merge two gcov_info object lists.
      	(__gcov_add_counter_op): Process edge profile counter values.
      	(__gcov_ior_counter_op): Process IOR profile counter values.
      	(__gcov_delta_counter_op): Process delta profile counter values.
      	(__gcov_single_counter_op): Process single  profile counter values.
      	(fp_scale): Callback function for float-point scaling.
      	(int_scale): Callback function for integer fraction scaling. 
      	(gcov_profile_scale): Scaling profile counters.
      	(gcov_profile_normalize): Normalize profile counters.
      	* libgcc/libgcov.h: Add headers and functions for gcov-tool use.
              (gcov_get_counter): New.
              (gcov_get_counter_target): Ditto.
              (struct gcov_info): Make the functions field mutable in gcov-tool
              compilation.
      	* gcc/doc/gcc.texi: Include gcov-tool.texi.
      	* gcc/doc/gcov-tool.texi: Document for gcov-tool.
      
      From-SVN: r212448
      c77556a5
Loading