This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r187536 - in /branches/google/main: gcc/ChangeL...


Author: tejohnson
Date: Tue May 15 13:41:15 2012
New Revision: 187536

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187536
Log:
Two cleanup items for the sampling instrumentation interfaces. First,
rename variables from *rate* to *period*, since what is being specified
is a sampling period (time between recorded samples) not a rate.
Second, add flag __gcov_has_sampling to indicate when a file was
compiled with -fprofile-generate-sampling, and function
__gcov_sampling_enabled to return the state of this flag. The flag
is checked when a call is made to set the sampling period.

2012-05-15   Teresa Johnson  <tejohnson@google.com>

	* libgcc/libgcov.c (__gcov_sampling_period): Rename variable from
        "*rate*" to "*period*".
        (gcov_sampling_period_initialized): Ditto.
        (__gcov_set_sampling_period): Rename from __gcov_set_sampling_rate.
        Check __gcov_has_sampling.
	(__gcov_has_sampling): New variable.
	(__gcov_sampling_enabled): New function.
	(__gcov_init): Rename variables from "*rate*" to "*period*".
	* gcc/doc/invoke.texi (profile-generate-sampling-period): Rename
        from profile-generate-sampling-rate.
	* gcc/tree-profile.c (gcov_sampling_period_decl): Rename from
        gcov_sampling_rate_decl.
        (gcov_has_sampling_decl): New variable.
	(insert_if_then, add_sampling_wrapper): Rename variables from
        "*rate*" to "*period*".
	(gimple_init_instrumentation_sampling): Ditto, and add handling
        for gcov_has_sampling_decl.
	* gcc/params.def (profile-generate-sampling-period): Rename
        from profile-generate-sampling-rate.

Modified:
    branches/google/main/gcc/ChangeLog.google-main
    branches/google/main/gcc/doc/invoke.texi
    branches/google/main/gcc/params.def
    branches/google/main/gcc/tree-profile.c
    branches/google/main/libgcc/ChangeLog.google-main
    branches/google/main/libgcc/libgcov.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]