How to enable ftrace for hikey970

Board based on the Kirin 970 - HI3670 Application Processor
More info: (Website coming soon…)
Buy now:

Hello everyone,

I want to use a ftrace tool. In the hikey970_defconfig kernel configuration from CONFIG_FTRACE is not set.
When i set it manually CONFIG_FTRACE using menuconfig the kernel fails to compile.
Does anyone know how to fix it?

Here is the menuconfig window with minimum selection in the kernel hacking -> tracing window

Here are errors that I get:

CC sound/soc/hisilicon/hisi-i2s.o
CC drivers/acpi/acpica/evhandler.o
CC fs/ext4/balloc.o
sound/soc/hisilicon/hisi-i2s.c: In function ‘hisi_i2s_probe’:
sound/soc/hisilicon/hisi-i2s.c:365:15: error: implicit declaration of function ‘devm_pinctrl_get’ [-Werror=implicit-function-declaration]
i2s->pctrl = devm_pinctrl_get(dev);
sound/soc/hisilicon/hisi-i2s.c:365:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
i2s->pctrl = devm_pinctrl_get(dev);
sound/soc/hisilicon/hisi-i2s.c:372:21: error: implicit declaration of function ‘pinctrl_lookup_state’ [-Werror=implicit-function-declaration]
i2s->pin_default = pinctrl_lookup_state(i2s->pctrl, PINCTRL_STATE_DEFAULT);
sound/soc/hisilicon/hisi-i2s.c:372:54: error: ‘PINCTRL_STATE_DEFAULT’ undeclared (first use in this function)
i2s->pin_default = pinctrl_lookup_state(i2s->pctrl, PINCTRL_STATE_DEFAULT);
sound/soc/hisilicon/hisi-i2s.c:372:54: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/hisilicon/hisi-i2s.c:379:6: error: implicit declaration of function ‘pinctrl_select_state’ [-Werror=implicit-function-declaration]
if (pinctrl_select_state(i2s->pctrl, i2s->pin_default)) {
sound/soc/hisilicon/hisi-i2s.c: In function ‘hisi_i2s_remove’:
sound/soc/hisilicon/hisi-i2s.c:409:2: error: implicit declaration of function ‘pinctrl_put’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/ recipe for target ‘sound/soc/hisilicon/hisi-i2s.o’ failed
make[3]: *** [sound/soc/hisilicon/hisi-i2s.o] Error 1
scripts/ recipe for target ‘sound/soc/hisilicon’ failed
make[2]: *** [sound/soc/hisilicon] Error 2
scripts/ recipe for target ‘sound/soc’ failed
make[1]: *** [sound/soc] Error 2
Makefile:1009: recipe for target ‘sound’ failed
make: *** [sound] Error 2