opd_extended.c File Reference

#include "opd_extended.h"
#include "op_string.h"
#include <string.h>
#include <stdio.h>
Include dependency graph for opd_extended.c:

Go to the source code of this file.

Functions

static int get_index_for_feature (char const *name)
static int is_ext_enabled ()
static int is_ext_sfile_enabled ()
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)

Variables

static int opd_ext_feat_index
struct opd_ext_handlers ibs_handlers
static struct opd_ext_feature ext_feature_table []

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.c.


Function Documentation

static int get_index_for_feature ( char const *  name  )  [static]

Definition at line 35 of file opd_extended.c.

References opd_ext_feature::feature.

Referenced by opd_ext_initialize().

Here is the caller graph for this function:

static int is_ext_enabled (  )  [inline, static]

Definition at line 55 of file opd_extended.c.

References handlers, and opd_ext_feat_index.

Referenced by opd_ext_print_stats().

Here is the caller graph for this function:

static int is_ext_sfile_enabled (  )  [inline, static]

Definition at line 65 of file opd_extended.c.

References handlers, and opd_ext_feat_index.

Referenced by opd_ext_find_counter_event(), opd_ext_sfile_close(), opd_ext_sfile_create(), opd_ext_sfile_dup(), opd_ext_sfile_get(), and opd_ext_sfile_sync().

Here is the caller graph for this function:

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  ) 

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 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:


Variable Documentation

Initial value:
 {
    {"ibs", &ibs_handlers },
    { NULL, NULL }
}

OProfile Extended Feature Table

This table contains a list of extended features.

Definition at line 29 of file opd_extended.c.

Definition at line 826 of file opd_ibs.c.

int opd_ext_feat_index [static]

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1