How to enable ftrace for hikey970

Board based on the Kirin 970 - HI3670 Application Processor
More info: http://www.96boards.org/product/hikey970/ (Website coming soon…)
Buy now: https://www.seeedstudio.com/HiKey-970-Development-Board-p-3046.html

Hello everyone,

I want to use a ftrace tool. In the hikey970_defconfig kernel configuration from https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 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:
# make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j5

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]
pinctrl_put(i2s->pctrl);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:301: recipe for target ‘sound/soc/hisilicon/hisi-i2s.o’ failed
make[3]: *** [sound/soc/hisilicon/hisi-i2s.o] Error 1
scripts/Makefile.build:552: recipe for target ‘sound/soc/hisilicon’ failed
make[2]: *** [sound/soc/hisilicon] Error 2
scripts/Makefile.build:552: recipe for target ‘sound/soc’ failed
make[1]: *** [sound/soc] Error 2
Makefile:1009: recipe for target ‘sound’ failed
make: *** [sound] Error 2