~arosales/test/oprofile

« back to all changes in this revision

Viewing changes to pp/opannotate_options.h

  • Committer: Antonio Rosales
  • Date: 2013-03-28 08:40:26 UTC
  • Revision ID: antonio.rosales@canonical.com-20130328084026-gpqns1mkqd7cnr05
Move files up one directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file opannotate_options.h
 
3
 * Options for opannotate tool
 
4
 *
 
5
 * @remark Copyright 2003 OProfile authors
 
6
 * @remark Read the file COPYING
 
7
 *
 
8
 * @author John Levon
 
9
 * @author Philippe Elie
 
10
 */
 
11
 
 
12
#ifndef OPANNOTATE_OPTIONS_H
 
13
#define OPANNOTATE_OPTIONS_H
 
14
 
 
15
#include <string>
 
16
#include <vector>
 
17
 
 
18
#include "common_option.h"
 
19
#include "path_filter.h"
 
20
 
 
21
class profile_classes;
 
22
 
 
23
namespace options {
 
24
        extern demangle_type demangle;
 
25
        extern bool source;
 
26
        extern bool assembly;
 
27
        extern string_filter symbol_filter;
 
28
        extern path_filter file_filter;
 
29
        extern std::string output_dir;
 
30
        extern std::vector<std::string> search_dirs;
 
31
        extern std::vector<std::string> base_dirs;
 
32
        extern std::vector<std::string> objdump_params;
 
33
        extern double threshold;
 
34
}
 
35
 
 
36
/// classes of sample filenames to handle
 
37
extern profile_classes classes;
 
38
 
 
39
/**
 
40
 * handle_options - process command line
 
41
 * @param spec  profile specification
 
42
 *
 
43
 * Process the spec, fatally complaining on error.
 
44
 */
 
45
void handle_options(options::spec const & spec);
 
46
 
 
47
#endif // OPANNOTATE_OPTIONS_H