blob: 282b45ba722a37e8763eeafe2db1641032746bff [file] [log] [blame]
Juan Cespedesac3db291998-04-25 14:31:58 +02001#if HAVE_CONFIG_H
2#include "config.h"
3#endif
4
Juan Cespedes5e01f651998-03-08 22:31:44 +01005#include <stdio.h>
6
7extern FILE * output;
8extern int opt_a; /* default alignment column for results */
9extern int opt_d; /* debug */
10extern int opt_i; /* instruction pointer */
11extern int opt_s; /* default maximum # of bytes printed in strings */
12extern int opt_L; /* display library calls */
13extern int opt_S; /* display system calls */
14extern int opt_f; /* trace child processes */
Juan Cespedese1887051998-03-10 00:08:41 +010015extern char * opt_u; /* username to run command as */
Juan Cespedesf666d191998-09-20 23:04:34 +020016extern int opt_r; /* print relative timestamp */
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020017extern int opt_t; /* print absolute timestamp */
Juan Cespedesac3db291998-04-25 14:31:58 +020018#if HAVE_LIBIBERTY
19extern int opt_C; /* Demanglelow-level symbol names into user-level names */
20#endif
Juan Cespedes5b3ffdf2001-07-02 00:52:45 +020021extern int opt_n; /* indent trace output according to program flow */
Juan Cespedes5e01f651998-03-08 22:31:44 +010022
23struct opt_p_t {
24 pid_t pid;
25 struct opt_p_t * next;
26};
27
Juan Cespedesac3db291998-04-25 14:31:58 +020028struct opt_e_t {
29 char * name;
30 struct opt_e_t * next;
31};
32
Juan Cespedes5e01f651998-03-08 22:31:44 +010033extern struct opt_p_t * opt_p; /* attach to process with a given pid */
34
Juan Cespedesac3db291998-04-25 14:31:58 +020035extern struct opt_e_t * opt_e; /* list of function names to display */
36extern int opt_e_enable; /* 0 if '!' is used, 1 otherwise */
37
Juan Cespedes5e01f651998-03-08 22:31:44 +010038extern char ** process_options(int argc, char **argv);