No description
Find a file
Nan Xiao c25de25edf
Merge pull request #1 from justanotherdot/topic/fix-typo
Fix typo on DEFINE in sample code
2020-09-02 10:35:04 +08:00
.github Create FUNDING.yml 2019-06-28 22:41:14 +08:00
posts Fix typo on DEFINE in sample code 2020-09-02 12:15:33 +10:00
LICENSE Create LICENSE 2020-03-31 09:06:51 +08:00
README.md Update name 2019-04-12 14:23:54 +08:00
SUMMARY.md Add record-events-per-thread.md 2019-11-21 17:24:18 +08:00

Linux perf little book

When talking about perf in Linux, it actually refers to 2 things:

a) Perf_events (also be called as perf for short): a subsystem which was merged into Linux kernel since 2.6.31;

b) A powerful and comprehensive user-space tool: perf, which leverages perf_events subsystem to do performance analysis.

Perf is a really powerful tool. As Brendan Greeg wrote in his Choosing a Linux Tracer (2015):

If there's one tracer I'd recommend people learn, it'd be perf, as it can solve a ton of issues, and is relatively safe.

In this small tutorial, I will give a whirlwind tool of the user-space perf utility.