Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Technolution/rustig
/ functions
Functions
408 in github.com/Technolution/rustig
⨍
Functions
408
◇
Types & classes
98
↓ 43 callers
Function
load_test_binary_as_bytes
Load a test subject executable as a byte vector. Must be one of the crates in `test_subjects`
lib/test_common/src/lib.rs:59
↓ 38 callers
Method
build
(&self)
lib/panic_analysis/src/binary/mod.rs:26
↓ 34 callers
Function
parse_context
Parse the contents of a file into a callgraph::Context
lib/panic_analysis/src/test_utils.rs:18
↓ 29 callers
Function
get_test_subject_path
Prepare the path of the executable of test subject `subject`
lib/test_common/src/lib.rs:38
↓ 27 callers
Function
create_procedure
Helper method for creating procedures
lib/panic_analysis/src/marker/panic.rs:113
↓ 24 callers
Function
find_panics
Main entry point of the `panic_analysis` crate. This function accepts some options [AnalysisOptions](struct.AnalysisOptions.html), and returns a [Pan
lib/panic_analysis/src/lib.rs:328
↓ 23 callers
Function
create_procedure
Helper method for creating procedures
lib/panic_analysis/src/panic_calls/mod.rs:266
↓ 14 callers
Method
into_backtrace_vec
(self)
lib/panic_analysis/src/lib.rs:52
↓ 10 callers
Function
create_procedure_with_name
Helper function to create a procedure with a given name and crate name
lib/panic_analysis/src/marker/analysis_target.rs:135
↓ 9 callers
Function
add_node
Adds a node for a specific function in the target binary
lib/callgraph/src/callgraph/lea_dynamic_calls.rs:520
↓ 9 callers
Function
assert_trace_present
helper method that checks if a trace through function `function_name`, exists in the test subject "arithmetic" on type `subject_type`. It is asserted
lib/panic_analysis/tests/recognize-arithmetic.rs:21
↓ 9 callers
Function
create_procedure
Helper method for creating procedures
lib/panic_analysis/src/patterns/direct_panic.rs:92
↓ 8 callers
Method
find_panics
(&self, call_graph: &RustigCallGraph, context: &Context)
lib/panic_analysis/src/panic_calls/mod.rs:45
↓ 8 callers
Method
traverse_graph
(&self, index: NodeIndex<u32>, graph: &RustigGraph)
lib/panic_analysis/src/marker/panic.rs:55
↓ 6 callers
Method
find_patterns
(&self, _ctx: &Context, panic_calls: &PanicCallsCollection)
lib/panic_analysis/src/patterns/message_panic.rs:24
↓ 6 callers
Function
get_crate_from_comp_dir
Function that returns a `Crate` instance from the compilation dir. Usually, for an external crate, the direactory has the format '/path/to/checkout/<c
lib/callgraph/src/crate_utils.rs:31
↓ 5 callers
Function
create_proc_vec
Helper method for creating a vector of procedures
lib/panic_analysis/src/patterns/function_panic.rs:109
↓ 5 callers
Method
find_patterns
(&self, _ctx: &Context, panic_calls: &PanicCallsCollection)
lib/panic_analysis/src/patterns/function_panic.rs:28
↓ 5 callers
Function
load_test_binary
Load a test subject executable. Must be one of the crates in `test_subjects`
lib/test_common/src/lib.rs:52
↓ 5 callers
Function
parse
Local helper function to create a Context
lib/callgraph/src/callgraph/mod.rs:518
↓ 4 callers
Method
build_call_graph
Function building the full call graph from the information in `ctx`.
lib/callgraph/src/callgraph/mod.rs:392
↓ 4 callers
Function
create_procedure_with_name
Helper function to create a procedure with a given name, crate name and address
lib/panic_analysis/src/marker/function_whitelist.rs:148
↓ 4 callers
Method
find_patterns
(&self, _ctx: &Context, panic_calls: &PanicCallsCollection)
lib/panic_analysis/src/patterns/direct_panic.rs:19
↓ 4 callers
Function
get_instruction_operand_registers
( capstone: &Capstone, instruction: &Insn, )
lib/panic_analysis/src/panic_calls/panic_message.rs:227
↓ 4 callers
Function
get_instruction_operand_values
(capstone: &Capstone, instruction: &Insn)
lib/panic_analysis/src/panic_calls/panic_message.rs:251
↓ 4 callers
Method
mark_code
(&self, call_graph: &RustigCallGraph, _context: &Context)
lib/panic_analysis/src/marker/analysis_target.rs:23
↓ 4 callers
Function
parse
Local helper function to create a Context
lib/panic_analysis/src/marker/function_whitelist.rs:101
↓ 4 callers
Method
parse
(&self, file_content: &'a [u8])
lib/callgraph/src/parse/mod.rs:60
↓ 3 callers
Function
add_procs_with_name
( name: &str, ctx: &Context, mut graph: &mut StableGraph< Rc<RefCell<Proce
lib/callgraph/src/callgraph/lea_dynamic_calls.rs:589
↓ 3 callers
Function
create_options
(path: Option<String>, full: bool, filtered: bool)
lib/panic_analysis/src/graph_output/mod.rs:114
↓ 3 callers
Function
create_procedure_with_name
Helper function to create a procedure with a given name and crate name
lib/callgraph/src/lib.rs:446
↓ 3 callers
Method
find_invocations
Adds all dynamic invocations, either by procedure reference, or vtable reference, to the call graph.
lib/callgraph/src/callgraph/lea_dynamic_calls.rs:410
↓ 3 callers
Function
get_attr_addr_value
If the attribute has an Addr value, it will be returned. Else `None` will be given.
lib/callgraph/src/dwarf_utils.rs:98
↓ 3 callers
Function
get_attr_string_value
Function that returns a string value from an entries attribute. If no string was found, `None` will be returned
lib/callgraph/src/dwarf_utils.rs:59
↓ 3 callers
Function
get_attr_string_value_safe
Function that returns a string value from an entry's attribute. If no string was found, or an error occured an error message will be returned.
lib/callgraph/src/dwarf_utils.rs:32
↓ 3 callers
Function
get_panic_analysis_target_marker
(options: &AnalysisOptions)
lib/panic_analysis/src/marker/analysis_target.rs:89
↓ 3 callers
Function
parse
Local helper function to create a Context
lib/callgraph/src/callgraph/lea_dynamic_calls.rs:473
↓ 2 callers
Function
add_raw_node
Add a node to the graph with parameter values
lib/callgraph/src/callgraph/lea_dynamic_calls.rs:547
↓ 2 callers
Function
baz
()
test_subjects/multi_dep/src/main.rs:27
↓ 2 callers
Function
build_subjects
(endpath: &str, fixed_cargo_version: Option<&str>)
lib/test_common/build.rs:51
↓ 2 callers
Method
call_inner_lambda
(&self)
test_subjects_lib/src/lambda_structs.rs:26
↓ 2 callers
Function
call_unsized
(call: &T)
test_subjects_lib/src/reference_calls.rs:29
↓ 2 callers
Method
call_with_self
(&self)
test_subjects_lib/src/trait_dynamic_calls.rs:23
↓ 2 callers
Function
create_callgraph
Create callgraph with a (possibly panicking) procedure with some specific name
lib/panic_analysis/src/filter/panic_filter.rs:101
↓ 2 callers
Function
create_procedure_with_name
Helper function to create a procedure with a given name, crate name and address
lib/panic_analysis/src/marker/entry_point.rs:115
↓ 2 callers
Function
create_procedure_with_name
Helper function to create a procedure with a given name and crate name
lib/panic_analysis/src/filter/whitelist_filter.rs:116
↓ 2 callers
Method
dot
Return dot representation of the graph
lib/callgraph/src/lib.rs:310
↓ 2 callers
Function
fetch_function_names
Function returning the names iof the procedure references in `entry`.
lib/callgraph/src/callgraph/mod.rs:304
↓ 2 callers
Method
filter_nodes
(&self, call_graph: &mut RustigCallGraph, _context: &Context)
lib/panic_analysis/src/filter/panic_filter.rs:20
↓ 2 callers
Method
filter_nodes
(&self, call_graph: &mut RustigCallGraph, context: &Context)
lib/panic_analysis/src/filter/mod.rs:33
↓ 2 callers
Method
find_patterns
(&self, ctx: &Context, panic_calls: &PanicCallsCollection)
lib/panic_analysis/src/patterns/mod.rs:32
↓ 2 callers
Function
fn_names_match
(filter_name: &str, procedure_name: &str)
lib/panic_analysis/src/lib.rs:102
↓ 2 callers
Function
get_attr_str_with_origin_traversal
Function getting an attribute string value. If the attribute is not present, but an DW_AT_abstract_origin attribute is present, the references entry w
lib/callgraph/src/dwarf_utils.rs:182
↓ 2 callers
Function
get_attr_string_buf
Function that returns the buffer of a string value from an entries attribute. If no string valute was found, `None` will be returned
lib/callgraph/src/dwarf_utils.rs:47
↓ 2 callers
Function
get_boxed_output
(active: bool, stage: String, filename: String)
lib/panic_analysis/src/graph_output/mod.rs:68
↓ 2 callers
Function
get_bytes_at_address
(context: &Context<'a>, address: u64, size: u64)
lib/panic_analysis/src/panic_calls/panic_message.rs:322
↓ 2 callers
Function
get_call_instruction
( backtrace: &[BackTraceEntry], count: usize, fn_name: &str, )
lib/panic_analysis/src/panic_calls/panic_message.rs:282
↓ 2 callers
Function
get_graph_output_filtered
Graph output for filtered graph
lib/panic_analysis/src/graph_output/mod.rs:88
↓ 2 callers
Function
get_graph_output_full
Graph output for unfiltered, full graph
lib/panic_analysis/src/graph_output/mod.rs:97
↓ 2 callers
Function
get_mem_op_value
(mem_operand: &X86OpMem, base_reg_value: u64)
lib/panic_analysis/src/panic_calls/panic_message.rs:314
↓ 2 callers
Function
get_name_from_options
(options: &AnalysisOptions)
lib/panic_analysis/src/graph_output/mod.rs:75
↓ 2 callers
Function
get_node_filters
(options: &AnalysisOptions)
lib/panic_analysis/src/filter/mod.rs:55
↓ 2 callers
Function
get_panic_message
(context: &Context, str_ptr: u64, str_size: u64)
lib/panic_analysis/src/panic_calls/panic_message.rs:222
↓ 2 callers
Method
get_pointed_proc
Function that returns an (optional) `Procedure` at `offset` in the '.data.rel.ro' section.
lib/callgraph/src/callgraph/lea_dynamic_calls.rs:376
↓ 2 callers
Function
get_whitelist_filter
(options: &AnalysisOptions)
lib/panic_analysis/src/filter/whitelist_filter.rs:81
↓ 2 callers
Method
mark_code
(&self, call_graph: &RustigCallGraph, context: &Context)
lib/panic_analysis/src/marker/mod.rs:38
↓ 2 callers
Method
mark_code
(&self, call_graph: &RustigCallGraph, _context: &Context)
lib/panic_analysis/src/marker/function_whitelist.rs:27
↓ 2 callers
Method
mark_code
(&self, call_graph: &RustigCallGraph, _context: &Context)
lib/panic_analysis/src/marker/panic.rs:31
↓ 2 callers
Method
matches_version
Helper function that checks if `FunctionWhitelistCrateVersion` instance matches an (optional) version
lib/panic_analysis/src/lib.rs:73
↓ 2 callers
Function
parse_calls
Transform collection of instructions to their corresponding call types.
lib/callgraph/src/callgraph/static_calls.rs:110
↓ 2 callers
Function
parse_multiple_args
(cmd_matches: &ArgMatches, name: &str)
src/cmd_args.rs:29
↓ 2 callers
Method
read
(&self, binary: &'a Binary)
lib/callgraph/src/binary_read/mod.rs:26
↓ 2 callers
Function
ret_lambda
()
test_subjects_lib/src/lambda_structs.rs:33
↓ 2 callers
Method
trait_call_with_self
(&self)
test_subjects_lib/src/reference_calls.rs:18
↓ 2 callers
Method
write_graph
(&self, call_graph: &RustigCallGraph)
lib/panic_analysis/src/graph_output/mod.rs:35
↓ 1 callers
Function
add
(a: i32, b: i32)
test_subjects_lib/src/arithmetic.rs:10
↓ 1 callers
Function
backtrace_has_procedure_with_name_with_count
Run panic_analysis on `crate_name` and check if there is `count` amount of `procedure_name` in it
lib/panic_analysis/tests/libcalls.rs:29
↓ 1 callers
Function
bar
()
test_subjects/multi_dep/src/main.rs:21
↓ 1 callers
Function
bar
()
test_subjects/direct/src/main.rs:19
↓ 1 callers
Function
binary_search
(arr: &[T], elem: &T)
test_subjects/binary_search/src/main.rs:11
↓ 1 callers
Function
build
(subjects: &str, fixed_cargo_version: Option<&str>)
lib/test_common/build.rs:70
↓ 1 callers
Function
build_call_graph
( callgraph_options: &'a CallGraphOptions, file_content: &'a [u8], )
lib/callgraph/src/lib.rs:386
↓ 1 callers
Method
build_full_backtrace
( &self, call_graph: &RustigCallGraph, edge_index: EdgeIndex<u32>, backtrace_t
lib/panic_analysis/src/panic_calls/mod.rs:182
↓ 1 callers
Function
call_box_trait_panics
()
test_subjects/lib_calls/src/main.rs:11
↓ 1 callers
Function
call_correct
()
test_subjects/indexing/src/main.rs:25
↓ 1 callers
Function
call_expect
()
test_subjects/unwrap/src/main.rs:25
↓ 1 callers
Function
call_impl_trait_panic
()
test_subjects_lib/src/impl_traits.rs:29
↓ 1 callers
Function
call_impl_trait_panics
()
test_subjects/lib_calls/src/main.rs:16
↓ 1 callers
Function
call_index
(vec: Vec<usize>)
test_subjects/indexing/src/main.rs:20
↓ 1 callers
Function
call_lambda_struct_panics
()
test_subjects/lib_calls/src/main.rs:21
↓ 1 callers
Function
call_option_expect
()
test_subjects/unwrap/src/main.rs:29
↓ 1 callers
Function
call_panic_box
()
test_subjects_lib/src/box_traits.rs:29
↓ 1 callers
Function
call_panic_direct
()
test_subjects_lib/src/inline.rs:15
↓ 1 callers
Function
call_panic_indirect
()
test_subjects_lib/src/inline.rs:10
↓ 1 callers
Function
call_panic_types
()
test_subjects/lib_calls/src/main.rs:27
↓ 1 callers
Function
call_reference_calls
()
test_subjects/lib_calls/src/main.rs:35
↓ 1 callers
Function
call_same_vtable
()
test_subjects/lib_calls/src/main.rs:73
↓ 1 callers
Function
call_struct_calls
()
test_subjects/lib_calls/src/main.rs:42
↓ 1 callers
Function
call_trait_dynamic_calls
()
test_subjects/lib_calls/src/main.rs:48
↓ 1 callers
Function
call_trait_similar_names
()
test_subjects/lib_calls/src/main.rs:55
next →
1–100 of 408, ranked by callers