Hi,all
[1] Despite not yielding any benefits in the past, it has been shown that utilizing ARM ETM+AutoFDO can optimize the Linux kernel. I am interested in determining if conducting a trial run on my platform would be beneficial.
[1] https://lpc.events/event/7/contributions/798/
[2][3] Show an simple examples optimize a program using simpleperf and perf
in perf method
I would like to build a version of 'perf' with CORESIGHT=1 that supports ETM and can run on my platform(aarch64). OpenCSD/decoder/tests/auto-fdo/autofdo.md at master · Linaro/OpenCSD · GitHub
cd linux && PYTHON=python3 && make install ARCH=arm64 CORESIGHT=1 CROSS_COMPILE=aarch64-linux-gnu- LDFLAGS=-static NO_LIBPERF_BUILD=1 NO_LIBELF=1 NO_JVMTI=1 NO_LIBPYTHON=1 NO_LIBTRACEEVENT=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 EXTRA_CFLAGS=-Wno-error -C tools/perf/
Makefile.config:525: *** Error: No libopencsd library found or the version is not up-to-date. Please install recent libopencsd to build with CORESIGHT=1. Stop. make[1]: *** [Makefile.perf:242: sub-make] Error 2 make: *** [Makefile:113: install] Error 2 make: Leaving directory '/linux/linux/tools/perf'
I have already installed libopencsd through apt-get, but I am still unable to locate my library. /usr/include/opencsd
How can I fix this problem? Where should I move /usr/include/opencsd to?
Thanks Zack
On 17/07/2023 10:23, zack.tsai@mediatek.com wrote:
Hi,all
[1] Despite not yielding any benefits in the past, it has been shown that utilizing ARM ETM+AutoFDO can optimize the Linux kernel. I am interested in determining if conducting a trial run on my platform would be beneficial.
[1] https://lpc.events/event/7/contributions/798/
[2][3] Show an simple examples optimize a program using simpleperf and perf
in perf method
I would like to build a version of 'perf' with CORESIGHT=1 that supports ETM and can run on my platform(aarch64). OpenCSD/decoder/tests/auto-fdo/autofdo.md at master · Linaro/OpenCSD · GitHub
cd linux && PYTHON=python3 && make install ARCH=arm64 CORESIGHT=1 CROSS_COMPILE=aarch64-linux-gnu- LDFLAGS=-static NO_LIBPERF_BUILD=1 NO_LIBELF=1 NO_JVMTI=1 NO_LIBPYTHON=1 NO_LIBTRACEEVENT=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 EXTRA_CFLAGS=-Wno-error -C tools/perf/
Makefile.config:525: *** Error: No libopencsd library found or the version is not up-to-date. Please install recent libopencsd to build with CORESIGHT=1. Stop. make[1]: *** [Makefile.perf:242: sub-make] Error 2 make: *** [Makefile:113: install] Error 2 make: Leaving directory '/linux/linux/tools/perf'
I have already installed libopencsd through apt-get, but I am still unable to locate my library. /usr/include/opencsd
Did you install the Arm version of the libraries if you are doing a cross build?
dpkg --add-architecture arm64 apt install libopencsd-dev:arm64
And what does the feature detection output say?
cat tools/build/feature/test-libopencsd.make.output
How can I fix this problem? Where should I move /usr/include/opencsd to?
Actually because of a bug -static cross builds only work with OpenCSD installed to the default location so they don't need to be moved anywhere. The fix is on the list but probably hasn't propagated everywhere yet.
Thanks
Zack _______________________________________________ CoreSight mailing list -- coresight@lists.linaro.org To unsubscribe send an email to coresight-leave@lists.linaro.org