Commit b01bcae61cef515797a3f353aaff9f55b27ee0d1
1 parent
c6d29ad6
QEMU_STRACE documentation bit by Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3822 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
17 additions
and
1 deletions
linux-user/main.c
... | ... | @@ -1906,7 +1906,12 @@ void usage(void) |
1906 | 1906 | "debug options:\n" |
1907 | 1907 | "-d options activate log (logfile=%s)\n" |
1908 | 1908 | "-p pagesize set the host page size to 'pagesize'\n" |
1909 | - "-strace log system calls\n", | |
1909 | + "-strace log system calls\n" | |
1910 | + "\n" | |
1911 | + "environment variables:\n" | |
1912 | + "QEMU_STRACE Print system calls and arguments similar to the\n" | |
1913 | + " 'strace' program. Enable by setting to any value.\n" | |
1914 | + , | |
1910 | 1915 | TARGET_ARCH, |
1911 | 1916 | interp_prefix, |
1912 | 1917 | x86_stack_size, | ... | ... |
qemu-doc.texi
... | ... | @@ -2507,6 +2507,17 @@ Activate log (logfile=/tmp/qemu.log) |
2507 | 2507 | Act as if the host page size was 'pagesize' bytes |
2508 | 2508 | @end table |
2509 | 2509 | |
2510 | +Environment variables: | |
2511 | + | |
2512 | +@table @env | |
2513 | +@item QEMU_STRACE | |
2514 | +Print system calls and arguments similar to the 'strace' program | |
2515 | +(NOTE: the actual 'strace' program will not work because the user | |
2516 | +space emulator hasn't implemented ptrace). At the moment this is | |
2517 | +incomplete. All system calls that don't have a specific argument | |
2518 | +format are printed with information for six arguments. Many | |
2519 | +flag-style arguments don't have decoders and will show up as numbers. | |
2520 | + | |
2510 | 2521 | @node Other binaries |
2511 | 2522 | @subsection Other binaries |
2512 | 2523 | ... | ... |