Commit 63245449 authored by xiongzhou4's avatar xiongzhou4
Browse files

GCOV: Add value profile support for kernel.

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

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

Backport from openEuler 22.03 LTS SP2:
https://gitee.com/openeuler/kernel/pulls/773



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 avatarxiongzhou4 <xiongzhou4@huawei.com>
Reviewed-by: default avatarLi Yancheng <liyancheng@huawei.com>
parent 884e2d3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment