> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/dtrace_callout_execute.4.md).

# dtrace\_callout\_execute.4

`dtrace_callout_execute` — 用于 callout API 的 DTrace 提供者

## 名称

`dtrace_callout_execute`

## 概要

`callout_execute:kernel::callout_start callout_execute:kernel::callout_end`

## 描述

`callout_execute` 提供者允许跟踪 [callout(9)](/man/man9/callout.9.md) 机制。

`callout_execute``:kernel::callout_start` 探测在 callout 开始之前触发。

`callout_execute``:kernel::callout_end` 探测在 callout 结束之后立即触发。

`callout_execute` 探测的唯一参数 `args[0]` 是被调用 callout 的 callout 处理程序 Ft struct callout \*。

## 实例

### 实例 1：Callout 执行时间图

以下 [d(7)](/man/man7/d.7.md) 脚本生成 [callout(9)](/man/man9/callout.9.md) 执行时间的分布图：

```sh
callout_execute:::callout_start
{
    self->cstart = timestamp;
}
callout_execute:::callout_end
{
    @length = quantize(timestamp - self->cstart);
}
```

## 参见

[dtrace(1)](/man/man1/dtrace.1.md), [tracing(7)](/man/man7/tracing.7.md), [callout(9)](/man/man9/callout.9.md), [SDT(9)](https://github.com/FreeBSD-Ask/freebsd-man-sc/tree/main/man9/sdt.9.md)

## 作者

`callout_execute` 提供者由 Robert N. M. Watson <rwatson@FreeBSD.org> 编写。

本手册页由 Mateusz Piotrowski <0mp@FreeBSD.org> 编写。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/dtrace_callout_execute.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
