diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2023-04-04 21:59:48 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2023-04-05 09:15:28 +0200 |
commit | 0f7641fdf205f164db41e792b97174b3cf1812d7 (patch) | |
tree | ab769e0741c00aaf23b87374ed4849bda4e45728 | |
parent | 073622770ab823d57833ce81324314ca71755678 (diff) | |
download | strace-0f7641fdf205f164db41e792b97174b3cf1812d7.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.c | 17 |
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[] = |