GDB (xrefs)
|
#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"
Go to the source code of this file.
Classes | |
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 54 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 41 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 47 of file linux-osdata.c.
typedef long long TIME_T |
Definition at line 52 of file linux-osdata.c.
Definition at line 117 of file linux-osdata.c.
References 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 156 of file linux-osdata.c.
References command_from_pid(), gdb_fopen_cloexec(), len, xfree(), xmalloc(), xrealloc(), and xstrprintf().
Referenced by linux_xfer_osdata_processes(), and linux_xfer_osdata_processgroups().
Definition at line 408 of file linux-osdata.c.
Referenced by linux_xfer_osdata_processgroups().
|
static |
Definition at line 881 of file linux-osdata.c.
Referenced by print_sockets().
Definition at line 253 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().
Definition at line 233 of file linux-osdata.c.
References MAX_PID_T_STRLEN.
Referenced by linux_xfer_osdata_processes().
|
static |
Definition at line 1137 of file linux-osdata.c.
Referenced by linux_xfer_osdata_msg(), linux_xfer_osdata_sem(), and linux_xfer_osdata_shm().
Definition at line 61 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(), linux_nat_wait_1(), linux_xfer_osdata_threads(), and update_thread_core().
LONGEST linux_common_xfer_osdata | ( | const char * | annex, |
gdb_byte * | readbuf, | ||
ULONGEST | offset, | ||
ULONGEST | len | ||
) |
Definition at line 1657 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), gdb_assert, len, offset, osdata_table, and osdata_type::type.
Referenced by linux_nat_xfer_osdata().
Definition at line 668 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), gdb_fopen_cloexec(), len, and offset.
Definition at line 767 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), len, NAMELEN, offset, pid, xfree(), and xstrprintf().
|
static |
Definition at line 1074 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), len, offset, and print_sockets().
|
static |
Definition at line 1521 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), gdb_fopen_cloexec(), len, name, offset, size, and status.
Definition at line 1395 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), gdb_fopen_cloexec(), group_from_gid(), len, offset, time_from_time_t(), and user_from_uid().
|
static |
Definition at line 291 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(), len, MAX_PID_T_STRLEN, NAMELEN, offset, pid, user_from_uid(), xcalloc(), and xfree().
|
static |
Definition at line 439 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(), compare_processes(), len, MAX_PID_T_STRLEN, NAMELEN, offset, pid, qsort, xfree(), xmalloc(), and xrealloc().
Definition at line 1283 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), gdb_fopen_cloexec(), group_from_gid(), len, offset, time_from_time_t(), and user_from_uid().
Definition at line 1155 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), gdb_fopen_cloexec(), group_from_gid(), len, offset, size, time_from_time_t(), and user_from_uid().
|
static |
Definition at line 555 of file linux-osdata.c.
References buffer_finish(), buffer_free(), buffer_grow_str, buffer_grow_str0, buffer_init(), buffer_xml_printf(), command_from_pid(), len, linux_common_core_of_thread(), NAMELEN, offset, pid, ptid_build(), xfree(), and xstrprintf().
Definition at line 940 of file linux-osdata.c.
References buffer_xml_printf(), format_socket_state(), gdb_fopen_cloexec(), socket_addr::sa, socket_addr::sin, socket_addr::sin6, and user_from_uid().
Referenced by linux_xfer_osdata_isockets().
Definition at line 1120 of file linux-osdata.c.
Referenced by linux_xfer_osdata_msg(), linux_xfer_osdata_sem(), and linux_xfer_osdata_shm().
|
static |
Definition at line 215 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().