options.h revision 1150bc4b812f0150e832607b8724b023d6d7d575
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_A;		/* default maximum # of array elements printed */
11extern int opt_c;		/* count time, calls, and report a summary on program exit */
12extern int opt_d;		/* debug */
13extern int opt_i;		/* instruction pointer */
14extern int opt_s;		/* default maximum # of bytes printed in strings */
15extern int opt_L;		/* display library calls */
16extern int opt_S;		/* display system calls */
17extern int opt_f;		/* trace child processes */
18extern char *opt_u;		/* username to run command as */
19extern int opt_r;		/* print relative timestamp */
20extern int opt_t;		/* print absolute timestamp */
21extern int opt_C;		/* Demanglelow-level symbol names into user-level names */
22extern int opt_n;		/* indent trace output according to program flow */
23extern int opt_T;		/* show the time spent inside each call */
24
25struct opt_p_t {
26	pid_t pid;
27	struct opt_p_t *next;
28};
29
30struct opt_e_t {
31	char *name;
32	struct opt_e_t *next;
33};
34
35struct opt_F_t {
36	char *filename;
37	struct opt_F_t *next;
38};
39
40struct opt_x_t {
41	char *name;
42	int found;
43	struct opt_x_t *next;
44};
45
46extern struct opt_p_t *opt_p;	/* attach to process with a given pid */
47
48extern struct opt_e_t *opt_e;	/* list of function names to display */
49extern int opt_e_enable;	/* 0 if '!' is used, 1 otherwise */
50
51extern struct opt_F_t *opt_F;	/* alternate configuration file(s) */
52
53extern struct opt_x_t *opt_x;	/* list of functions to break at */
54
55extern char **process_options(int argc, char **argv);
56