kern_ktrace.c (c601ad8eebac3f9bc517d75ecab772aae70aeec6) | kern_ktrace.c (e141be6f79f0cbfa36dd284c5a2528a566d809f9) |
---|---|
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 --- 758 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 | 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 --- 758 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 --- |