#include <CoreUtils.h>
Static Public Member Functions | |
static intptr_t | find_vaddr (intptr_t vaddr, intptr_t upper, intptr_t lower) |
static void | insert_table (intptr_t vaddr1, intptr_t offset1, intptr_t fsize1) |
static intptr_t | read_core_memory (intptr_t vaddr, intptr_t length, char *buf, FILE *fp) |
static intptr_t | read_core_memory (intptr_t offset, intptr_t vaddr, intptr_t length, char *buf, FILE *fp) |
static intptr_t | read_from_core (intptr_t vaddr, intptr_t bytes, char *buf) |
static intptr_t | read_heap_header (intptr_t vaddr, intptr_t bytes, HdrHeap h) |
static int | get_next_frame (core_stack_state *coress) |
static void | find_stuff (StuffTest_f f) |
static void | test_HttpSM (void *) |
static void | test_HttpSM_from_tunnel (void *) |
static void | process_HttpSM (HttpSM *core_ptr) |
static void | process_EThread (EThread *eth_test) |
static void | process_NetVC (UnixNetVConnection *eth_test) |
static void | dump_history (HttpSM *hsm) |
static int | load_http_hdr (HTTPHdr *core_hdr, HTTPHdr *live_hdr) |
static void | print_http_hdr (HTTPHdr *h, const char *name) |
static char * | load_string (const char *addr) |
static void | test_HdrHeap (void *arg) |
Definition at line 97 of file CoreUtils.h.
void CoreUtils::dump_history | ( | HttpSM * | hsm | ) | [static] |
Definition at line 763 of file CoreUtils.cc.
References ats_free(), ats_strdup, event_int_to_string(), HttpSM::history, HttpSM::history_pos, and load_string().
Referenced by process_HttpSM().
static void CoreUtils::find_stuff | ( | StuffTest_f | f | ) | [static] |
intptr_t CoreUtils::find_vaddr | ( | intptr_t | vaddr, | |
intptr_t | upper, | |||
intptr_t | lower | |||
) | [static] |
Definition at line 137 of file CoreUtils.cc.
References assert, and inTable.
Referenced by insert_table(), read_core_memory(), read_from_core(), and read_heap_header().
static int CoreUtils::get_next_frame | ( | core_stack_state * | coress | ) | [static] |
void CoreUtils::insert_table | ( | intptr_t | vaddr1, | |
intptr_t | offset1, | |||
intptr_t | fsize1 | |||
) | [static] |
Definition at line 168 of file CoreUtils.cc.
References find_vaddr(), memTable::fsize, memTable::offset, and memTable::vaddr.
Definition at line 544 of file CoreUtils.cc.
References ats_free(), ats_malloc(), HDR_HEAP_OBJ_EMPTY, HDR_HEAP_OBJ_FIELD_BLOCK, HDR_HEAP_OBJ_HTTP_HEADER, HDR_HEAP_OBJ_MIME_HEADER, HDR_HEAP_OBJ_RAW, HDR_HEAP_OBJ_URL, HDR_PTR_SIZE, ink_assert, ink_release_assert, HdrHeap::m_data_start, HdrHeap::m_free_size, HdrHeap::m_free_start, HdrHeapSDKHandle::m_heap, StrHeapDesc::m_heap_len, StrHeapDesc::m_heap_start, HTTPHdr::m_http, HdrHeapObjImpl::m_length, HdrHeap::m_magic, HdrHeap::m_next, Ptr< T >::m_ptr, HdrHeap::m_read_write_heap, StrHeapDesc::m_ref_count_ptr, HdrHeap::m_ronly_heap, HdrHeap::m_size, HdrHeapObjImpl::m_type, HdrHeap::m_writeable, marshal(), obj_is_aligned(), ptr_data, read_from_core(), ROUND, and start.
Referenced by print_http_hdr().
char * CoreUtils::load_string | ( | const char * | addr | ) | [static] |
Definition at line 866 of file CoreUtils.cc.
References ats_strdup, and read_from_core().
Referenced by dump_history().
void CoreUtils::print_http_hdr | ( | HTTPHdr * | h, | |
const char * | name | |||
) | [static] |
Definition at line 527 of file CoreUtils.cc.
References load_http_hdr(), HTTPHdrImpl::m_fields_impl, HdrHeapSDKHandle::m_heap, HTTPHdr::m_http, MIMEHdr::m_mime, and HTTPHdr::print().
Referenced by process_HttpSM().
void CoreUtils::process_EThread | ( | EThread * | eth_test | ) | [static] |
Definition at line 810 of file CoreUtils.cc.
References ats_free(), ats_malloc(), read_from_core(), and Thread::tid.
void CoreUtils::process_HttpSM | ( | HttpSM * | core_ptr | ) | [static] |
Definition at line 475 of file CoreUtils.cc.
References ats_free(), ats_malloc(), dump_history(), HTTP_SM_MAGIC_ALIVE, HTTP_SM_MAGIC_DEAD, is_debug_tag_set, print_http_hdr(), and read_from_core().
Referenced by test_HttpSM(), and test_HttpSM_from_tunnel().
void CoreUtils::process_NetVC | ( | UnixNetVConnection * | eth_test | ) | [static] |
Definition at line 841 of file CoreUtils.cc.
References ats_free(), ats_ip_ntop(), ats_ip_port_host_order(), ats_malloc(), UnixNetVConnection::closed, print_netstate(), UnixNetVConnection::read, read_from_core(), IpEndpoint::sa, UnixNetVConnection::server_addr, and UnixNetVConnection::write.
intptr_t CoreUtils::read_core_memory | ( | intptr_t | vaddr, | |
intptr_t | length, | |||
char * | buf, | |||
FILE * | fp | |||
) | [static] |
Definition at line 218 of file CoreUtils.cc.
References find_vaddr(), and inTable.
intptr_t CoreUtils::read_core_memory | ( | intptr_t | offset, | |
intptr_t | vaddr, | |||
intptr_t | length, | |||
char * | buf, | |||
FILE * | fp | |||
) | [static] |
Definition at line 238 of file CoreUtils.cc.
References find_vaddr(), and inTable.
intptr_t CoreUtils::read_from_core | ( | intptr_t | vaddr, | |
intptr_t | bytes, | |||
char * | buf | |||
) | [static] |
Definition at line 260 of file CoreUtils.cc.
References ats_free(), ats_malloc(), find_vaddr(), fp, and memcpy.
Referenced by load_http_hdr(), load_string(), process_EThread(), process_HttpSM(), process_NetVC(), test_HdrHeap(), test_HttpSM(), and test_HttpSM_from_tunnel().
intptr_t CoreUtils::read_heap_header | ( | intptr_t | vaddr, | |
intptr_t | bytes, | |||
HdrHeap | h | |||
) | [static] |
Definition at line 788 of file CoreUtils.cc.
References find_vaddr(), and fp.
void CoreUtils::test_HdrHeap | ( | void * | arg | ) | [static] |
Definition at line 414 of file CoreUtils.cc.
References HDR_BUF_MAGIC_ALIVE, HDR_BUF_MAGIC_CORRUPT, HDR_BUF_MAGIC_DEAD, HDR_BUF_MAGIC_MARSHALED, HdrHeap::m_magic, and read_from_core().
void CoreUtils::test_HttpSM | ( | void * | arg | ) | [static] |
Definition at line 460 of file CoreUtils.cc.
References HTTP_SM_MAGIC_ALIVE, HTTP_SM_MAGIC_DEAD, HttpSM::magic, process_HttpSM(), and read_from_core().
void CoreUtils::test_HttpSM_from_tunnel | ( | void * | arg | ) | [static] |
Definition at line 436 of file CoreUtils.cc.
References HTTP_SM_MAGIC_ALIVE, HTTP_SM_MAGIC_DEAD, HttpSM::magic, process_HttpSM(), and read_from_core().