* Submit a trace record for immediate commit to disk -- to be used only * where entering VFS is OK. First drain any pending records that may have * been cached in the thread. */
| 389 | * been cached in the thread. |
| 390 | */ |
| 391 | static void |
| 392 | ktr_submitrequest(struct thread *td, struct ktr_request *req) |
| 393 | { |
| 394 | |
| 395 | ktrace_assert(td); |
| 396 | |
| 397 | sx_xlock(&ktrace_sx); |
| 398 | ktr_drain(td); |
| 399 | ktr_writerequest(td, req); |
| 400 | ktr_freerequest(req); |
| 401 | sx_xunlock(&ktrace_sx); |
| 402 | ktrace_exit(td); |
| 403 | } |
| 404 | |
| 405 | static void |
| 406 | ktr_freerequest(struct ktr_request *req) |
no test coverage detected