kern_proc.c (8510f2a8336c5d56ff3594d98a4a4502878b8773) | kern_proc.c (a5881ea55a2c554fd584cf985d99e92ad1db8737) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 611 unchanged lines hidden (view full) --- 620 621 kp->ki_structsize = sizeof(*kp); 622 kp->ki_paddr = p; 623 PROC_LOCK_ASSERT(p, MA_OWNED); 624 kp->ki_addr =/* p->p_addr; */0; /* XXXKSE */ 625 kp->ki_args = p->p_args; 626 kp->ki_textvp = p->p_textvp; 627#ifdef KTRACE | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 611 unchanged lines hidden (view full) --- 620 621 kp->ki_structsize = sizeof(*kp); 622 kp->ki_paddr = p; 623 PROC_LOCK_ASSERT(p, MA_OWNED); 624 kp->ki_addr =/* p->p_addr; */0; /* XXXKSE */ 625 kp->ki_args = p->p_args; 626 kp->ki_textvp = p->p_textvp; 627#ifdef KTRACE |
628 kp->ki_tracep = p->p_tracep; | 628 kp->ki_tracep = p->p_tracevp; |
629 mtx_lock(&ktrace_mtx); 630 kp->ki_traceflag = p->p_traceflag; 631 mtx_unlock(&ktrace_mtx); 632#endif 633 kp->ki_fd = p->p_fd; 634 kp->ki_vmspace = p->p_vmspace; 635 if (p->p_ucred) { 636 kp->ki_uid = p->p_ucred->cr_uid; --- 459 unchanged lines hidden --- | 629 mtx_lock(&ktrace_mtx); 630 kp->ki_traceflag = p->p_traceflag; 631 mtx_unlock(&ktrace_mtx); 632#endif 633 kp->ki_fd = p->p_fd; 634 kp->ki_vmspace = p->p_vmspace; 635 if (p->p_ucred) { 636 kp->ki_uid = p->p_ucred->cr_uid; --- 459 unchanged lines hidden --- |