options.h revision 796267f3370f37bc3b7657b53c6eda16bab3c930
1#include <stdio.h> 2#include <sys/types.h> 3 4struct filter; 5 6struct options_t { 7 int align; /* -a: default alignment column for results */ 8 char * user; /* -u: username to run command as */ 9 int syscalls; /* -S: display system calls */ 10 int libcalls; /* -L: display library calls */ 11 int demangle; /* -C: demangle low-level names into user-level names */ 12 int indent; /* -n: indent trace output according to program flow */ 13 FILE *output; /* output to a specific file */ 14 int summary; /* count time, calls, and report a summary on program exit */ 15 int debug; /* debug */ 16 size_t arraylen; /* default maximum # of array elements printed */ 17 size_t strlen; /* default maximum # of bytes printed in strings */ 18 int follow; /* trace child processes */ 19 int no_signals; /* don't print signals */ 20#if defined(HAVE_LIBUNWIND) 21 int bt_depth; /* how may levels of stack frames to show */ 22#endif /* defined(HAVE_LIBUNWIND) */ 23 struct filter *plt_filter; 24 struct filter *static_filter; 25 int hide_caller; /* Whether caller library should be hidden. */ 26}; 27extern struct options_t options; 28 29extern int opt_i; /* instruction pointer */ 30extern int opt_r; /* print relative timestamp */ 31extern int opt_t; /* print absolute timestamp */ 32extern int opt_T; /* show the time spent inside each call */ 33 34struct opt_p_t { 35 pid_t pid; 36 struct opt_p_t *next; 37}; 38 39struct opt_F_t { 40 char *filename; 41 struct opt_F_t *next; 42}; 43 44extern struct opt_p_t *opt_p; /* attach to process with a given pid */ 45 46extern struct opt_F_t *opt_F; /* alternate configuration file(s) */ 47 48extern char **process_options(int argc, char **argv); 49