hprof_check.c File Reference

#include "hprof.h"
#include "hprof_b_spec.h"
Include dependency graph for hprof_check.c:

Go to the source code of this file.

Data Structures

struct  UmapInfo
struct  Finfo
struct  CmapInfo

Defines

#define CASE_HEAP(name)   case name: label = #name;
#define CASE_TAG(name)   case name: label = #name;

Typedefs

typedef TableIndex HprofId

Functions

static void read_raw (unsigned char **pp, unsigned char *buf, int len)
static unsigned read_u1 (unsigned char **pp)
static unsigned read_u2 (unsigned char **pp)
static unsigned read_u4 (unsigned char **pp)
static jlong read_u8 (unsigned char **pp)
static HprofId read_id (unsigned char **pp)
static void system_error (const char *system_call, int rc, int errnum)
static void system_write (int fd, void *buf, int len)
static void check_flush (void)
static jvalue read_val (unsigned char **pp, HprofType ty)
static void check_raw (void *buf, int len)
static void check_printf (char *fmt,...)
static void check_printf_val (HprofType ty, jvalue val, int long_form)
static void check_printf_str (char *str)
static void check_print_utf8 (struct LookupTable *utab, char *prefix, HprofId id)
static void add_inst_field_to_cmap (CmapInfo *cmap, HprofId id, HprofType ty)
static void cmap_cleanup (TableIndex i, void *key_ptr, int key_len, void *info, void *data)
static int check_heap_tags (struct LookupTable *utab, unsigned char *pstart, int nbytes)
static void utab_cleanup (TableIndex i, void *key_ptr, int key_len, void *info, void *data)
static int check_tags (unsigned char *pstart, int nbytes)
static void * get_binary_file_image (char *filename, int *pnbytes)
void check_binary_file (char *filename)

Variables

static int type_size [] = HPROF_TYPE_SIZES

Define Documentation

#define CASE_HEAP ( name   )     case name: label = #name;

Definition at line 408 of file hprof_check.c.

#define CASE_TAG ( name   )     case name: label = #name;

Typedef Documentation

Definition at line 49 of file hprof_check.c.


Function Documentation

static void add_inst_field_to_cmap ( CmapInfo cmap,
HprofId  id,
HprofType  ty 
) [static]

Definition at line 366 of file hprof_check.c.

Here is the caller graph for this function:

void check_binary_file ( char *  filename  ) 

Definition at line 1122 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void check_flush ( void   )  [static]

Definition at line 169 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int check_heap_tags ( struct LookupTable utab,
unsigned char *  pstart,
int  nbytes 
) [static]

Definition at line 412 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void check_print_utf8 ( struct LookupTable utab,
char *  prefix,
HprofId  id 
) [static]

Definition at line 342 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void check_printf ( char *  fmt,
  ... 
) [static]

Definition at line 242 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void check_printf_str ( char *  str  )  [static]

Definition at line 318 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void check_printf_val ( HprofType  ty,
jvalue  val,
int  long_form 
) [static]

Definition at line 260 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void check_raw ( void *  buf,
int  len 
) [static]

Definition at line 219 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int check_tags ( unsigned char *  pstart,
int  nbytes 
) [static]

Definition at line 842 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void cmap_cleanup ( TableIndex  i,
void *  key_ptr,
int  key_len,
void *  info,
void *  data 
) [static]

Definition at line 394 of file hprof_check.c.

Here is the caller graph for this function:

static void* get_binary_file_image ( char *  filename,
int *  pnbytes 
) [static]

Definition at line 1088 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static HprofId read_id ( unsigned char **  pp  )  [static]

Definition at line 128 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void read_raw ( unsigned char **  pp,
unsigned char *  buf,
int  len 
) [static]

Definition at line 77 of file hprof_check.c.

Here is the caller graph for this function:

static unsigned read_u1 ( unsigned char **  pp  )  [static]

Definition at line 91 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned read_u2 ( unsigned char **  pp  )  [static]

Definition at line 99 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned read_u4 ( unsigned char **  pp  )  [static]

Definition at line 107 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static jlong read_u8 ( unsigned char **  pp  )  [static]

Definition at line 115 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static jvalue read_val ( unsigned char **  pp,
HprofType  ty 
) [static]

Definition at line 182 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void system_error ( const char *  system_call,
int  rc,
int  errnum 
) [static]

Definition at line 135 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void system_write ( int  fd,
void *  buf,
int  len 
) [static]

Definition at line 156 of file hprof_check.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void utab_cleanup ( TableIndex  i,
void *  key_ptr,
int  key_len,
void *  info,
void *  data 
) [static]

Definition at line 827 of file hprof_check.c.

Here is the caller graph for this function:


Variable Documentation

int type_size[] = HPROF_TYPE_SIZES [static]

Definition at line 53 of file hprof_check.c.


Generated on 19 Nov 2012 for hprof by  doxygen 1.6.1