Tiny Core Extensions > Extension requests
[Solved] Kernel tool: perf ?
polikuo:
--- Quote from: Juanito on October 09, 2020, 07:33:55 AM ---It works for me compiled natively on piCore64 using this patch: https://www.spinics.net/lists/stable/msg403445.html
--- End quote ---
Great, many thanks.
It successfully compiles. :D
For those who may want to replicate, here's what I did:
1. Clear the onboot.lst, leaving only openssh.tcz for remote access.
2. Save the patch Juanito provides in the previous post.
3. Reboot
Then run these commands:
--- Code: ---tar xf linux-5.4.51.tar.xz
tce-load -i compiletc
find . -name Makefile.config -type f -exec sed -i 's/-O6//g' {} \;
find . -name Makefile.config -type f -exec sed -i 's/-ggdb3//g' {} \;
CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe'
CXXFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti'
export CFLAGS CXXFLAGS
cd linux-5.4.51/
patch -p1 < ../perf.patch
make -C tools/perf JOBS=1 V=1 WERROR=0 EXTRA_CFLAGS="-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fcommon"
--- End code ---
The perf binary should appears in the tools/perf directory.
Enjoy~ :)
P.S. please mark this topic solved.
Rich:
Hi polikuo
--- Quote from: polikuo on October 09, 2020, 09:56:32 AM --- ... P.S. please mark this topic solved.
--- End quote ---
Done. :)
Navigation
[0] Message Index
[*] Previous page
Go to full version