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)
| 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) |