#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <err.h>
#include <errno.h>
#include <setjmp.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "code-ranges.h"
#include "function-entries.h"
#include "variable-entries.h"
#include "process-ranges.h"
#include "server.h"
#include "syserv-mesg.h"
Go to the source code of this file.
|
static int | read_all (int fd, void *buf, size_t count) |
|
static int | write_all (int fd, const void *buf, size_t count) |
|
static int | read_mesg (struct syserv_mesg *mesg) |
|
static int | write_mesg (int32_t type, int64_t len) |
|
void | syserv_add_addr (void *addr, long func_entry_map_size) |
|
void | syserv_add_header (int is_relocatable, uintptr_t ref_offset) |
|
static void | signal_handler (int sig) |
|
static void | signal_handler_init (void) |
|
static void | do_query (DiscoverFnTy fn_discovery, struct syserv_mesg *mesg) |
|
static void | do_query_var (DiscoverFnTy fn_discovery, struct syserv_mesg *mesg) |
|
void | system_server (DiscoverFnTy fn_discovery, int fd1, int fd2) |
|
◆ ADDR_SIZE
#define ADDR_SIZE (256 * 1024) |
◆ END_OF_FILE
◆ FAILURE
◆ INIT_INBUF_SIZE
#define INIT_INBUF_SIZE 2000 |
◆ SUCCESS
◆ do_query()
◆ do_query_var()
◆ read_all()
static int read_all |
( |
int |
fd, |
|
|
void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
static |
◆ read_mesg()
◆ signal_handler()
static void signal_handler |
( |
int |
sig | ) |
|
|
static |
◆ signal_handler_init()
static void signal_handler_init |
( |
void |
| ) |
|
|
static |
◆ syserv_add_addr()
void syserv_add_addr |
( |
void * |
addr, |
|
|
long |
func_entry_map_size |
|
) |
| |
◆ syserv_add_header()
void syserv_add_header |
( |
int |
is_relocatable, |
|
|
uintptr_t |
ref_offset |
|
) |
| |
◆ system_server()
void system_server |
( |
DiscoverFnTy |
fn_discovery, |
|
|
int |
fd1, |
|
|
int |
fd2 |
|
) |
| |
◆ write_all()
static int write_all |
( |
int |
fd, |
|
|
const void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
static |
◆ write_mesg()
static int write_mesg |
( |
int32_t |
type, |
|
|
int64_t |
len |
|
) |
| |
|
static |
◆ addr_buf
◆ fdin
◆ fdout
◆ fnb_info
◆ inbuf
◆ inbuf_size
◆ jmpbuf
◆ jmpbuf_ok
◆ max_num_addrs
◆ num_addrs
◆ sent_ok_mesg
◆ total_num_addrs