common_option.cpp File Reference

Contains common options and implementation of entry point of pp tools and some miscelleaneous functions. More...

#include <cstdlib>
#include <iostream>
#include <sstream>
#include <iterator>
#include "op_config.h"
#include "locate_images.h"
#include "op_exception.h"
#include "popt_options.h"
#include "cverb.h"
#include "common_option.h"
#include "file_manip.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <limits.h>
Include dependency graph for common_option.cpp:

Namespaces

namespace  options

Functions

int run_pp_tool (int argc, char const *argv[], pp_fct_run_t fct)
demangle_type handle_demangle_option (string const &option)
merge_option handle_merge_option (vector< string > const &mergespec, bool allow_lib, bool exclude_dependent)
bool was_session_dir_supplied (void)
 Answer the question 'did the user pass in a session-dir argument?'.

Variables

double options::threshold = 0.0
string options::threshold_opt
string options::session_dir
string options::command_options
vector< string > options::image_path
string options::root_path

Detailed Description

Contains common options and implementation of entry point of pp tools and some miscelleaneous functions.

Remarks:
Copyright 2003 OProfile authors
Read the file COPYING
Author:
Philippe Elie

Function Documentation

demangle_type handle_demangle_option ( string const &  option  ) 

References dmt_none, dmt_normal, and dmt_smart.

Referenced by handle_options().

merge_option handle_merge_option ( vector< string > const &  mergespec,
bool  allow_lib,
bool  exclude_dependent 
)
int run_pp_tool ( int  argc,
char const *  argv[],
pp_fct_run_t  fct 
)
Parameters:
argc command line number of argument
argv command line argument pointer array
fct function to run to start this pp tool

Provide a common entry to all pp tools, parsing all options, handling common options and providing the necessary try catch clause

References op_exception::what().

Referenced by main().

bool was_session_dir_supplied ( void   ) 

Answer the question 'did the user pass in a session-dir argument?'.

Referenced by handle_options().


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1