本文主要是介绍Linux之调试bin报错原因(三十四),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Linux之调试bin报错原因
# strace -h
usage: strace [-CdffhiqrtttTvVwxxy] [-I n] [-e expr]...[-a column] [-o file] [-s strsize] [-P path]...-p pid... / [-D] [-E var=val]... [-u username] PROG [ARGS]or: strace -c[dfw] [-I n] [-e expr]... [-O overhead] [-S sortby]-p pid... / [-D] [-E var=val]... [-u username] PROG [ARGS]Output format:-a column alignment COLUMN for printing syscall results (default 40)-i print instruction pointer at time of syscall-k obtain stack trace between each syscall (experimental)-o file send trace output to FILE instead of stderr-q suppress messages about attaching, detaching, etc.-r print relative timestamp-s strsize limit length of print strings to STRSIZE chars (default 32)-t print absolute timestamp-tt print absolute timestamp with usecs-T print time spent in each syscall-x print non-ascii strings in hex-xx print all strings in hex-y print paths associated with file descriptor arguments-yy print protocol specific information associated with socket file descriptorsStatistics:-c count time, calls, and errors for each syscall and report summary-C like -c but also print regular output-O overhead set overhead for tracing syscalls to OVERHEAD usecs-S sortby sort syscall counts by: time, calls, name, nothing (default time)-w summarise syscall latency (default is system time)Filtering:-e expr a qualifying expression: option=[!]all or option=[!]val1[,val2]...options: trace, abbrev, verbose, raw, signal, read, write, fault-P path trace accesses to pathTracing:-b execve detach on execve syscall-D run tracer process as a detached grandchild, not as parent-f follow forks-ff follow forks with output into separate files-I interruptible1: no signals are blocked2: fatal signals are blocked while decoding syscall (default)3: fatal signals are always blocked (default if '-o FILE PROG')4: fatal signals and SIGTSTP (^Z) are always blocked(useful to make 'strace -o FILE PROG' not stop on ^Z)Startup:-E var remove var from the environment for command-E var=val put var=val in the environment for command-p pid trace process with process id PID, may be repeated-u username run command as username handling setuid and/or setgidMiscellaneous:-d enable debug output to stderr-v verbose mode: print unabbreviated argv, stat, termios, etc. args-h print help message-V print version# strace -f ./test
这篇关于Linux之调试bin报错原因(三十四)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!