|
GDBserver
|
#include "common-defs.h"#include "linux-osdata.h"#include <sys/types.h>#include <sys/sysinfo.h>#include <ctype.h>#include <utmp.h>#include <time.h>#include <unistd.h>#include <pwd.h>#include <grp.h>#include <netdb.h>#include <netinet/in.h>#include <arpa/inet.h>#include "xml-utils.h"#include "buffer.h"#include <dirent.h>#include <sys/stat.h>#include "filestuff.h"#include <algorithm>Go to the source code of this file.
Classes | |
| struct | pid_pgid_entry |
| union | socket_addr |
| struct | osdata_type |
Macros | |
| #define | NAMELEN(dirent) strlen ((dirent)->d_name) |
| #define | MAX_PID_T_STRLEN (sizeof ("-9223372036854775808") - 1) |
Typedefs | |
| typedef long long | PID_T |
| typedef long long | TIME_T |
Variables | |
| struct osdata_type | osdata_table [] |
| #define MAX_PID_T_STRLEN (sizeof ("-9223372036854775808") - 1) |
Definition at line 55 of file linux-osdata.c.
Referenced by get_cores_used_by_process(), get_process_owner(), linux_common_core_of_thread(), linux_xfer_osdata_processes(), and linux_xfer_osdata_processgroups().
| #define NAMELEN | ( | dirent | ) | strlen ((dirent)->d_name) |
Definition at line 42 of file linux-osdata.c.
Referenced by get_cores_used_by_process(), linux_xfer_osdata_fds(), linux_xfer_osdata_processes(), linux_xfer_osdata_processgroups(), and linux_xfer_osdata_threads().
| typedef long long PID_T |
Definition at line 48 of file linux-osdata.c.
| typedef long long TIME_T |
Definition at line 53 of file linux-osdata.c.
|
static |
Definition at line 116 of file linux-osdata.c.
References fp, gdb_fopen_cloexec(), xfree(), and xstrprintf().
Referenced by commandline_from_pid(), linux_xfer_osdata_fds(), linux_xfer_osdata_msg(), linux_xfer_osdata_processgroups(), linux_xfer_osdata_shm(), and linux_xfer_osdata_threads().
|
static |
Definition at line 153 of file linux-osdata.c.
References command_from_pid(), gdb_fopen_cloexec(), xfree(), xmalloc(), xrealloc(), and xstrprintf().
Referenced by linux_xfer_osdata_processes(), and linux_xfer_osdata_processgroups().
|
static |
Definition at line 859 of file linux-osdata.c.
Referenced by print_sockets().
|
static |
Definition at line 248 of file linux-osdata.c.
References linux_common_core_of_thread(), MAX_PID_T_STRLEN, NAMELEN, and ptid_build().
Referenced by linux_xfer_osdata_processes().
|
static |
Definition at line 228 of file linux-osdata.c.
References MAX_PID_T_STRLEN, and S_ISDIR.
Referenced by linux_xfer_osdata_processes().
|
static |
Definition at line 1112 of file linux-osdata.c.
Referenced by linux_xfer_osdata_msg(), linux_xfer_osdata_sem(), and linux_xfer_osdata_shm().
| int linux_common_core_of_thread | ( | ptid_t | ptid | ) |
Definition at line 62 of file linux-osdata.c.
References gdb_fopen_cloexec(), MAX_PID_T_STRLEN, ptid_get_lwp(), ptid_get_pid(), xfree(), and xrealloc().
Referenced by get_cores_used_by_process(), and linux_xfer_osdata_threads().
| LONGEST linux_common_xfer_osdata | ( | const char * | annex, |
| gdb_byte * | readbuf, | ||
| ULONGEST | offset, | ||
| ULONGEST | len | ||
| ) |
Definition at line 1616 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), gdb_assert, offset, osdata_table, and osdata_type::type.
Referenced by linux_qxfer_osdata().
Definition at line 648 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), fp, gdb_fopen_cloexec(), and offset.
Definition at line 744 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), NAMELEN, offset, S_ISDIR, xfree(), xsnprintf(), and xstrprintf().
|
static |
Definition at line 1049 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), offset, and print_sockets().
|
static |
Definition at line 1484 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), fp, gdb_fopen_cloexec(), name, and offset.
Definition at line 1362 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), fp, gdb_fopen_cloexec(), group_from_gid(), offset, time_from_time_t(), and user_from_uid().
|
static |
Definition at line 286 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), commandline_from_pid(), get_cores_used_by_process(), get_process_owner(), MAX_PID_T_STRLEN, NAMELEN, offset, user_from_uid(), xcalloc(), XCNEWVEC, and xfree().
|
static |
Definition at line 433 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), commandline_from_pid(), MAX_PID_T_STRLEN, NAMELEN, offset, and xfree().
Definition at line 1254 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), fp, gdb_fopen_cloexec(), group_from_gid(), offset, time_from_time_t(), and user_from_uid().
Definition at line 1130 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), fp, gdb_fopen_cloexec(), group_from_gid(), offset, time_from_time_t(), and user_from_uid().
|
static |
Definition at line 534 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), linux_common_core_of_thread(), NAMELEN, offset, ptid_build(), S_ISDIR, xfree(), xsnprintf(), and xstrprintf().
|
static |
Definition at line 918 of file linux-osdata.c.
References buffer_xml_printf(), format_socket_state(), fp, gdb_fopen_cloexec(), socket_addr::sa, socket_addr::sin, socket_addr::sin6, and user_from_uid().
Referenced by linux_xfer_osdata_isockets().
|
static |
Definition at line 1095 of file linux-osdata.c.
Referenced by linux_xfer_osdata_msg(), linux_xfer_osdata_sem(), and linux_xfer_osdata_shm().
|
static |
Definition at line 210 of file linux-osdata.c.
Referenced by linux_xfer_osdata_msg(), linux_xfer_osdata_processes(), linux_xfer_osdata_sem(), linux_xfer_osdata_shm(), and print_sockets().
| struct osdata_type osdata_table[] |
Referenced by linux_common_xfer_osdata().
1.8.14