17981378eSbostic /*- 2*fdf395daSbostic * Copyright (c) 1991, 1993 3*fdf395daSbostic * The Regents of the University of California. All rights reserved. 47981378eSbostic * 57981378eSbostic * %sccs.include.redist.c% 67981378eSbostic * 7*fdf395daSbostic * @(#)tp_meas.h 8.1 (Berkeley) 06/10/93 87981378eSbostic */ 97981378eSbostic 10697a0a62Ssklower /*********************************************************** 11697a0a62Ssklower Copyright IBM Corporation 1987 12697a0a62Ssklower 13697a0a62Ssklower All Rights Reserved 14697a0a62Ssklower 15697a0a62Ssklower Permission to use, copy, modify, and distribute this software and its 16697a0a62Ssklower documentation for any purpose and without fee is hereby granted, 17697a0a62Ssklower provided that the above copyright notice appear in all copies and that 18697a0a62Ssklower both that copyright notice and this permission notice appear in 19697a0a62Ssklower supporting documentation, and that the name of IBM not be 20697a0a62Ssklower used in advertising or publicity pertaining to distribution of the 21697a0a62Ssklower software without specific, written prior permission. 22697a0a62Ssklower 23697a0a62Ssklower IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 24697a0a62Ssklower ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 25697a0a62Ssklower IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 26697a0a62Ssklower ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 27697a0a62Ssklower WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 28697a0a62Ssklower ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 29697a0a62Ssklower SOFTWARE. 30697a0a62Ssklower 31697a0a62Ssklower ******************************************************************/ 32697a0a62Ssklower 33697a0a62Ssklower /* 34697a0a62Ssklower * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison 35697a0a62Ssklower */ 36eb867633Ssklower #ifdef TP_PERF_MEAS 370b7547b2Ssklower #define tpmeas(a, b, t, c, d, e) \ 380b7547b2Ssklower Tpmeas((u_int)(a), (u_int)(b), t, (u_int)(c), (u_int)(d), (u_int)(e)) 39697a0a62Ssklower 40697a0a62Ssklower struct tp_Meas { 41697a0a62Ssklower int tpm_tseq; 42697a0a62Ssklower u_char tpm_kind; 43697a0a62Ssklower u_short tpm_ref; 44697a0a62Ssklower u_short tpm_size; 45697a0a62Ssklower u_short tpm_window; 46697a0a62Ssklower u_int tpm_seq; 47697a0a62Ssklower struct timeval tpm_time; 48697a0a62Ssklower }; 49697a0a62Ssklower 50697a0a62Ssklower #define TPMEASN 4000 51697a0a62Ssklower extern int tp_Measn; 52697a0a62Ssklower extern struct tp_Meas tp_Meas[]; 53697a0a62Ssklower 54697a0a62Ssklower /* 55697a0a62Ssklower * the kinds of events for packet tracing are: 56697a0a62Ssklower */ 57697a0a62Ssklower #define TPtime_from_session 0x01 58697a0a62Ssklower #define TPtime_to_session 0x02 59697a0a62Ssklower #define TPtime_ack_rcvd 0x03 60697a0a62Ssklower #define TPtime_ack_sent 0x04 61697a0a62Ssklower #define TPtime_from_ll 0x05 62697a0a62Ssklower #define TPtime_to_ll 0x06 63697a0a62Ssklower #define TPsbsend 0x07 64697a0a62Ssklower #define TPtime_open 0x08 65697a0a62Ssklower #define TPtime_open_X 0x28 /* xtd format */ 66697a0a62Ssklower #define TPtime_close 0x09 67697a0a62Ssklower 685cbc22e2Sbostic #endif /* TP_PERF_MEAS */ 69