require '_h2ph_pre.ph';

unless(defined(&TR_BREADHIT)) {
    sub TR_BREADHIT () {	0;}
}
unless(defined(&TR_BREADMISS)) {
    sub TR_BREADMISS () {	1;}
}
unless(defined(&TR_BWRITE)) {
    sub TR_BWRITE () {	2;}
}
unless(defined(&TR_BREADHITRA)) {
    sub TR_BREADHITRA () {	3;}
}
unless(defined(&TR_BREADMISSRA)) {
    sub TR_BREADMISSRA () {	4;}
}
unless(defined(&TR_XFODMISS)) {
    sub TR_XFODMISS () {	5;}
}
unless(defined(&TR_XFODHIT)) {
    sub TR_XFODHIT () {	6;}
}
unless(defined(&TR_BRELSE)) {
    sub TR_BRELSE () {	7;}
}
unless(defined(&TR_BREALLOC)) {
    sub TR_BREALLOC () {	8;}
}
unless(defined(&TR_MALL)) {
    sub TR_MALL () {	10;}
}
unless(defined(&TR_INTRANS)) {
    sub TR_INTRANS () {	20;}
}
unless(defined(&TR_EINTRANS)) {
    sub TR_EINTRANS () {	21;}
}
unless(defined(&TR_FRECLAIM)) {
    sub TR_FRECLAIM () {	22;}
}
unless(defined(&TR_RECLAIM)) {
    sub TR_RECLAIM () {	23;}
}
unless(defined(&TR_XSFREC)) {
    sub TR_XSFREC () {	24;}
}
unless(defined(&TR_XIFREC)) {
    sub TR_XIFREC () {	25;}
}
unless(defined(&TR_WAITMEM)) {
    sub TR_WAITMEM () {	26;}
}
unless(defined(&TR_EWAITMEM)) {
    sub TR_EWAITMEM () {	27;}
}
unless(defined(&TR_ZFOD)) {
    sub TR_ZFOD () {	28;}
}
unless(defined(&TR_EXFOD)) {
    sub TR_EXFOD () {	29;}
}
unless(defined(&TR_VRFOD)) {
    sub TR_VRFOD () {	30;}
}
unless(defined(&TR_CACHEFOD)) {
    sub TR_CACHEFOD () {	31;}
}
unless(defined(&TR_SWAPIN)) {
    sub TR_SWAPIN () {	32;}
}
unless(defined(&TR_PGINDONE)) {
    sub TR_PGINDONE () {	33;}
}
unless(defined(&TR_SWAPIO)) {
    sub TR_SWAPIO () {	34;}
}
unless(defined(&TR_VADVISE)) {
    sub TR_VADVISE () {	40;}
}
unless(defined(&TR_STAMP)) {
    sub TR_STAMP () {	45;}
}
unless(defined(&TR_NFLAGS)) {
    sub TR_NFLAGS () {	100;}
}
unless(defined(&TRCSIZ)) {
    sub TRCSIZ () {	4096;}
}
unless(defined(&VTRACE)) {
    sub VTRACE () {	64+51;}
}
unless(defined(&VTR_DISABLE)) {
    sub VTR_DISABLE () {	0;}
}
unless(defined(&VTR_ENABLE)) {
    sub VTR_ENABLE () {	1;}
}
unless(defined(&VTR_VALUE)) {
    sub VTR_VALUE () {	2;}
}
unless(defined(&VTR_UALARM)) {
    sub VTR_UALARM () {	3;}
}
unless(defined(&VTR_STAMP)) {
    sub VTR_STAMP () {	4;}
}
if(defined(&_KERNEL)) {
    if(defined(&TRACE)) {
	eval 'sub pack {
	    local($v,$b) = @_;
    	    eval q(((($v)-> ($v_mount->{mnt_stat}->{f_fsid}->{val[0]}))<<16)|($b));
	}' unless defined(&pack);
	eval 'sub trace {
	    local($a,$b,$c) = @_;
    	    eval q({  &if ( $traceflags[$a])  &trace1($a,$b,$c); });
	}' unless defined(&trace);
    } else {
	eval 'sub trace {
	    local($a,$b,$c) = @_;
    	    eval q();
	}' unless defined(&trace);
    }
}
1;
