diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-08-20 01:04:53 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-08-20 01:04:53 +0200 |
commit | 232b4c5478dc2745cb129efef7d11ff34cda6a93 (patch) | |
tree | 0353cd9cb6c5f24dc50a6975ab324f905bd24209 | |
parent | 88fc5bc98370066490a9670c6b28fba91efd7d4d (diff) | |
download | notes-232b4c5478dc2745cb129efef7d11ff34cda6a93.tar.gz notes-232b4c5478dc2745cb129efef7d11ff34cda6a93.zip |
strace: -v + perf example
-rw-r--r-- | src/trace_profile/strace.md | 6 |
1 files changed, 6 insertions, 0 deletions
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 <pid> ``` + +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 +``` |