#include "opd_extended.h"
#include "op_string.h"
#include <string.h>
#include <stdio.h>
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_t * | opd_ext_sfile_get (struct transient const *trans, int is_cg) |
struct opd_event * | opd_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 [] |
OProfile Extended Feature
Definition in file opd_extended.c.
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().
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().
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().
int opd_ext_deinitialize | ( | ) |
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().
struct opd_event* opd_ext_find_counter_event | ( | unsigned long | counter | ) | [read] |
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().
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().
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().
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().
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().
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().
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().
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().
struct opd_ext_feature ext_feature_table[] [static] |
{ {"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.
struct opd_ext_handlers ibs_handlers |
int opd_ext_feat_index [static] |
Definition at line 20 of file opd_extended.c.
Referenced by is_ext_enabled(), is_ext_sfile_enabled(), opd_ext_deinitialize(), opd_ext_find_counter_event(), opd_ext_initialize(), opd_ext_print_stats(), opd_ext_sfile_close(), opd_ext_sfile_create(), opd_ext_sfile_dup(), opd_ext_sfile_get(), and opd_ext_sfile_sync().