GDB (xrefs)
|
#include "defs.h"
#include "gdbcmd.h"
#include "completer.h"
#include <sys/types.h>
#include <sys/procfs.h>
#include <sys/proc.h>
#include <sys/user.h>
#include <fcntl.h>
#include "gdbsupport/gdb_wait.h"
#include "proc-utils.h"
Go to the source code of this file.
Classes | |
struct | trans |
Functions | |
static void | prepare_to_trace (void) |
static void | set_procfs_trace_cmd (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_procfs_file_cmd (const char *args, int from_tty, struct cmd_list_element *c) |
int | write_with_trace (int fd, void *varg, size_t len, char *file, int line) |
off_t | lseek_with_trace (int fd, off_t offset, int whence, char *file, int line) |
int | open_with_trace (char *filename, int mode, char *file, int line) |
int | close_with_trace (int fd, char *file, int line) |
pid_t | wait_with_trace (int *wstat, char *file, int line) |
void | procfs_note (const char *msg, const char *file, int line) |
void | proc_prettyfprint_status (long flags, int why, int what, int thread) |
void | _initialize_proc_api () |
Variables | |
static bool | procfs_trace = false |
static FILE * | procfs_file = NULL |
static std::string | procfs_filename = "procfs_trace" |
static struct trans | rw_table [] |
static off_t | lseek_offset |
void _initialize_proc_api | ( | ) |
Definition at line 419 of file proc-api.c.
References add_setshow_boolean_cmd(), add_setshow_filename_cmd(), no_class, procfs_filename, procfs_trace, set_procfs_file_cmd(), set_procfs_trace_cmd(), setlist, and showlist.
int close_with_trace | ( | int | fd, |
char * | file, | ||
int | line ) |
Definition at line 321 of file proc-api.c.
References info_verbose, prepare_to_trace(), procfs_file, and procfs_trace.
off_t lseek_with_trace | ( | int | fd, |
off_t | offset, | ||
int | whence, | ||
char * | file, | ||
int | line ) |
Definition at line 259 of file proc-api.c.
References lseek_offset, prepare_to_trace(), procfs_file, and procfs_trace.
int open_with_trace | ( | char * | filename, |
int | mode, | ||
char * | file, | ||
int | line ) |
Definition at line 280 of file proc-api.c.
References info_verbose, prepare_to_trace(), procfs_file, and procfs_trace.
|
static |
Definition at line 56 of file proc-api.c.
References procfs_file, procfs_filename, and procfs_trace.
Referenced by close_with_trace(), lseek_with_trace(), open_with_trace(), proc_prettyfprint_status(), procfs_note(), wait_with_trace(), and write_with_trace().
void proc_prettyfprint_status | ( | long | flags, |
int | why, | ||
int | what, | ||
int | thread ) |
Definition at line 397 of file proc-api.c.
References flags, prepare_to_trace(), proc_prettyfprint_flags(), proc_prettyfprint_why(), procfs_file, and procfs_trace.
void procfs_note | ( | const char * | msg, |
const char * | file, | ||
int | line ) |
Definition at line 382 of file proc-api.c.
References info_verbose, prepare_to_trace(), procfs_file, and procfs_trace.
|
static |
Definition at line 74 of file proc-api.c.
References procfs_file.
Referenced by _initialize_proc_api().
|
static |
Definition at line 64 of file proc-api.c.
References procfs_file.
Referenced by _initialize_proc_api().
pid_t wait_with_trace | ( | int * | wstat, |
char * | file, | ||
int | line ) |
Definition at line 347 of file proc-api.c.
References info_verbose, prepare_to_trace(), procfs_file, and procfs_trace.
int write_with_trace | ( | int | fd, |
void * | varg, | ||
size_t | len, | ||
char * | file, | ||
int | line ) |
Definition at line 119 of file proc-api.c.
References trans::desc, info_verbose, lseek_offset, name, trans::name, prepare_to_trace(), proc_prettyfprint_faultset(), proc_prettyfprint_signal(), proc_prettyfprint_signalset(), proc_prettyfprint_syscalls(), procfs_file, procfs_trace, and rw_table.
|
static |
Definition at line 116 of file proc-api.c.
Referenced by lseek_with_trace(), and write_with_trace().
|
static |
Definition at line 52 of file proc-api.c.
Referenced by close_with_trace(), lseek_with_trace(), open_with_trace(), prepare_to_trace(), proc_prettyfprint_status(), procfs_note(), set_procfs_file_cmd(), set_procfs_trace_cmd(), wait_with_trace(), and write_with_trace().
|
static |
Definition at line 53 of file proc-api.c.
Referenced by _initialize_proc_api(), and prepare_to_trace().
|
static |
Definition at line 51 of file proc-api.c.
Referenced by _initialize_proc_api(), close_with_trace(), lseek_with_trace(), open_with_trace(), prepare_to_trace(), proc_prettyfprint_status(), procfs_note(), wait_with_trace(), and write_with_trace().
|
static |
Definition at line 84 of file proc-api.c.
Referenced by write_with_trace().