Module Name: src Committed By: matt Date: Tue May 11 20:58:10 UTC 2010
Modified Files: src/sys/sys [matt-nb5-mips64]: ktrace.h Log Message: Properly pad some structures to 64bit. A N32 ktruss on a N64 kernel now works (this might not work for sparc/x86 if their register_t for 32bit isn't the same size as register_t). To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.55.10.1 src/sys/sys/ktrace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/ktrace.h diff -u src/sys/sys/ktrace.h:1.55 src/sys/sys/ktrace.h:1.55.10.1 --- src/sys/sys/ktrace.h:1.55 Mon Oct 20 11:36:39 2008 +++ src/sys/sys/ktrace.h Tue May 11 20:58:10 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ktrace.h,v 1.55 2008/10/20 11:36:39 ad Exp $ */ +/* $NetBSD: ktrace.h,v 1.55.10.1 2010/05/11 20:58:10 matt Exp $ */ /* * Copyright (c) 1988, 1993 @@ -66,10 +66,12 @@ union { struct timeval _tv; /* v0 timestamp */ struct timespec _ts; /* v1 timespec */ + uint64_t _tpad[2]; } _ktr_time; union { const void *_buf; /* v0 unused */ lwpid_t _lid; /* v1 lwp id */ + register_t *_reg; /* for alignment */ } _ktr_id; };