Commit 2872514e authored by xiongzhou4's avatar xiongzhou4
Browse files

GCC: Add value profile support for kernel.

GCC inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I734PM



---------------------------------

This feature add value profile support for kernel by changing GCOV
option "-fprofile-arcs" to "-fprofile-generate" when the new added
config "PGO_KERNEL" is set to y.

Like GCOV, the symbols required by value profile are migrated from
GCC source codes as they cannot be linked to kernel. Specifically,
from libgcc/libgcov-profiler.c to kernel/gcov/gcc_base.c.

kernel options:
CONFIG_PGO_KERNEL=y

Signed-off-by: default avatarXiong Zhou <xiongzhou4@huawei.com>
Reviewed-by: default avatarLi Yancheng <liyancheng@huawei.com>
parent f3014d9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment