From 7ae8f97575a235d2bba4e14ce45edf30c40bd8ac Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 11 Jan 2019 12:08:41 +0106 Subject: schulung_tools: matrix: add more details to README mention some other usage of perf to track done the problem [Reformatted by jogness] Signed-off-by: Manuel Traut Signed-off-by: John Ogness --- schulung_tools/matrix/README | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/schulung_tools/matrix/README b/schulung_tools/matrix/README index 40a1e75..9fcb33e 100644 --- a/schulung_tools/matrix/README +++ b/schulung_tools/matrix/README @@ -5,3 +5,14 @@ sudo perf stat ./main -1 # investigate bad cache usage sudo perf stat ./main -2 + +# look at actual cache statistics +sudo perf stat -e cache-misses ./main -1 +sudo perf stat -e cache-misses ./main -2 + +# more detailed events like L1-dcache-loads and L1-dcache-load-misses +# may be available on the system (sudo perf list) + +# investigate which lines of code cause the problem +sudo perf record -e cache-misses ./main -2 +sudo perf report -- cgit v1.2.3