MCPcopy Create free account

hub / github.com/PKUFlyingPig/CS110L / functions

Functions179 in github.com/PKUFlyingPig/CS110L

↓ 24 callersMethodclone
(&self)
week3/linked_list/src/linked_list.rs:75
↓ 16 callersMethodget
(&self, path: &str)
proj-2/balancebeam/tests/common/balancebeam.rs:89
↓ 16 callersMethodset
Sets the element at the specified location to the specified value. If the location is out of bounds, returns Err with an error message.
week2/rdiff/src/grid.rs:43
↓ 11 callersMethodpid
Returns the pid of this inferior.
proj-1/deet/src/inferior.rs:71
↓ 9 callersMethodget
Returns the element at the specified location. If the location is out of bounds, returns None. Note to students: this function also could have return
week2/rdiff/src/grid.rs:33
↓ 8 callersFunctionget_target
This program finds a target process on the system. The specified query can either be a command name (e.g. "./subprocess_test") or a PID (e.g. "5612").
week3/inspect-fds/src/ps_utils.rs:128
↓ 8 callersMethodkill
kill the inferior, assume that the inferior is still alive
proj-1/deet/src/inferior.rs:123
↓ 8 callersMethodpush_front
(&mut self, value: T)
week3/linked_list/src/linked_list.rs:33
↓ 8 callersMethodstop
(self: Box<Self>)
proj-2/balancebeam/tests/common/echo_server.rs:90
↓ 6 callersMethodnext
(&mut self)
week3/linked_list/src/linked_list.rs:99
↓ 5 callersFunctionget_attr_value
based on dwarf_dump.rs
proj-1/deet/src/gimli_wrapper.rs:316
↓ 5 callersFunctionmake_http_error
This is a helper function that creates an http::Response containing an HTTP error that can be sent to a client.
proj-2/balancebeam/src/response.rs:210
↓ 5 callersFunctionsend_response
(client_conn: &mut TcpStream, response: &http::Response<Vec<u8>>)
proj-2/balancebeam/src/main.rs:252
↓ 4 callersMethodaddress
(&self)
proj-2/balancebeam/tests/common/echo_server.rs:101
↓ 4 callersFunctionsetup_with_params
( n_upstreams: usize, active_health_check_interval: Option<usize>, max_requests_per_minute: Option
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:8
↓ 4 callersMethodwrite_byte
(&mut self, addr: usize, val: u8)
proj-1/deet/src/inferior.rs:162
↓ 4 callersFunctionwrite_to_stream
This function serializes a request to bytes and writes those bytes to the provided stream. You will need to modify this function in Milestone 2.
proj-2/balancebeam/src/request.rs:198
↓ 3 callersMethoddisplay
Prints a visual representation of the grid. You can use this for debugging.
week2/rdiff/src/grid.rs:53
↓ 3 callersMethodget_function_from_addr
(&self, curr_addr: usize)
proj-1/deet/src/dwarf_data.rs:104
↓ 3 callersMethodget_line_from_addr
(&self, curr_addr: usize)
proj-1/deet/src/dwarf_data.rs:91
↓ 3 callersFunctionread_file_lines
Reads the file at the supplied path, and returns a vector of strings.
week2/rdiff/src/main.rs:11
↓ 3 callersFunctionread_from_stream
This function reads and returns an HTTP request from a stream, returning an Error if the client closes the connection prematurely or sends an invalid
proj-2/balancebeam/src/request.rs:181
↓ 3 callersMethodwait
Calls waitpid on this inferior and returns a Status to indicate the state of the process after the waitpid call.
proj-1/deet/src/inferior.rs:77
↓ 2 callersMethodclear
Resets all the elements to zero.
week2/rdiff/src/grid.rs:64
↓ 2 callersFunctionconnect_to_server
attemp to connect to the specific upstream server (no lock required)
proj-2/balancebeam/src/main.rs:221
↓ 2 callersMethodcontinue_run
Wake up the paused inferior process, there are two possibilities: (1) inferior process paused by breakpoints (2) inferior process paused by other sign
proj-1/deet/src/inferior.rs:92
↓ 2 callersFunctiondump_exprloc
( w: &mut W, encoding: gimli::Encoding, data: &gimli::Expression<R>, )
proj-1/deet/src/gimli_wrapper.rs:406
↓ 2 callersFunctionfunc3
proj-1/deet/samples/function_calls.c:5
↓ 2 callersFunctionget_process
This function takes a pid and returns a Process struct for the specified process, or None if the specified pid doesn't exist. An Error is only returne
week3/inspect-fds/src/ps_utils.rs:73
↓ 2 callersMethodget_target_file
(&self, file: &str)
proj-1/deet/src/dwarf_data.rs:48
↓ 2 callersFunctioninit_logging
()
proj-2/balancebeam/tests/common/mod.rs:15
↓ 2 callersFunctionlcs
(seq1: &Vec<String>, seq2: &Vec<String>)
week2/rdiff/src/main.rs:22
↓ 2 callersFunctionparse_ps_line
This function takes a line of ps output formatted with -o "pid= ppid= command=" and returns a Process struct initialized from the parsed output. Exam
week3/inspect-fds/src/ps_utils.rs:53
↓ 2 callersMethodpop_front
(&mut self)
week3/linked_list/src/linked_list.rs:39
↓ 2 callersMethodprint
(&self)
week3/inspect-fds/src/process.rs:17
↓ 2 callersFunctionsetup
()
proj-2/balancebeam/tests/01_single_upstream_tests.rs:6
↓ 2 callersFunctionsetup
(n_upstreams: usize)
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:35
↓ 2 callersMethodsize
(&self)
week2/rdiff/src/grid.rs:21
↓ 2 callersFunctionstart_c_program
(program: &str)
week3/inspect-fds/src/process.rs:72
↓ 2 callersFunctionstart_c_program
(program: &str)
week3/inspect-fds/src/open_file.rs:161
↓ 2 callersFunctiontry_failover
(balancebeam: &BalanceBeam, upstreams: &mut Vec<Box<dyn Server>>)
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:83
↓ 1 callersFunctionactive_health_check
check all the upstream servers actively (write lock required)
proj-2/balancebeam/src/main.rs:179
↓ 1 callersFunctionadd_n_inplace
(v: &mut Vec<i32>, n: i32)
week1/part-2-warmup/src/main.rs:17
↓ 1 callersFunctionalign_addr_to_word
(addr: usize)
proj-1/deet/src/inferior.rs:12
↓ 1 callersFunctioncheck_server
check specific upstream server actively (no lock required)
proj-2/balancebeam/src/main.rs:160
↓ 1 callersFunctionconnect_to_upstream
randomly connect to one alive upstream, return error if all the upstream are dead
proj-2/balancebeam/src/main.rs:233
↓ 1 callersFunctiondedup
(v: &mut Vec<i32>)
week1/part-2-warmup/src/main.rs:23
↓ 1 callersFunctiondump_file_index
( w: &mut W, file: u64, unit: &gimli::Unit<R>, dwarf: &gimli::Dwarf<R>, )
proj-1/deet/src/gimli_wrapper.rs:365
↓ 1 callersFunctiondump_op
( w: &mut W, encoding: gimli::Encoding, dwop: gimli::DwOp, op: gimli::Operation<R>, )
proj-1/deet/src/gimli_wrapper.rs:446
↓ 1 callersFunctionecho
( server_state: Arc<ServerState>, req: Request<Body>, )
proj-2/balancebeam/tests/common/echo_server.rs:14
↓ 1 callersFunctionextend_header_value
This function appends to a header value (adding a new header if the header is not already present). This is used to add the client's IP address to the
proj-2/balancebeam/src/request.rs:53
↓ 1 callersFunctionfactor_number
Determines the prime factors of a number and prints them to stdout. This function is taken from CS 110 factor.py. You don't need to read or understan
week5/farm/src/main.rs:27
↓ 1 callersFunctionformat_request_line
(request: &http::Request<Vec<u8>>)
proj-2/balancebeam/src/request.rs:216
↓ 1 callersFunctionformat_response_line
(response: &http::Response<Vec<u8>>)
proj-2/balancebeam/src/response.rs:199
↓ 1 callersFunctionfunc1
proj-1/deet/samples/segfault.c:9
↓ 1 callersFunctionfunc1
proj-1/deet/samples/function_calls.c:16
↓ 1 callersFunctionfunc2
proj-1/deet/samples/segfault.c:3
↓ 1 callersFunctionfunc2
proj-1/deet/samples/function_calls.c:9
↓ 1 callersMethodget_addr_for_function
(&self, file: Option<&str>, func_name: &str)
proj-1/deet/src/dwarf_data.rs:70
↓ 1 callersMethodget_addr_for_line
(&self, file: Option<&str>, line_number: usize)
proj-1/deet/src/dwarf_data.rs:55
↓ 1 callersFunctionget_child_processes
This function takes a pid and returns a list of Process structs for processes that have the specified pid as their parent process. An Error is returne
week3/inspect-fds/src/ps_utils.rs:97
↓ 1 callersFunctionget_content_length
Extracts the Content-Length header value from the provided request. Returns Ok(Some(usize)) if the Content-Length is present and valid, Ok(None) if Co
proj-2/balancebeam/src/request.rs:31
↓ 1 callersFunctionget_content_length
Extracts the Content-Length header value from the provided response. Returns Ok(Some(usize)) if the Content-Length is present and valid, Ok(None) if C
proj-2/balancebeam/src/response.rs:29
↓ 1 callersFunctionget_input_numbers
Returns a list of numbers supplied via argv.
week5/farm/src/main.rs:53
↓ 1 callersFunctionget_location
(attr: &gimli::Attribute<R>, unit: &gimli::Unit<R>)
proj-1/deet/src/gimli_wrapper.rs:294
↓ 1 callersMethodget_next_command
This function prompts the user to enter a command, and continues re-prompting until the user enters a valid command. It uses DebuggerCommand::from_tok
proj-1/deet/src/debugger.rs:183
↓ 1 callersFunctionget_pid_by_command_name
This function takes a command name (e.g. "sort" or "./multi_pipe_test") and returns the first matching process's pid, or None if no matching process i
week3/inspect-fds/src/ps_utils.rs:111
↓ 1 callersMethodget_size
(&self)
week3/linked_list/src/linked_list.rs:25
↓ 1 callersFunctionhandle_connection
(mut client_conn: TcpStream, state: Arc<ProxyState>)
proj-2/balancebeam/src/main.rs:261
↓ 1 callersFunctionhandle_connection
(mut stream: TcpStream)
simple-server/src/main.rs:22
↓ 1 callersMethodinto_iter
(self)
week3/linked_list/src/linked_list.rs:127
↓ 1 callersMethodis_empty
(&self)
week3/linked_list/src/linked_list.rs:29
↓ 1 callersFunctionis_prime
Determines whether a number is prime. This function is taken from CS 110 factor.py. You don't need to read or understand this code.
week5/farm/src/main.rs:11
↓ 1 callersMethodlist_fds
This function returns a list of file descriptor numbers for this Process, if that information is available (it will return None if the information is
week3/inspect-fds/src/process.rs:44
↓ 1 callersMethodlist_open_files
This function returns a list of (fdnumber, OpenFile) tuples, if file descriptor information is available (it returns None otherwise). The information
week3/inspect-fds/src/process.rs:58
↓ 1 callersFunctionload_file
(object: &object::File, endian: gimli::RunTimeEndian)
proj-1/deet/src/gimli_wrapper.rs:19
↓ 1 callersFunctionparallel_map
(mut input_vec: Vec<T>, num_threads: usize, f: F)
week6/parallel_map/src/main.rs:4
↓ 1 callersMethodparse_address
(&self, addr: &str)
proj-1/deet/src/debugger.rs:170
↓ 1 callersFunctionparse_request
Attempts to parse the data in the supplied buffer as an HTTP request. Returns one of the following: If there is a complete and valid request in the b
proj-2/balancebeam/src/request.rs:77
↓ 1 callersFunctionparse_response
Attempts to parse the data in the supplied buffer as an HTTP response. Returns one of the following: If there is a complete and valid response in the
proj-2/balancebeam/src/response.rs:55
↓ 1 callersFunctionpick_a_random_word
()
week1/part-3-hangman/src/main.rs:25
↓ 1 callersFunctionpick_random_alive_upstream
randomly pick one alive upstream and return its index (read lock acquired)
proj-2/balancebeam/src/main.rs:204
↓ 1 callersMethodpost
(&self, path: &str, body: &str)
proj-2/balancebeam/tests/common/balancebeam.rs:101
↓ 1 callersMethodprint
(&self)
proj-1/deet/src/dwarf_data.rs:115
↓ 1 callersMethodprint_backtrace
print backtrace of this inferior process
proj-1/deet/src/inferior.rs:136
↓ 1 callersFunctionprint_diff
(lcs_table: &Grid, lines1: &Vec<String>, lines2: &Vec<String>, i: usize, j: usize)
week2/rdiff/src/main.rs:49
↓ 1 callersFunctionprint_guessed_word
(guessed_words :&HashSet<char>)
week1/part-3-hangman/src/main.rs:39
↓ 1 callersFunctionprint_word_so_far
(word_so_far :&Vec<char>)
week1/part-3-hangman/src/main.rs:31
↓ 1 callersFunctionpull_number_from_queue
(numbers: &mut Arc<Mutex<VecDeque<u32>>>)
week5/farm/src/main.rs:66
↓ 1 callersFunctionrate_limit_counter_refresher
(state: Arc<ProxyState>, interval: u64)
proj-2/balancebeam/src/main.rs:153
↓ 1 callersFunctionread_body
This function reads the body for a request from the stream. The client only sends a body if the Content-Length header is present; this function reads
proj-2/balancebeam/src/request.rs:140
↓ 1 callersFunctionread_body
This function reads the body for a response from the stream. If the Content-Length header is present, it reads that many bytes; otherwise, it reads by
proj-2/balancebeam/src/response.rs:117
↓ 1 callersFunctionread_headers
Reads an HTTP request from the provided stream, waiting until a complete set of headers is sent. This function only reads the request line and headers
proj-2/balancebeam/src/request.rs:104
↓ 1 callersFunctionread_headers
Reads an HTTP response from the provided stream, waiting until a complete set of headers is sent. This function only reads the response line and heade
proj-2/balancebeam/src/response.rs:83
↓ 1 callersFunctionreturn_error
()
proj-2/balancebeam/tests/common/error_server.rs:15
↓ 1 callersMethodrun
(&mut self)
proj-1/deet/src/debugger.rs:52
↓ 1 callersFunctionstart_c_program
(program: &str)
week3/inspect-fds/src/main.rs:36
↓ 1 callersFunctionstart_c_program
(program: &str)
week3/inspect-fds/src/ps_utils.rs:145
↓ 1 callersFunctionworker_thread
(mut numbers: Arc<Mutex<VecDeque<u32>>>)
week5/farm/src/main.rs:70
Functionadd_n
(v: Vec<i32>, n: i32)
week1/part-2-warmup/src/main.rs:9
next →1–100 of 179, ranked by callers