jvmpi_oprofile.cpp File Reference

JVMPI agent implementation to report jitted JVM code to OProfile. More...

#include <iostream>
#include <map>
#include <string>
#include <cstring>
#include <stdexcept>
#include <cerrno>
#include <stdint.h>
#include <jvmpi.h>
#include <opagent.h>
Include dependency graph for jvmpi_oprofile.cpp:

Classes

class  class_details

Functions

void class_load (JVMPI_Event *event)
void class_unload (JVMPI_Event *event)
void compiled_method_load (JVMPI_Event *event)
void compiled_method_unload (JVMPI_Event *event)
void jvm_shutdown (JVMPI_Event *event)
void jvm_notify_event (JVMPI_Event *event)
JNIEXPORT jint JNICALL JVM_OnLoad (JavaVM *jvm, char *options, void *reserved)

Variables

JVMPI_Interface * jvmpi

Detailed Description

JVMPI agent implementation to report jitted JVM code to OProfile.

Remarks:
Copyright 2007 OProfile authors

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Author:
Maynard Johnson

Copyright IBM Corporation 2007


Function Documentation

void class_load ( JVMPI_Event *  event  ) 
void class_unload ( JVMPI_Event *  event  ) 

Referenced by jvm_notify_event().

void compiled_method_load ( JVMPI_Event *  event  ) 
void compiled_method_unload ( JVMPI_Event *  event  ) 

References op_unload_native_code().

Referenced by jvm_notify_event().

void jvm_notify_event ( JVMPI_Event *  event  ) 
JNIEXPORT jint JNICALL JVM_OnLoad ( JavaVM *  jvm,
char *  options,
void *  reserved 
)
void jvm_shutdown ( JVMPI_Event *  event  ) 

References op_close_agent().

Referenced by jvm_notify_event().


Variable Documentation

JVMPI_Interface* jvmpi

Referenced by compiled_method_load(), and JVM_OnLoad().


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1