MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / bpf_buffer_sample

Function bpf_buffer_sample

plugins/wasm_bpf/wasm-bpf.cpp:39–43  ·  view source on GitHub ↗

\brief sample the perf buffer and ring buffer

Source from the content-addressed store, hash-verified

37
38/// \brief sample the perf buffer and ring buffer
39static int32_t bpf_buffer_sample(void *ctx, void *data, size_t size) {
40 WasmEdge::Host::bpf_buffer *buffer =
41 static_cast<WasmEdge::Host::bpf_buffer *>(ctx);
42 return buffer->bpf_buffer_sample(data, size);
43}
44
45namespace WasmEdge {
46namespace Host {

Callers 1

perfbuf_sample_fnFunction · 0.85

Calls 1

bpf_buffer_sampleMethod · 0.80

Tested by

no test coverage detected