Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-02-22 23:39:18 +0300
committerChristopher Faylor <me@cgf.cx>2010-02-22 23:39:18 +0300
commitdbf41aeeff4a946d8ed54dccb4d396505cab83d6 (patch)
tree95896890befe48de8e36563e6fc5826e6dd52ab7 /winsup/utils/strace.cc
parent478ea460eb0bddd9dd721b84a16c2f87389e5cea (diff)
* strace.cc (mnemonic_table): Add "special" mask option.
(usage): Document it. * utils.sgml: Ditto.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r--winsup/utils/strace.cc41
1 files changed, 22 insertions, 19 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc
index 0c5183c1d..607137e11 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);