Deleted Added
full compact
kern_ktrace.c (226269) kern_ktrace.c (226495)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 18 unchanged lines hidden (view full) ---

27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 18 unchanged lines hidden (view full) ---

27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/kern/kern_ktrace.c 226269 2011-10-11 20:37:10Z des $");
35__FBSDID("$FreeBSD: head/sys/kern/kern_ktrace.c 226495 2011-10-18 07:28:58Z des $");
36
37#include "opt_ktrace.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/fcntl.h>
42#include <sys/kernel.h>
43#include <sys/kthread.h>

--- 723 unchanged lines hidden (view full) ---

767 return;
768 }
769 req->ktr_buffer = buf;
770 req->ktr_header.ktr_len = buflen;
771 ktr_submitrequest(curthread, req);
772}
773
774void
36
37#include "opt_ktrace.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/fcntl.h>
42#include <sys/kernel.h>
43#include <sys/kthread.h>

--- 723 unchanged lines hidden (view full) ---

767 return;
768 }
769 req->ktr_buffer = buf;
770 req->ktr_header.ktr_len = buflen;
771 ktr_submitrequest(curthread, req);
772}
773
774void
775ktrcapfail(needed, held)
775ktrcapfail(type, needed, held)
776 enum ktr_cap_fail_type type;
776 cap_rights_t needed;
777 cap_rights_t held;
778{
779 struct thread *td = curthread;
780 struct ktr_request *req;
781 struct ktr_cap_fail *kcf;
782
783 req = ktr_getrequest(KTR_CAPFAIL);
784 if (req == NULL)
785 return;
786 kcf = &req->ktr_data.ktr_cap_fail;
777 cap_rights_t needed;
778 cap_rights_t held;
779{
780 struct thread *td = curthread;
781 struct ktr_request *req;
782 struct ktr_cap_fail *kcf;
783
784 req = ktr_getrequest(KTR_CAPFAIL);
785 if (req == NULL)
786 return;
787 kcf = &req->ktr_data.ktr_cap_fail;
788 kcf->cap_type = type;
787 kcf->cap_needed = needed;
788 kcf->cap_held = held;
789 ktr_enqueuerequest(td, req);
790 ktrace_exit(td);
791}
792#endif /* KTRACE */
793
794/* Interface and common routines */

--- 451 unchanged lines hidden ---
789 kcf->cap_needed = needed;
790 kcf->cap_held = held;
791 ktr_enqueuerequest(td, req);
792 ktrace_exit(td);
793}
794#endif /* KTRACE */
795
796/* Interface and common routines */

--- 451 unchanged lines hidden ---