Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Commit 7989494

Browse files
committed
docs: Sync with upstream
1 parent 2a64f45 commit 7989494

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

docs/master.html

+23
Original file line numberDiff line numberDiff line change
@@ -1862,6 +1862,11 @@ <h2 id="_functions">Functions</h2>
18621862
<td class="tableblock halign-left valign-top"><p class="tableblock">Async</p></td>
18631863
</tr>
18641864
<tr>
1865+
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#functions-len"><code>len</code></a></p></td>
1866+
<td class="tableblock halign-left valign-top"><p class="tableblock">Count ustack/kstack frames</p></td>
1867+
<td class="tableblock halign-left valign-top"><p class="tableblock">Sync</p></td>
1868+
</tr>
1869+
<tr>
18651870
<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#functions-macaddr"><code>macaddr</code></a></p></td>
18661871
<td class="tableblock halign-left valign-top"><p class="tableblock">Convert MAC address data</p></td>
18671872
<td class="tableblock halign-left valign-top"><p class="tableblock">Sync</p></td>
@@ -2371,6 +2376,24 @@ <h3 id="functions-ksym">ksym</h3>
23712376
</div>
23722377
</div>
23732378
<div class="sect2">
2379+
<h3 id="functions-len">len</h3>
2380+
<div class="ulist">
2381+
<div class="title">variants</div>
2382+
<ul>
2383+
<li>
2384+
<p><code>int64 len(ustack stack)</code></p>
2385+
</li>
2386+
<li>
2387+
<p><code>int64 len(kstack stack)</code></p>
2388+
</li>
2389+
</ul>
2390+
</div>
2391+
<div class="paragraph">
2392+
<p>Retrieve the depth (measured in # of frames) of the call stack
2393+
specified by <code>stack</code>.</p>
2394+
</div>
2395+
</div>
2396+
<div class="sect2">
23742397
<h3 id="functions-macaddr">macaddr</h3>
23752398
<div class="ulist">
23762399
<div class="title">variants</div>

src/docs/master.adoc

+17-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ When _FILENAME_ is "_-_", bpftrace will read program code from stdin.
2121

2222
== Description
2323

24-
bpftrace is a high-level tracing language for Linux. bpftrace uses LLVM as
25-
a backend to compile scripts to eBPF-bytecode and makes use of libbpf and bcc
26-
for interacting with the Linux BPF subsystem, as well as existing Linux
24+
bpftrace is a high-level tracing language for Linux. bpftrace uses LLVM as
25+
a backend to compile scripts to eBPF-bytecode and makes use of libbpf and bcc
26+
for interacting with the Linux BPF subsystem, as well as existing Linux
2727
tracing capabilities.
2828

2929
== Examples
@@ -1334,6 +1334,10 @@ Tracing block I/O sizes > 0 bytes
13341334
| Resolve kernel address
13351335
| Async
13361336

1337+
| <<functions-len, `len`>>
1338+
| Count ustack/kstack frames
1339+
| Sync
1340+
13371341
| <<functions-macaddr, `macaddr`>>
13381342
| Convert MAC address data
13391343
| Sync
@@ -1713,6 +1717,16 @@ kprobe:do_nanosleep
17131717
*/
17141718
----
17151719

1720+
[#functions-len]
1721+
=== len
1722+
1723+
.variants
1724+
* `int64 len(ustack stack)`
1725+
* `int64 len(kstack stack)`
1726+
1727+
Retrieve the depth (measured in # of frames) of the call stack
1728+
specified by `stack`.
1729+
17161730
[#functions-macaddr]
17171731
=== macaddr
17181732

0 commit comments

Comments
 (0)