1 /* 2 Copyright (C) 1993,1995 Hewlett-Packard Company 3 */ 4 5 /* libraried performance include file */ 6 /* the define NOPERFEXTERN tels us not to re-define all the */ 7 8 /* defines and defaults */ 9 #define HOSTNAMESIZE 255 10 #define PORTBUFSIZE 10 11 #define DEFAULT_SIZE 32768 12 #define HOST_NAME "127.0.0.1" 13 #define TEST_PORT "12865" 14 15 /* output controlling variables */ 16 #define DEBUG 0 /* debugging level */ 17 #define VERBOSITY 0 /* verbosity level */ 18 19 /* the end-test conditions for the tests - either transactions, bytes, */ 20 /* or time. different vars used for clarity - space is cheap ;-) */ 21 #define TEST_TIME 10 /* test ends by time */ 22 #define TEST_BYTES 0 /* test ends on byte count */ 23 #define TEST_TRANS 0 /* test ends on tran count */ 24 25 /* the alignment conditions for the tests */ 26 #define LOC_RECV_ALIGN 4 /* alignment for local receives */ 27 #define LOC_SEND_ALIGN 4 /* alignment for local sends */ 28 #define REM_RECV_ALIGN 4 /* alignment for remote receive */ 29 #define REM_SEND_ALIGN 4 /* alignment for remote sends */ 30 31 /* misc defines for the hell of it */ 32 #ifndef MAXLONG 33 #define MAXLONG 4294967295UL 34 #endif /* MAXLONG */ 35 36 #ifndef NETSH 37 extern char *program; /* program invocation name */ 38 39 /* stuff to say where this test is going */ 40 extern char host_name[HOSTNAMESIZE];/* remote host name or ip addr */ 41 extern char local_host_name[HOSTNAMESIZE]; 42 extern char test_port[PORTBUFSIZE]; /* where is the test waiting */ 43 extern char local_test_port[PORTBUFSIZE]; 44 extern int address_family; 45 extern int local_address_family; 46 extern int parse_address_family(char family_string[]); 47 extern void set_defaults(); 48 extern void scan_cmd_line(int argc, char *argv[]); 49 extern void dump_globals(); 50 extern void break_args(char *s, char *arg1, char *arg2); 51 extern void break_args_explicit(char *s, char *arg1, char *arg2); 52 extern void print_netserver_usage(); 53 54 /* output controlling variables */ 55 extern int 56 debug, /* debugging level */ 57 print_headers, /* do/don't print test headers */ 58 verbosity; /* verbosity level */ 59 60 /* the end-test conditions for the tests - either transactions, bytes, */ 61 /* or time. different vars used for clarity - space is cheap ;-) */ 62 extern int 63 test_time, /* test ends by time */ 64 test_len_ticks, 65 test_bytes, /* test ends on byte count */ 66 test_trans; /* test ends on tran count */ 67 68 /* the alignment conditions for the tests */ 69 extern int 70 local_recv_align, /* alignment for local receives */ 71 local_send_align, /* alignment for local sends */ 72 remote_recv_align, /* alignment for remote receives */ 73 remote_send_align, /* alignment for remote sends */ 74 local_send_offset, 75 local_recv_offset, 76 remote_send_offset, 77 remote_recv_offset; 78 79 #if defined(WANT_INTERVALS) || defined(WANT_DEMO) 80 extern int interval_usecs; 81 extern int interval_wate; 82 extern int interval_burst; 83 84 extern int demo_mode; 85 extern double demo_interval; 86 extern double demo_units; 87 extern double units_this_tick; 88 #endif 89 90 #ifdef DIRTY 91 extern int rem_dirty_count; 92 extern int rem_clean_count; 93 extern int loc_dirty_count; 94 extern int loc_clean_count; 95 #endif /* DIRTY */ 96 97 /* stuff for confidence intervals */ 98 99 extern int confidence_level; 100 extern int iteration_min; 101 extern int iteration_max; 102 extern int result_confidence_only; 103 extern double interval; 104 105 extern int cpu_binding_requested; 106 107 /* stuff to controll the bufferspace "width" */ 108 extern int send_width; 109 extern int recv_width; 110 111 /* address family */ 112 extern int af; 113 114 /* different options for other things */ 115 extern int 116 local_cpu_usage, 117 remote_cpu_usage; 118 119 extern float 120 local_cpu_rate, 121 remote_cpu_rate; 122 123 extern int 124 shell_num_cpus; 125 126 extern char 127 test_name[BUFSIZ]; 128 129 extern char 130 fill_file[BUFSIZ]; 131 132 extern char * 133 result_brand; 134 135 extern int 136 no_control; 137 138 #ifdef WANT_DLPI 139 140 extern int 141 loc_ppa, 142 rem_ppa; 143 144 extern int 145 dlpi_sap; 146 147 #endif /* WANT_DLPI */ 148 149 #endif 150