MCPcopy Create free account
hub / github.com/iovisor/bcc / load_funcs

Method load_funcs

src/python/bcc/__init__.py:517–528  ·  view source on GitHub ↗

load_funcs(prog_type=KPROBE) Load all functions in this BPF module with the given type. Returns a list of the function handles.

(self, prog_type=KPROBE)

Source from the content-addressed store, hash-verified

515 self._trace_autoload()
516
517 def load_funcs(self, prog_type=KPROBE):
518 """load_funcs(prog_type=KPROBE)
519
520 Load all functions in this BPF module with the given type.
521 Returns a list of the function handles."""
522
523 fns = []
524 for i in range(0, lib.bpf_num_functions(self.module)):
525 func_name = lib.bpf_function_name(self.module, i)
526 fns.append(self.load_func(func_name, prog_type))
527
528 return fns
529
530 def load_func(self, func_name, prog_type, device = None, attach_type = -1):
531 func_name = _assert_is_bytes(func_name)

Callers 2

test_probe_read_keysMethod · 0.95
test_jump_tableMethod · 0.95

Calls 1

load_funcMethod · 0.95

Tested by 2

test_probe_read_keysMethod · 0.76
test_jump_tableMethod · 0.76