From 232b4c5478dc2745cb129efef7d11ff34cda6a93 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 20 Aug 2024 01:04:53 +0200 Subject: strace: -v + perf example --- src/trace_profile/strace.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/trace_profile/strace.md b/src/trace_profile/strace.md index 390edd4..586d032 100644 --- a/src/trace_profile/strace.md +++ b/src/trace_profile/strace.md @@ -21,6 +21,7 @@ strace [opts] [prg] -y .......... translate fds (eg file path, socket) -yy ......... translate fds with all information (eg IP) -x .......... print non-ASCII chars as hex string + -v .......... print all arguments (non-abbreviated) ``` ```markdown @@ -43,3 +44,8 @@ Trace signals delivered to a running process: ```markdown strace -e signal -e 'trace=!all' -p ``` + +Show successful calls to `perf_event_open((2)` without abbreviating arguments. +```markdown +strace -v -z -e trace=perf_event_open perf stat -e cycles ls +``` -- cgit v1.2.3