parse_dump.c File Reference

#include "opjitconv.h"
#include "jitdump.h"
#include "opd_printf.h"
#include "op_libiberty.h"
#include <string.h>
#include <stdio.h>
Include dependency graph for parse_dump.c:

Go to the source code of this file.

Functions

static int parse_code_load (void const *ptr_arg, int size, unsigned long long end_time)
static void parse_code_unload (void const *ptr, unsigned long long end_time)
static void parse_code_debug_info (void const *ptr, void const *end, unsigned long long end_time)
static int parse_entries (void const *ptr, void const *end, unsigned long long end_time)
static int parse_header (char const **ptr, char const *end)
int parse_all (void const *start, void const *end, unsigned long long end_time)

Detailed Description

parse a jit dump file

Remarks:
Copyright 2007 OProfile authors
Read the file COPYING
Author:
Jens Wilke Maynard Johnson Philippe Elie Daniel Hansel

Copyright IBM Corporation 2007

Definition in file parse_dump.c.


Function Documentation

int parse_all ( void const *  start,
void const *  end,
unsigned long long  end_time 
)

Definition at line 239 of file parse_dump.c.

References OP_JIT_CONV_FAIL, parse_entries(), and parse_header().

Referenced by op_jit_convert().

Here is the call graph for this function:

Here is the caller graph for this function:

static void parse_code_debug_info ( void const *  ptr,
void const *  end,
unsigned long long  end_time 
) [static]
static int parse_code_load ( void const *  ptr_arg,
int  size,
unsigned long long  end_time 
) [static]
static void parse_code_unload ( void const *  ptr,
unsigned long long  end_time 
) [static]

Normally we won't get a jr_code_unload with a zero time stamp or a zero code address. The code address is directly provided by the JVMTI. The documentation of JVMTI does not say anything about the address value if it could be zero or not. Therefore it is only a sanity check at the moment.

Definition at line 86 of file parse_dump.c.

References debug, jitentry_list, jitentry::life_end, jitentry::next, jr_code_unload::timestamp, verbprintf, jitentry::vma, and jr_code_unload::vma.

Referenced by parse_entries().

Here is the caller graph for this function:

static int parse_entries ( void const *  ptr,
void const *  end,
unsigned long long  end_time 
) [static]

Definition at line 137 of file parse_dump.c.

References debug, jr_prefix::id, JIT_CODE_CLOSE, JIT_CODE_DEBUG_INFO, JIT_CODE_LOAD, JIT_CODE_UNLOAD, OP_JIT_CONV_FAIL, OP_JIT_CONV_OK, parse_code_debug_info(), parse_code_load(), parse_code_unload(), jr_prefix::total_size, and verbprintf.

Referenced by parse_all().

Here is the call graph for this function:

Here is the caller graph for this function:

static int parse_header ( char const **  ptr,
char const *  end 
) [static]

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1