diff options
| author | Yuan Pengfei <coolypf@qq.com> | 2014-06-10 15:18:39 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-02 14:28:42 +0200 |
| commit | be86412130aa46f4c834dac28a29c2e8a3777fcd (patch) | |
| tree | 89edde812ae9a9db361e7ba322a57d1483ccf2b9 /kernel/gcov/base.c | |
| parent | 0f2e1a7426dc7cd4209f1bbba062aea7b1962be2 (diff) | |
gcov: add support for GCC 4.9
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 struct gcov_info is affected.
For the second one, a dummy function is added to kernel/gcov/base.c
similarly.
Signed-off-by: Yuan Pengfei <coolypf@qq.com>
Acked-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/gcov/base.c')
| -rw-r--r-- | kernel/gcov/base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/gcov/base.c b/kernel/gcov/base.c index f45b75b71..b358a802f 100644 --- a/kernel/gcov/base.c +++ b/kernel/gcov/base.c @@ -85,6 +85,12 @@ void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters) } EXPORT_SYMBOL(__gcov_merge_ior); +void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters) +{ + /* Unused. */ +} +EXPORT_SYMBOL(__gcov_merge_time_profile); + /** * gcov_enable_events - enable event reporting through gcov_event() * |
