This repository was archived by the owner on Feb 22, 2025. It is now read-only.
File tree 2 files changed +40
-3
lines changed
2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -1862,6 +1862,11 @@ <h2 id="_functions">Functions</h2>
1862
1862
< td class ="tableblock halign-left valign-top "> < p class ="tableblock "> Async</ p > </ td >
1863
1863
</ tr >
1864
1864
< 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 >
1865
1870
< td class ="tableblock halign-left valign-top "> < p class ="tableblock "> < a href ="#functions-macaddr "> < code > macaddr</ code > </ a > </ p > </ td >
1866
1871
< td class ="tableblock halign-left valign-top "> < p class ="tableblock "> Convert MAC address data</ p > </ td >
1867
1872
< td class ="tableblock halign-left valign-top "> < p class ="tableblock "> Sync</ p > </ td >
@@ -2371,6 +2376,24 @@ <h3 id="functions-ksym">ksym</h3>
2371
2376
</ div >
2372
2377
</ div >
2373
2378
< 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 ">
2374
2397
< h3 id ="functions-macaddr "> macaddr</ h3 >
2375
2398
< div class ="ulist ">
2376
2399
< div class ="title "> variants</ div >
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ When _FILENAME_ is "_-_", bpftrace will read program code from stdin.
21
21
22
22
== Description
23
23
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
27
27
tracing capabilities.
28
28
29
29
== Examples
@@ -1334,6 +1334,10 @@ Tracing block I/O sizes > 0 bytes
1334
1334
| Resolve kernel address
1335
1335
| Async
1336
1336
1337
+ | <<functions-len, `len`>>
1338
+ | Count ustack/kstack frames
1339
+ | Sync
1340
+
1337
1341
| <<functions-macaddr, `macaddr`>>
1338
1342
| Convert MAC address data
1339
1343
| Sync
@@ -1713,6 +1717,16 @@ kprobe:do_nanosleep
1713
1717
*/
1714
1718
----
1715
1719
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
+
1716
1730
[#functions-macaddr]
1717
1731
=== macaddr
1718
1732
You can’t perform that action at this time.
0 commit comments