Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bolinfest/opensnoop-native
/ functions
Functions
52 in github.com/bolinfest/opensnoop-native
⨍
Functions
52
◇
Types & classes
21
↓ 12 callers
Method
fd
(&self)
rust/libbpf/src/lib.rs:79
↓ 7 callers
Function
gen_c
Returns the C code for the function and the number of instructions in the array the C function generates.
opensnoop.py:99
↓ 6 callers
Function
bpf_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 callers
Function
bpf_prog_load
( bpf_prog_type: BpfProgType, insns: *const raw_libbpf::bpf_insn, insns_count: c_int, )
rust/libbpf/src/lib.rs:179
↓ 4 callers
Function
parse_instruction
(instruction)
debug.py:147
↓ 3 callers
Function
check_unix_error
(rc: c_int)
rust/opensnoop/src/main.rs:510
↓ 3 callers
Function
fd_to_file
(fd: c_int, fn_name: &str)
rust/libbpf/src/lib.rs:258
↓ 3 callers
Function
parseNonNegativeInteger
* If a positive integer is parsed successfully, returns the value. * If not, returns -1 and errno is set. */
opensnoop.c:22
↓ 2 callers
Function
format_imm_bytes
(imm)
debug.py:130
↓ 2 callers
Function
get_list_of_instructions
(bytecode)
debug.py:41
↓ 2 callers
Function
parse_pstree_output
(output: &str)
rust/opensnoop/src/pstree.rs:21
↓ 2 callers
Method
update
( &self, key: *mut ::std::os::raw::c_void, value: *mut ::std::os::raw::c_void, )
rust/libbpf/src/lib.rs:83
↓ 2 callers
Function
usage
opensnoop.c:126
↓ 1 callers
Function
create_process_filter
( options: Options, )
rust/opensnoop/src/main.rs:143
↓ 1 callers
Function
decode_instruction
(instruction)
debug.py:51
↓ 1 callers
Function
generate_c_function
( fn_name, bytecode, num_insns, fd_to_table_name, placeholder=None )
debug.py:217
↓ 1 callers
Function
generate_execve_entry
(instructions: &mut [libbpf::bpf_insn], progeny_pids_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:412
↓ 1 callers
Function
generate_exit_group_entry
(instructions: &mut [libbpf::bpf_insn], progeny_pids_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:649
↓ 1 callers
Function
generate_trace_entry
generated_bytecode.h:16
↓ 1 callers
Function
generate_trace_entry
(instructions: &mut [libbpf::bpf_insn], infotmp_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:16
↓ 1 callers
Function
generate_trace_entry_pid
generated_bytecode.h:1053
↓ 1 callers
Function
generate_trace_entry_pid
(instructions: &mut [libbpf::bpf_insn], pid: i32, infotmp_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:907
↓ 1 callers
Function
generate_trace_entry_progeny
(instructions: &mut [libbpf::bpf_insn], infotmp_fd: &BpfMap, progeny_pids_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:187
↓ 1 callers
Function
generate_trace_entry_tid
generated_bytecode.h:826
↓ 1 callers
Function
generate_trace_entry_tid
(instructions: &mut [libbpf::bpf_insn], tid: i32, infotmp_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:712
↓ 1 callers
Function
generate_trace_return
generated_bytecode.h:1301
↓ 1 callers
Function
generate_trace_return
(instructions: &mut [libbpf::bpf_insn], infotmp_fd: &BpfMap, events_fd: &BpfMap)
rust/opensnoop/src/generated_bytecode.rs:1120
↓ 1 callers
Function
getOnlineCpus
* 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 callers
Function
get_descendants
(pid: u32)
rust/opensnoop/src/pstree.rs:7
↓ 1 callers
Function
get_online_cpus
()
rust/opensnoop/src/main.rs:430
↓ 1 callers
Function
parseArgs
opensnoop.c:155
↓ 1 callers
Function
printHeader
opensnoop.c:234
↓ 1 callers
Function
process_options
()
rust/opensnoop/src/main.rs:206
↓ 1 callers
Function
read_cpu_ranges
(cpu_ranges: &str)
rust/opensnoop/src/main.rs:437
↓ 1 callers
Function
to_map_type
(bpf_map_type: BpfMapType)
rust/libbpf/src/lib.rs:44
↓ 1 callers
Function
to_probe_attach_type
( bpf_probe_attach_type: BpfProbeAttachType, )
rust/libbpf/src/lib.rs:249
↓ 1 callers
Function
to_prog_type
(bpf_prog_type: BpfProgType)
rust/libbpf/src/lib.rs:144
↓ 1 callers
Function
to_rust_type
(type_name)
debug.py:270
Function
bpf_create_map
(bpf_map_type: BpfMapType, max_entries: c_int)
rust/libbpf/src/lib.rs:99
Function
generate_execve_entry
generated_bytecode.h:477
Function
generate_exit_group_entry
generated_bytecode.h:753
Function
generate_trace_entry_progeny
generated_bytecode.h:215
Function
main
opensnoop.c:281
Function
main
()
rust/libbpf/build.rs:6
Function
main
()
rust/opensnoop/build.rs:6
Function
main
()
rust/opensnoop/src/main.rs:227
Function
perf_reader_raw_callback
opensnoop.c:244
Function
perf_reader_raw_callback
(cb_cookie: *mut c_void, raw: *mut c_void, _raw_size: c_int)
rust/opensnoop/src/main.rs:467
Function
print_bpf_insns
Prints the eBPF bytecode as the equivalent bpf_insn[] in C.
debug.py:164
Function
print_list_of_instructions
(bytecode)
debug.py:47
Function
verify_parse_pstree_output
()
rust/opensnoop/src/pstree.rs:35
Function
verify_read_cpu_ranges
()
rust/opensnoop/src/main.rs:459