aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-02-22 20:39:18 +0000
committerChristopher Faylor <me@cgf.cx>2010-02-22 20:39:18 +0000
commitdbf41aeeff4a946d8ed54dccb4d396505cab83d6 (patch)
tree95896890befe48de8e36563e6fc5826e6dd52ab7 /winsup/utils
parent478ea460eb0bddd9dd721b84a16c2f87389e5cea (diff)
downloadnewlib-dbf41aeeff4a946d8ed54dccb4d396505cab83d6.zip
newlib-dbf41aeeff4a946d8ed54dccb4d396505cab83d6.tar.gz
newlib-dbf41aeeff4a946d8ed54dccb4d396505cab83d6.tar.bz2
* strace.cc (mnemonic_table): Add "special" mask option.
(usage): Document it. * utils.sgml: Ditto.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog6
-rw-r--r--winsup/utils/strace.cc41
-rw-r--r--winsup/utils/utils.sgml40
3 files changed, 49 insertions, 38 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 95a0af7..cfa731d 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,9 @@
+2010-02-22 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * strace.cc (mnemonic_table): Add "special" mask option.
+ (usage): Document it.
+ * utils.sgml: Ditto.
+
2010-02-22 Corinna Vinschen <corinna@vinschen.de>
* cygpath.cc (do_pathconv): Fix erroneously printing native NT path
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc
index 0c5183c..607137e 100644
--- a/winsup/utils/strace.cc
+++ b/winsup/utils/strace.cc
@@ -732,6 +732,7 @@ static const mask_mnemonic mnemonic_table[] = {
{_STRACE_MALLOC, "malloc"},
{_STRACE_THREAD, "thread"},
{_STRACE_PTHREAD, "pthread"},
+ {_STRACE_SPECIAL, "special"},
{0, NULL}
};
@@ -860,25 +861,27 @@ Trace system calls and signals\n\
\n\
Mnemonic Hex Corresponding Def Description\n\
=========================================================================\n\
- all 0x00001 (_STRACE_ALL) All strace messages.\n\
- flush 0x00002 (_STRACE_FLUSH) Flush output buffer after each message.\n\
- inherit 0x00004 (_STRACE_INHERIT) Children inherit mask from parent.\n\
- uhoh 0x00008 (_STRACE_UHOH) Unusual or weird phenomenon.\n\
- syscall 0x00010 (_STRACE_SYSCALL) System calls.\n\
- startup 0x00020 (_STRACE_STARTUP) argc/envp printout at startup.\n\
- debug 0x00040 (_STRACE_DEBUG) Info to help debugging. \n\
- paranoid 0x00080 (_STRACE_PARANOID) Paranoid info.\n\
- termios 0x00100 (_STRACE_TERMIOS) Info for debugging termios stuff.\n\
- select 0x00200 (_STRACE_SELECT) Info on ugly select internals.\n\
- wm 0x00400 (_STRACE_WM) Trace Windows msgs (enable _strace_wm).\n\
- sigp 0x00800 (_STRACE_SIGP) Trace signal and process handling.\n\
- minimal 0x01000 (_STRACE_MINIMAL) Very minimal strace output.\n\
- pthread 0x02000 (_STRACE_PTHREAD) Pthread calls.\n\
- exitdump 0x04000 (_STRACE_EXITDUMP) Dump strace cache on exit.\n\
- system 0x08000 (_STRACE_SYSTEM) Serious error; goes to console and log.\n\
- nomutex 0x10000 (_STRACE_NOMUTEX) Don't use mutex for synchronization.\n\
- malloc 0x20000 (_STRACE_MALLOC) Trace malloc calls.\n\
- thread 0x40000 (_STRACE_THREAD) Thread-locking calls.\n\
+ all 0x000001 (_STRACE_ALL) All strace messages.\n\
+ flush 0x000002 (_STRACE_FLUSH) Flush output buffer after each message.\n\
+ inherit 0x000004 (_STRACE_INHERIT) Children inherit mask from parent.\n\
+ uhoh 0x000008 (_STRACE_UHOH) Unusual or weird phenomenon.\n\
+ syscall 0x000010 (_STRACE_SYSCALL) System calls.\n\
+ startup 0x000020 (_STRACE_STARTUP) argc/envp printout at startup.\n\
+ debug 0x000040 (_STRACE_DEBUG) Info to help debugging. \n\
+ paranoid 0x000080 (_STRACE_PARANOID) Paranoid info.\n\
+ termios 0x000100 (_STRACE_TERMIOS) Info for debugging termios stuff.\n\
+ select 0x000200 (_STRACE_SELECT) Info on ugly select internals.\n\
+ wm 0x000400 (_STRACE_WM) Trace Windows msgs (enable _strace_wm).\n\
+ sigp 0x000800 (_STRACE_SIGP) Trace signal and process handling.\n\
+ minimal 0x001000 (_STRACE_MINIMAL) Very minimal strace output.\n\
+ pthread 0x002000 (_STRACE_PTHREAD) Pthread calls.\n\
+ exitdump 0x004000 (_STRACE_EXITDUMP) Dump strace cache on exit.\n\
+ system 0x008000 (_STRACE_SYSTEM) Serious error; goes to console and log.\n\
+ nomutex 0x010000 (_STRACE_NOMUTEX) Don't use mutex for synchronization.\n\
+ malloc 0x020000 (_STRACE_MALLOC) Trace malloc calls.\n\
+ thread 0x040000 (_STRACE_THREAD) Thread-locking calls.\n\
+ special 0x100000 (_STRACE_SPECIAL) Special debugging printfs for\n\
+ non-checked-in code\n\
");
if (where == stderr)
fprintf (stderr, "Try '%s --help' for more information.\n", pgm);
diff --git a/winsup/utils/utils.sgml b/winsup/utils/utils.sgml
index b100d50..f16d44d 100644
--- a/winsup/utils/utils.sgml
+++ b/winsup/utils/utils.sgml
@@ -1864,25 +1864,27 @@ Trace system calls and signals
Mnemonic Hex Corresponding Def Description
=========================================================================
- all 0x00001 (_STRACE_ALL) All strace messages.
- flush 0x00002 (_STRACE_FLUSH) Flush output buffer after each message.
- inherit 0x00004 (_STRACE_INHERIT) Children inherit mask from parent.
- uhoh 0x00008 (_STRACE_UHOH) Unusual or weird phenomenon.
- syscall 0x00010 (_STRACE_SYSCALL) System calls.
- startup 0x00020 (_STRACE_STARTUP) argc/envp printout at startup.
- debug 0x00040 (_STRACE_DEBUG) Info to help debugging.
- paranoid 0x00080 (_STRACE_PARANOID) Paranoid info.
- termios 0x00100 (_STRACE_TERMIOS) Info for debugging termios stuff.
- select 0x00200 (_STRACE_SELECT) Info on ugly select internals.
- wm 0x00400 (_STRACE_WM) Trace Windows msgs (enable _strace_wm).
- sigp 0x00800 (_STRACE_SIGP) Trace signal and process handling.
- minimal 0x01000 (_STRACE_MINIMAL) Very minimal strace output.
- pthread 0x02000 (_STRACE_PTHREAD) Pthread calls.
- exitdump 0x04000 (_STRACE_EXITDUMP) Dump strace cache on exit.
- system 0x08000 (_STRACE_SYSTEM) Serious error; goes to console and log.
- nomutex 0x10000 (_STRACE_NOMUTEX) Don't use mutex for synchronization.
- malloc 0x20000 (_STRACE_MALLOC) Trace malloc calls.
- thread 0x40000 (_STRACE_THREAD) Thread-locking calls.
+ all 0x000001 (_STRACE_ALL) All strace messages.
+ flush 0x000002 (_STRACE_FLUSH) Flush output buffer after each message.
+ inherit 0x000004 (_STRACE_INHERIT) Children inherit mask from parent.
+ uhoh 0x000008 (_STRACE_UHOH) Unusual or weird phenomenon.
+ syscall 0x000010 (_STRACE_SYSCALL) System calls.
+ startup 0x000020 (_STRACE_STARTUP) argc/envp printout at startup.
+ debug 0x000040 (_STRACE_DEBUG) Info to help debugging.
+ paranoid 0x000080 (_STRACE_PARANOID) Paranoid info.
+ termios 0x000100 (_STRACE_TERMIOS) Info for debugging termios stuff.
+ select 0x000200 (_STRACE_SELECT) Info on ugly select internals.
+ wm 0x000400 (_STRACE_WM) Trace Windows msgs (enable _strace_wm).
+ sigp 0x000800 (_STRACE_SIGP) Trace signal and process handling.
+ minimal 0x001000 (_STRACE_MINIMAL) Very minimal strace output.
+ pthread 0x002000 (_STRACE_PTHREAD) Pthread calls.
+ exitdump 0x004000 (_STRACE_EXITDUMP) Dump strace cache on exit.
+ system 0x008000 (_STRACE_SYSTEM) Serious error; goes to console and log.
+ nomutex 0x010000 (_STRACE_NOMUTEX) Don't use mutex for synchronization.
+ malloc 0x020000 (_STRACE_MALLOC) Trace malloc calls.
+ thread 0x040000 (_STRACE_THREAD) Thread-locking calls.
+ special 0x100000 (_STRACE_SPECIAL) Special debugging printfs for
+ non-checked-in code
</screen>
<para>The <command>strace</command> program executes a program, and