[PATCH 1/4] strace: move -k option to appropriate place

JingPiao Chen chenjingpiao at gmail.com
Fri Jan 6 07:16:27 UTC 2017


Like strace.1 -k option should add in output format group.

* strace.c (usage): Move -k option to output format group.
---
 strace.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/strace.c b/strace.c
index 9df942e..13f4863 100644
--- a/strace.c
+++ b/strace.c
@@ -215,6 +215,13 @@ usage: strace [-CdffhiqrtttTvVwxxy] [-I n] [-e expr]...\n\
 Output format:\n\
   -a column      alignment COLUMN for printing syscall results (default %d)\n\
   -i             print instruction pointer at time of syscall\n\
+"
+#ifdef USE_LIBUNWIND
+"\
+  -k             obtain stack trace between each syscall (experimental)\n\
+"
+#endif
+"\
   -o file        send trace output to FILE instead of stderr\n\
   -q             suppress messages about attaching, detaching, etc.\n\
   -r             print relative timestamp\n\
@@ -263,10 +270,6 @@ Miscellaneous:\n\
   -h             print help message\n\
   -V             print version\n\
 "
-#ifdef USE_LIBUNWIND
-"  -k             obtain stack trace between each syscall (experimental)\n\
-"
-#endif
 /* ancient, no one should use it
 -F -- attempt to follow vforks (deprecated, use -f)\n\
  */
-- 
2.7.4





More information about the Strace-devel mailing list