[PATCH v4] gcov: add support for GCC 4.9

2014-05-13 Thread Yuan Pengfei
From: Yuan Pengfei This patch handles the gcov-related changes in GCC 4.9: A new counter (time profile) is added. The total number is 9 now. A new profile merge function __gcov_merge_time_profile is added. See gcc/gcov-io.h and libgcc/libgcov-merge.c For the first change, the layout of

RE: [PATCH v3] gcov: add support for GCC 4.9

2014-05-13 Thread Yuan Pengfei
> > > > +void __gcov_merge_time_profile(gcov_type *counters, unsigned int > > n_counters) > > But can you repost please without word wrapping? > > Except for that the patch looks good to me. Sorry. I will configure my email client and send again. -- Yuan, Pe

[PATCH v3] gcov: add support for GCC 4.9

2014-05-13 Thread Yuan Pengfei
From: Yuan Pengfei This patch handles the gcov-related changes in GCC 4.9: A new counter (time profile) is added. The total number is 9 now. A new profile merge function __gcov_merge_time_profile is added. See gcc/gcov-io.h and libgcc/libgcov-merge.c For the first change, the layout of

[PATCH v2] gcov: add support for GCC 4.9

2014-05-12 Thread Yuan Pengfei
From: Yuan Pengfei This patch handles the gcov-related changes in GCC 4.9: A new counter (time profile) is added. See http://gcc.gnu.org/gcc-4.9/changes.html Signed-off-by: Yuan Pengfei --- kernel/gcov/base.c| 6 ++ kernel/gcov/gcc_4_7.c | 5 + 2 files changed, 11 insertions

[PATCH] gcov: add support for GCC 4.9

2014-05-10 Thread Yuan Pengfei
From: Yuan Pengfei This patch handles the gcov-related changes in GCC 4.9: A new counter (time profile) is added. See http://gcc.gnu.org/gcc-4.9/changes.html Signed-off-by: Yuan Pengfei --- kernel/gcov/base.c| 6 ++ kernel/gcov/gcc_3_4.c | 2 +- kernel/gcov/gcc_4_7.c | 7 ++- 3

Re: [PATCH] gcov: fix memory allocation problem in gcov_info_dup

2014-02-19 Thread Yuan Pengfei
Using -fprofile-values is one case that will cause the memory allocation problem. More changes are needed to fully support -fprofile-values. I submit this patch first because I think it is obvious and does no harm. > I'm unaware of any user of -fprofile-values in the kernel. Are you > trying to ext

[PATCH] gcov: fix memory allocation problem in gcov_info_dup

2014-02-18 Thread Yuan Pengfei
From: Yuan Pengfei If -fprofile-values option is used, ctr->num and sci_ptr->num may be zero, resulting in zero size and cv_size, which will cause ENOMEM when opening gcov data files in debugfs. Signed-off-by: Yuan Pengfei --- kernel/gcov/gcc_3_4.c | 2 +- kernel/gcov/gcc_4_7.c | 2 +- 2