summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2023-04-04 21:59:48 +0200
committerDmitry V. Levin <ldv@strace.io>2023-04-22 08:00:00 +0000
commit9800b413bc9412c2e3a118bd6a1c7e9ff99b5381 (patch)
treeffff25f65df8b16fc398801c3065901b84cb069e
parentb488c4bb8bf5acebbe754b0f5e43c550a7371c5e (diff)
downloadstrace-9800b413bc9412c2e3a118bd6a1c7e9ff99b5381.tar.gz
strauss: add a couple of new tips
* src/strauss.c (tips_tricks_tweaks): Add a note about the historical handling of "(deleted)" in file paths got from procfs and about system time accounting.
-rw-r--r--src/strauss.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/strauss.c b/src/strauss.c
index ce30823d9..40a5df04f 100644
--- a/src/strauss.c
+++ b/src/strauss.c
@@ -310,6 +310,23 @@ static const char *tips_tricks_tweaks[][MAX_TIP_LINES] = {
"to hexadecimal numbers usage." },
{ "-Y option (an alias to --decode-pids=comm)",
"shows comm string associated with the PID." },
+ { "Historically, strace had a mis-feature",
+ "of interpreting the \" (deleted)\" part",
+ "of the proc/pid/fd symlinks as a part",
+ "of the filename. This peculiar behaviour",
+ "ended with strace 5.19, which also enables",
+ "path tracing to trace FDs associated",
+ "with specific paths even after the paths",
+ "are unlinked." },
+ { "It seems that IA-64, POWER and s390 are",
+ "the only architectures where it is possible",
+ "for strace to account for syscall time",
+ "properly by relying on the system time usage",
+ "reported by the kernel: these are the only",
+ "architectures that HAVE_VIRT_CPU_ACCOUNTING",
+ "config option enabled and thusly account",
+ "the CPU time on syscall entering and exiting",
+ "instead of approximating it." },
};
static const char tip_top[] =