MCPcopy Create free account

hub / github.com/bolinfest/opensnoop-native / functions

Functions52 in github.com/bolinfest/opensnoop-native

↓ 12 callersMethodfd
(&self)
rust/libbpf/src/lib.rs:79
↓ 7 callersFunctiongen_c
Returns the C code for the function and the number of instructions in the array the C function generates.
opensnoop.py:99
↓ 6 callersFunctionbpf_attach_kprobe
( prog: &BpfProg, attach_type: BpfProbeAttachType, ev_name: *const c_char, fn_name: *const c_char, f
rust/libbpf/src/lib.rs:228
↓ 4 callersFunctionbpf_prog_load
( bpf_prog_type: BpfProgType, insns: *const raw_libbpf::bpf_insn, insns_count: c_int, )
rust/libbpf/src/lib.rs:179
↓ 4 callersFunctionparse_instruction
(instruction)
debug.py:147
↓ 3 callersFunctioncheck_unix_error
(rc: c_int)
rust/opensnoop/src/main.rs:510
↓ 3 callersFunctionfd_to_file
(fd: c_int, fn_name: &str)
rust/libbpf/src/lib.rs:258
↓ 3 callersFunctionparseNonNegativeInteger
* If a positive integer is parsed successfully, returns the value. * If not, returns -1 and errno is set. */
opensnoop.c:22
↓ 2 callersFunctionformat_imm_bytes
(imm)
debug.py:130
↓ 2 callersFunctionget_list_of_instructions
(bytecode)
debug.py:41
↓ 2 callersFunctionparse_pstree_output
(output: &str)
rust/opensnoop/src/pstree.rs:21
↓ 2 callersMethodupdate
( &self, key: *mut ::std::os::raw::c_void, value: *mut ::std::os::raw::c_void, )
rust/libbpf/src/lib.rs:83
↓ 2 callersFunctionusage
opensnoop.c:126
↓ 1 callersFunctioncreate_process_filter
( options: Options, )
rust/opensnoop/src/main.rs:143
↓ 1 callersFunctiondecode_instruction
(instruction)
debug.py:51
↓ 1 callersFunctiongenerate_c_function
( fn_name, bytecode, num_insns, fd_to_table_name, placeholder=None )
debug.py:217
↓ 1 callersFunctiongenerate_execve_entry
(instructions: &mut [libbpf::bpf_insn], progeny_pids_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:412
↓ 1 callersFunctiongenerate_exit_group_entry
(instructions: &mut [libbpf::bpf_insn], progeny_pids_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:649
↓ 1 callersFunctiongenerate_trace_entry
generated_bytecode.h:16
↓ 1 callersFunctiongenerate_trace_entry
(instructions: &mut [libbpf::bpf_insn], infotmp_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:16
↓ 1 callersFunctiongenerate_trace_entry_pid
generated_bytecode.h:1053
↓ 1 callersFunctiongenerate_trace_entry_pid
(instructions: &mut [libbpf::bpf_insn], pid: i32, infotmp_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:907
↓ 1 callersFunctiongenerate_trace_entry_progeny
(instructions: &mut [libbpf::bpf_insn], infotmp_fd: &BpfMap, progeny_pids_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:187
↓ 1 callersFunctiongenerate_trace_entry_tid
generated_bytecode.h:826
↓ 1 callersFunctiongenerate_trace_entry_tid
(instructions: &mut [libbpf::bpf_insn], tid: i32, infotmp_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:712
↓ 1 callersFunctiongenerate_trace_return
generated_bytecode.h:1301
↓ 1 callersFunctiongenerate_trace_return
(instructions: &mut [libbpf::bpf_insn], infotmp_fd: &BpfMap, events_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:1120
↓ 1 callersFunctiongetOnlineCpus
* A considerably more laborious implementation of get_online_cpus() * compared to the Python code in the bcc repo: * https://github.com/iovisor/bcc/
opensnoop.c:40
↓ 1 callersFunctionget_descendants
(pid: u32)
rust/opensnoop/src/pstree.rs:7
↓ 1 callersFunctionget_online_cpus
()
rust/opensnoop/src/main.rs:430
↓ 1 callersFunctionparseArgs
opensnoop.c:155
↓ 1 callersFunctionprintHeader
opensnoop.c:234
↓ 1 callersFunctionprocess_options
()
rust/opensnoop/src/main.rs:206
↓ 1 callersFunctionread_cpu_ranges
(cpu_ranges: &str)
rust/opensnoop/src/main.rs:437
↓ 1 callersFunctionto_map_type
(bpf_map_type: BpfMapType)
rust/libbpf/src/lib.rs:44
↓ 1 callersFunctionto_probe_attach_type
( bpf_probe_attach_type: BpfProbeAttachType, )
rust/libbpf/src/lib.rs:249
↓ 1 callersFunctionto_prog_type
(bpf_prog_type: BpfProgType)
rust/libbpf/src/lib.rs:144
↓ 1 callersFunctionto_rust_type
(type_name)
debug.py:270
Functionbpf_create_map
(bpf_map_type: BpfMapType, max_entries: c_int)
rust/libbpf/src/lib.rs:99
Functiongenerate_execve_entry
generated_bytecode.h:477
Functiongenerate_exit_group_entry
generated_bytecode.h:753
Functiongenerate_trace_entry_progeny
generated_bytecode.h:215
Functionmain
opensnoop.c:281
Functionmain
()
rust/libbpf/build.rs:6
Functionmain
()
rust/opensnoop/build.rs:6
Functionmain
()
rust/opensnoop/src/main.rs:227
Functionperf_reader_raw_callback
opensnoop.c:244
Functionperf_reader_raw_callback
(cb_cookie: *mut c_void, raw: *mut c_void, _raw_size: c_int)
rust/opensnoop/src/main.rs:467
Functionprint_bpf_insns
Prints the eBPF bytecode as the equivalent bpf_insn[] in C.
debug.py:164
Functionprint_list_of_instructions
(bytecode)
debug.py:47
Functionverify_parse_pstree_output
()
rust/opensnoop/src/pstree.rs:35
Functionverify_read_cpu_ranges
()
rust/opensnoop/src/main.rs:459