isovalent / ebpf-docs

An effort to comprehensively document eBPF
https://ebpf-docs.dylanreimerink.nl/
BSD 2-Clause "Simplified" License
177 stars 18 forks source link

Add usage and examples for bpf_get_stackid helper #28

Closed maxgio92 closed 4 months ago

maxgio92 commented 4 months ago

This PR adds usage and examples for the bpf_get_stackid helper function to retrieve the kernel or user stack id.

It further links to the more complete official Linux examples of trace_event and offwaketime.

maxgio92 commented 4 months ago

I tested the HTML output and it seems pretty good :-)

maxgio92 commented 4 months ago

No problem @dylandreimerink, thank you!