Locate the cpu on which the process is running:
ps -o pid,psr,comm -p `pidof testd`
View cpu1 hot spots:
perf top -C 1
View the current cpu system call:
perf trace -C 1 --syscalls --call-graph dwarf
View cache-misses:
perf top -C 1 -e cache-misses
Record multiple cpu sampling data:
perf record -C 1-n
Read the data recorded by perf:
perf report