common_option.cpp File Reference

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

Go to the source code of this file.

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)

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

Definition in file common_option.cpp.


Function Documentation

demangle_type handle_demangle_option ( string const &  option  ) 

Definition at line 246 of file common_option.cpp.

References dmt_none, dmt_normal, and dmt_smart.

Referenced by handle_options().

Here is the caller graph for this function:

merge_option handle_merge_option ( vector< string > const &  mergespec,
bool  allow_lib,
bool  exclude_dependent 
)

Definition at line 259 of file common_option.cpp.

References merge_option::cpu, merge_option::lib, options::merge_by, options, merge_option::tgid, merge_option::tid, and merge_option::unitmask.

Referenced by handle_options().

Here is the caller graph for this function:

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

Definition at line 218 of file common_option.cpp.

References get_options(), and op_exception::what().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

bool was_session_dir_supplied ( void   ) 

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

Definition at line 317 of file common_option.cpp.

Referenced by handle_options().

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1