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
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
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
> >
> > +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
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
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
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
7 matches
Mail list logo