options.h revision a4850831bf4b4548af517335081b58cf006fd168
1#if HAVE_CONFIG_H 2#include "config.h" 3#endif 4 5#include <stdio.h> 6#include <sys/types.h> 7 8extern FILE * output; 9extern int opt_a; /* default alignment column for results */ 10extern int opt_d; /* debug */ 11extern int opt_i; /* instruction pointer */ 12extern int opt_s; /* default maximum # of bytes printed in strings */ 13extern int opt_L; /* display library calls */ 14extern int opt_S; /* display system calls */ 15extern int opt_f; /* trace child processes */ 16extern char * opt_u; /* username to run command as */ 17extern int opt_r; /* print relative timestamp */ 18extern int opt_t; /* print absolute timestamp */ 19#if HAVE_LIBIBERTY 20extern int opt_C; /* Demanglelow-level symbol names into user-level names */ 21#endif 22extern int opt_n; /* indent trace output according to program flow */ 23 24struct opt_p_t { 25 pid_t pid; 26 struct opt_p_t * next; 27}; 28 29struct opt_e_t { 30 char * name; 31 struct opt_e_t * next; 32}; 33 34extern struct opt_p_t * opt_p; /* attach to process with a given pid */ 35 36extern struct opt_e_t * opt_e; /* list of function names to display */ 37extern int opt_e_enable; /* 0 if '!' is used, 1 otherwise */ 38 39extern char ** process_options(int argc, char **argv); 40