opd_extended.h File Reference

#include "opd_trans.h"
#include "odb.h"
#include <stdlib.h>
#include <stdint.h>
Include dependency graph for opd_extended.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  opd_ext_feature
struct  opd_ext_handlers
struct  opd_ext_sfile_handlers

Functions

int opd_ext_initialize (char const *value)
int opd_ext_deinitialize ()
void opd_ext_print_stats ()
void opd_ext_sfile_create (struct sfile *sf)
void opd_ext_sfile_dup (struct sfile *to, struct sfile *from)
void opd_ext_sfile_close (struct sfile *sf)
void opd_ext_sfile_sync (struct sfile *sf)
odb_topd_ext_sfile_get (struct transient const *trans, int is_cg)
struct opd_eventopd_ext_find_counter_event (unsigned long counter)

Detailed Description

OProfile Extended Feature

Remarks:
Copyright 2007-2009 OProfile authors
Read the file COPYING
Author:
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Copyright (c) 2009 Advanced Micro Devices, Inc.

Definition in file opd_extended.h.


Function Documentation

int opd_ext_deinitialize (  ) 
Parameters:
value,: commandline input option string

Deinitialize

Definition at line 112 of file opd_extended.c.

References opd_ext_handlers::ext_deinit, opd_ext_feature::handlers, and opd_ext_feat_index.

Referenced by opd_sigterm().

Here is the caller graph for this function:

struct opd_event* opd_ext_find_counter_event ( unsigned long  counter  )  [read]
Parameters:
counter,: counter index

Get event struct opd_event from the counter index value.

Definition at line 186 of file opd_extended.c.

References opd_ext_handlers::ext_sfile, opd_ext_sfile_handlers::find_counter_event, opd_ext_feature::handlers, handlers, is_ext_sfile_enabled(), and opd_ext_feat_index.

Referenced by find_counter_event().

Here is the call graph for this function:

Here is the caller graph for this function:

int opd_ext_initialize ( char const *  value  ) 
Parameters:
value,: commandline input option string

Parse the specified extended feature

Param "value" is the input from CML option with the format:

<feature name>="">:<param1>:<param2>:<param3>:.....

where param1,2.3,..n are optional.

Definition at line 83 of file opd_extended.c.

References opd_ext_handlers::ext_init, get_index_for_feature(), opd_ext_feature::handlers, op_xstrndup(), and opd_ext_feat_index.

Referenced by opd_options().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_ext_print_stats (  ) 

Print out extended feature statistics in oprofiled.log file

Definition at line 126 of file opd_extended.c.

References opd_ext_handlers::ext_print_stats, opd_ext_feature::handlers, handlers, is_ext_enabled(), and opd_ext_feat_index.

Referenced by opd_print_stats().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_ext_sfile_close ( struct sfile sf  ) 

Definition at line 157 of file opd_extended.c.

References opd_ext_sfile_handlers::close, opd_ext_handlers::ext_sfile, opd_ext_feature::handlers, handlers, is_ext_sfile_enabled(), and opd_ext_feat_index.

Referenced by close_sfile().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_ext_sfile_create ( struct sfile sf  ) 

opd_sfile extended sfile handling functions

opd_sfile extended APIs

Definition at line 139 of file opd_extended.c.

References opd_ext_sfile_handlers::create, opd_ext_handlers::ext_sfile, opd_ext_feature::handlers, handlers, is_ext_sfile_enabled(), and opd_ext_feat_index.

Referenced by create_sfile().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_ext_sfile_dup ( struct sfile to,
struct sfile from 
)

Definition at line 148 of file opd_extended.c.

References opd_ext_sfile_handlers::dup, opd_ext_handlers::ext_sfile, opd_ext_feature::handlers, handlers, is_ext_sfile_enabled(), and opd_ext_feat_index.

Referenced by sfile_dup().

Here is the call graph for this function:

Here is the caller graph for this function:

odb_t* opd_ext_sfile_get ( struct transient const *  trans,
int  is_cg 
)

Definition at line 175 of file opd_extended.c.

References opd_ext_handlers::ext_sfile, opd_ext_sfile_handlers::get, opd_ext_feature::handlers, handlers, is_ext_sfile_enabled(), opd_ext_feat_index, and trans.

Referenced by get_file().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_ext_sfile_sync ( struct sfile sf  ) 

Definition at line 166 of file opd_extended.c.

References opd_ext_handlers::ext_sfile, opd_ext_feature::handlers, handlers, is_ext_sfile_enabled(), opd_ext_feat_index, and opd_ext_sfile_handlers::sync.

Referenced by sync_sfile().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1