version 1.112, 2006/11/28 17:27:10 |
version 1.112.2.1, 2008/04/11 06:35:02 |
Line 731 ktrmool(struct lwp *l, const void *kaddr |
|
Line 731 ktrmool(struct lwp *l, const void *kaddr |
|
|
|
void |
void |
ktrsaupcall(struct lwp *l, int type, int nevent, int nint, void *sas, |
ktrsaupcall(struct lwp *l, int type, int nevent, int nint, void *sas, |
void *ap) |
void *ap, void *ksas) |
{ |
{ |
struct proc *p = l->l_proc; |
struct proc *p = l->l_proc; |
struct ktrace_entry *kte; |
struct ktrace_entry *kte; |
Line 758 ktrsaupcall(struct lwp *l, int type, int |
|
Line 758 ktrsaupcall(struct lwp *l, int type, int |
|
/* |
/* |
* Copy the sa_t's |
* Copy the sa_t's |
*/ |
*/ |
sapp = (struct sa_t **) sas; |
sapp = (struct sa_t **) ksas; |
|
|
for (i = nevent + nint; i >= 0; i--) { |
for (i = nevent + nint; i >= 0; i--) { |
if (copyin(*sapp, (char *)ktp + len, sizeof(struct sa_t)) == 0) |
memcpy((char *)ktp + len, *sapp, sizeof(struct sa_t)); |
len += sizeof(struct sa_t); |
len += sizeof(struct sa_t); |
sapp++; |
sapp++; |
} |
} |
|
|